Who it is forA developer or analyst who wants a file of decoded Nuvex program accounts for offline review and has no Postgres instance.
The problemRunning PostgreSQL just to look at decoded accounts adds setup time. The indexer can write a JSON snapshot instead.
The outcomeA JSON file at the path you set in NUVEX_READ_MODEL_PATH that contains rows decoded from known account layouts.
What you need first
- Git and a clone of NuvexNetwork/nuvex-services
- pnpm and make, for `pnpm install` and `make check`
- A Solana-compatible RPC URL (NUVEX_RPC_URL or NUVEX_SOLANA_RPC_URL)
- At least one Nuvex program id (NUVEX_ORACLE_CORE_PROGRAM_ID, NUVEX_ORACLE_REGISTRY_PROGRAM_ID, or NUVEX_VERIFICATION_PROGRAM_ID)
- A PostgreSQL DATABASE_URL, or a NUVEX_READ_MODEL_PATH for a JSON snapshot
Steps
- Run
pnpm installin the repository root. - Run
cp env/.env.local.example .env.local, then set NUVEX_RPC_URL, one program id, and NUVEX_READ_MODEL_PATH. - Start the indexer with the start command in the indexer section (not shown in the README, so check indexer/ first).
- Open the file at NUVEX_READ_MODEL_PATH and confirm it contains decoded rows, not placeholder data.
Prompt for your agent
In the NuvexNetwork/nuvex-services repo, set NUVEX_RPC_URL, one program id, and NUVEX_READ_MODEL_PATH=<snapshot-path> in .env.local, run the indexer, then open the snapshot file. Report the number of top-level records and list the first record's keys. Verify that the indexer did not invent rows by comparing record count to the program accounts the RPC returned.
Caveat. The README says the indexer does not invent rows but gives no snapshot schema, so the record structure must be read from the code.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for NuvexNetwork/nuvex-services and "Write indexer output to a JSON snapshot instead of Postgres"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer