npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dondo-donuts

v0.2.1

Published

Minimal local UI for switching Antigravity and Codex accounts.

Downloads

630

Readme

Dondo

npm Bun TypeScript Preact Biome macOS Antigravity Codex License: MIT GitHub issues wakatime

Dondo is a small local Bun app for saving and switching local AI tool accounts. It starts a local web UI, stores saved accounts in an encrypted local vault, and currently supports Antigravity, Codex, and MiniMax.

Current platform support is macOS. Dondo uses the macOS security CLI for the local vault key, and Antigravity account switching uses macOS Keychain entries.

Install

Install Bun 1.3 or newer, then run:

bunx dondo-donuts

Then open:

http://localhost:3000

The server binds to 127.0.0.1 only.

Development

bun install
bun run start

Useful checks:

bun run typecheck
bun run lint
bun test
bun build src/server.ts --target=bun --outdir /tmp/dondo-build

Storage

Dondo stores its vault at the platform data directory:

  • macOS: ~/Library/Application Support/Dondo/vault.json
  • Windows: %LOCALAPPDATA%/Dondo/Data/vault.json
  • Linux: $XDG_DATA_HOME/dondo/vault.json or ~/.local/share/dondo/vault.json

Set DONDO_DATA_DIR to override the directory, or ANTIGRAVITY_VAULT to override the full vault path. DONDO_VAULT also overrides the full vault path and takes precedence over the historical ANTIGRAVITY_VAULT name.

Vault shape:

{
    "antigravity": {
        "data": {},
        "limits": {}
    },
    "codex": {
        "data": {},
        "limits": {}
    },
    "minimax": {
        "data": {},
        "limits": {}
    }
}

antigravity.data stores saved account snapshots. The token-bearing password field is encrypted with AES-256-GCM before writing to disk. Non-secret metadata such as labels, service names, and timestamps remains readable in the vault so the UI can list accounts. The encryption key is a random local secret stored in macOS Keychain as dondo / vault-key.

antigravity.limits stores cached rate-limit data. Dondo fetches missing limits on first load and refreshes cached limits only when the UI Refresh limits button is used.

codex.data stores encrypted snapshots of ~/.codex/auth.json. Loading a saved Codex account writes that snapshot back to ~/.codex/auth.json with 0600 permissions.

codex.limits stores cached Codex ChatGPT usage data. Dondo fetches missing limits on first load and refreshes cached limits only when the UI Refresh limits button is used.

minimax.data stores encrypted snapshots of ~/Library/Application Support/MiniMax Agent/minimax-agent-config.json. Loading a saved MiniMax account writes that snapshot back to the same path with 0600 permissions.

minimax.limits stores mocked MiniMax limit data. The current implementation records the load or refresh time because the MiniMax rate-limit endpoint is not yet known.

Each limit cache entry has this shape:

{
    "fetchedAt": "2026-06-02T00:00:00.000Z",
    "quota": {
        "ok": true,
        "tier": "plus",
        "expires": "",
        "models": {}
    }
}

Encrypted strings use the enc:v1: envelope: AES-256-GCM with a 12-byte IV, 16-byte auth tag, then ciphertext, base64 encoded.

Environment

DONDO_PORT=3000
PORT=3000
DONDO_DATA_DIR=/custom/data/dir
DONDO_VAULT=/custom/vault.json
ANTIGRAVITY_VAULT=/custom/vault.json
ANTIGRAVITY_SERVICE=gemini
ANTIGRAVITY_ACCOUNT=antigravity
ANTIGRAVITY_KEYCHAIN=login.keychain-db
ANTIGRAVITY_VERSION=2.0.3
ANTIGRAVITY_LANGUAGE_SERVER_PATH=/Applications/Antigravity.app/Contents/Resources/bin/language_server
CODEX_AUTH_PATH=~/.codex/auth.json
MINIMAX_CONFIG_PATH=~/Library/Application Support/MiniMax Agent/minimax-agent-config.json

DONDO_PORT takes precedence over PORT. ANTIGRAVITY_KEYCHAIN is passed as the keychain argument to macOS security commands, for example login.keychain-db or an absolute keychain path.

Antigravity limit refreshes can use the saved Google refresh token to rotate an expired saved access token, then write the refreshed token blob back to the encrypted vault entry. Dondo discovers Antigravity's Google OAuth client from the local Antigravity language server binary. Codex limit refreshes only call the usage endpoint with the saved access token.

Local API

All API requests must be sent to localhost. Mutating routes require POST with a JSON object body.

  • GET /api/antigravity/state
  • POST /api/antigravity/limits/refresh with optional { "key": "label" }
  • POST /api/antigravity/save with { "key": "label" }
  • POST /api/antigravity/load with { "key": "label" }
  • POST /api/antigravity/clear
  • GET /api/codex/state
  • POST /api/codex/limits/refresh with optional { "key": "label" }
  • POST /api/codex/save with { "key": "label" }
  • POST /api/codex/load with { "key": "label" }
  • GET /api/minimax/state
  • POST /api/minimax/limits/refresh with optional { "key": "label" }
  • POST /api/minimax/save with { "key": "label" }
  • POST /api/minimax/load with { "key": "label" }

Clear live deletes the live Antigravity Keychain item plus these local Antigravity state paths:

  • ~/.antigravity-agent/cloud_accounts.db
  • ~/.gemini/antigravity
  • ~/.gemini/antigravity-ide
  • ~/.gemini/antigravity-backup
  • ~/Library/Application Support/Antigravity

Security Model

Dondo is designed to be easy to inspect:

  • The server listens on 127.0.0.1.
  • Tokens are not returned to the browser API.
  • Saved token payloads are encrypted at rest.
  • Rate-limit API calls happen server-side.
  • Codex auth.json contents are never rendered or returned by the API.

This protects against casual plaintext scraping of the vault file. A process running as the same logged-in user may still be able to access local Keychain items depending on operating-system policy. Antigravity restore currently passes the token blob to the macOS security CLI as an argument, which can be visible briefly to same-user process listings.

License

MIT