Ashwin Ravikumar

Project

openapi-snapshot

A Rust CLI that snapshots a running backend's OpenAPI spec, so coding agents integrate against the real API instead of inventing endpoints.

My roleSole author. I wrote it and published every release.
LanguageRust (edition 2024)
Releases0.1.0 to 0.1.4 on crates.io, Dec 2025 to Jan 2026
LicenceMIT
Linksgithub.com/0xashrk/openapi-snapshotcrates.io/crates/openapi-snapshot

What it does

Coding agents guess API endpoints and payload shapes when they cannot see the live contract. openapi-snapshot fetches the OpenAPI JSON from a running server and writes it to a file in the repo, so the agent reads the real contract instead. It works as a lightweight alternative to an MCP server: AGENTS.md or CLAUDE.md points at the snapshot, and the agent calls the API with curl.

How it works

  • It fetches the spec from a running server; it does not generate OpenAPI from code.
  • It writes pretty JSON by default, with options to minify, keep only paths and components, or write a small outline.
  • The watch command re-fetches every two seconds and keeps the full snapshot and the outline in sync.
  • A header flag passes credentials for protected specs.

Install and run

cargo install openapi-snapshot

openapi-snapshot \
  --url http://localhost:3000/api-docs/openapi.json \
  --out openapi/backend_openapi.json

Where it's used

perpscreener uses it to keep its own API snapshot current.

More projects

Ask Gina evals leaderboardA public leaderboard that measures how well AI models use the Ask Gina MCP plugin: the right tool, the right arguments and the right refusals.
askgina/osSelf-hosted workspaces where AI agents propose payments and a person approves each one with a passkey.
Agent judges and runtime guards on JevSmall, fast decision models and scoped runtime guards inside voice, computer-use and trading-research agents, built on TypeSafe's Jev.
perpscreenerA Rust service that streams perpetual-futures market data and chart-pattern detections over HTTP and Server-Sent Events.