har-to-api-client
Installation
SKILL.md
HAR to API client
A site without documented API still has an API — its frontend calls it, and a HAR capture records every call. This skill turns a capture into an inventory, a schema, and a typed client, while keeping the reverse-engineering on the right side of the line.
1. Get a good capture (garbage in, nothing out)
If the user has no HAR yet, walk them through making one — most triage failures start here:
- DevTools → Network tab → check Preserve log (survives navigations) and Disable cache.
- Perform exactly the action whose API you want, nothing else.
- Right-click the request list → Save all as HAR with content (without content there are no response bodies, and without bodies there are no schemas).
If auth matters (it usually does), the capture must include the login or token-fetch request too — otherwise the client can authenticate everything except itself.
2. Inventory: what API does the capture contain
harrecon inventory capture.har