{"id":51334391,"url":"https://github.com/axelgar/bismite","last_synced_at":"2026-07-02T01:30:52.179Z","repository":{"id":367354091,"uuid":"1279258569","full_name":"axelgar/bismite","owner":"axelgar","description":"SDK-first billing \u0026 entitlements runtime on Stripe, for AI apps. Gate, meter \u0026 monetize any feature in 3 lines.","archived":false,"fork":false,"pushed_at":"2026-06-25T17:15:13.000Z","size":96,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-25T17:17:34.670Z","etag":null,"topics":["ai","billing","entitlements","feature-flags","paywall","saas","stripe","typescript","usage-metering"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/axelgar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-24T14:14:57.000Z","updated_at":"2026-06-25T17:15:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/axelgar/bismite","commit_stats":null,"previous_names":["axelgar/bismite"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/axelgar/bismite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelgar%2Fbismite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelgar%2Fbismite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelgar%2Fbismite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelgar%2Fbismite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axelgar","download_url":"https://codeload.github.com/axelgar/bismite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axelgar%2Fbismite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35029796,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","billing","entitlements","feature-flags","paywall","saas","stripe","typescript","usage-metering"],"created_at":"2026-07-02T01:30:51.650Z","updated_at":"2026-07-02T01:30:52.165Z","avatar_url":"https://github.com/axelgar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bismite\n\n**Gate, meter, and monetize any feature in 3 lines — and it never takes your app down.**\n\nAn SDK-first billing \u0026 entitlements runtime on Stripe, built for AI apps. `npm install bismite`, get one API key, and the usage counter is handled. → Full pitch \u0026 API: [`packages/sdk/README.md`](packages/sdk/README.md).\n\n```ts\nconst access = await bismite.check(userId, \"chat-message\");   // gate\nif (!access.allowed) return Response.json({ upgradeUrl: access.upgradeUrl }, { status: 402 });\n// ...expensive LLM call...\nawait bismite.record(userId, \"chat-message\", { tokens });     // meter\n```\n\n## Use it in your app\n\n```bash\nnpm install bismite\n```\n\nThen sign up at **[app.bismite.dev](https://app.bismite.dev)**, create a project, and point the counter at your key:\n\n```ts\nimport { bismiteCounter } from \"bismite/hosted\";\ncounter: bismiteCounter(process.env.BISMITE_API_KEY!)   // no Redis to provision\n```\n\n→ **[QUICKSTART.md](QUICKSTART.md)** — gated feature in 5 minutes, standalone (no clone). The rest of this README is for hacking on the monorepo itself.\n\n## Monorepo\n\n| Path | What |\n|---|---|\n| `packages/sdk` | The `bismite` SDK — `check` / `record`, local rule eval, counters |\n| `services/counter` | The hosted usage-counter service (deployed at `api.bismite.dev`) |\n| `apps/dashboard` | The hosted dashboard (`app.bismite.dev`) — signup, projects, keys, usage, billing |\n| `examples/nextjs-chat` | Runnable Next.js chat app — the gate → meter → upgrade loop end to end |\n| `examples/nextjs-chat/public/landing.html` | Marketing landing page (served at `/landing.html`) — hero, per-framework integration tabs, pricing |\n| `PRD.md`, `issues/` | Product doc and the build issues |\n\n## Hacking on the monorepo\n\n```bash\npnpm install\npnpm test                                   # SDK + mapping unit tests\npnpm build                                  # build the publishable SDK (dist/)\npnpm counter                                # local counter (or set UPSTASH_* in the example's .env)\npnpm --filter nextjs-chat dev               # the example app\n```\n\nOpen the example, send messages until you hit the free limit, and upgrade through real Stripe Checkout. See [`examples/nextjs-chat/README.md`](examples/nextjs-chat/README.md) for the Stripe setup.\n\n## Status\n\nHosted platform is live: managed counter (`api.bismite.dev`) + self-serve dashboard (`app.bismite.dev`) with projects, API keys, usage meters, and Stripe upgrades. The SDK (gate/meter, Stripe plan sync, upgrade loop) ships on npm. Next: more pricing models and becoming the billing rail (merchant-of-record).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelgar%2Fbismite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxelgar%2Fbismite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxelgar%2Fbismite/lists"}