{"id":48746544,"url":"https://github.com/getpaykit/paykit","last_synced_at":"2026-05-02T04:02:00.837Z","repository":{"id":337327350,"uuid":"1153120067","full_name":"getpaykit/paykit","owner":"getpaykit","description":"The billing framework for TypeScript. Code-first products, handles Stripe, webhooks, and usage state, runs in your app.","archived":false,"fork":false,"pushed_at":"2026-04-27T21:16:04.000Z","size":18027,"stargazers_count":875,"open_issues_count":56,"forks_count":32,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-04-27T21:25:35.508Z","etag":null,"topics":["billing","creem","fintech","paykit","payments","polar","pricing","saas","sdk","stripe","typescript"],"latest_commit_sha":null,"homepage":"https://paykit.sh","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/getpaykit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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":"AGENTS.md","dco":null,"cla":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2026-02-08T23:16:43.000Z","updated_at":"2026-04-27T21:16:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/getpaykit/paykit","commit_stats":null,"previous_names":["getpaykit/paykit"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/getpaykit/paykit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpaykit%2Fpaykit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpaykit%2Fpaykit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpaykit%2Fpaykit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpaykit%2Fpaykit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getpaykit","download_url":"https://codeload.github.com/getpaykit/paykit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpaykit%2Fpaykit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32522252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["billing","creem","fintech","paykit","payments","polar","pricing","saas","sdk","stripe","typescript"],"created_at":"2026-04-12T12:00:32.021Z","updated_at":"2026-05-02T04:02:00.830Z","avatar_url":"https://github.com/getpaykit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cbr\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://paykit.sh\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"apps/web/public/brand/logo-dark.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"apps/web/public/brand/logo-light.svg\"\u003e\n      \u003cimg alt=\"PayKit\" src=\"apps/web/public/brand/logo-light.svg\" height=\"120\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003ch3 align=\"center\"\u003eThe billing framework for TypeScript\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  Define products in code. Any provider. Gate features. Track usage.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://paykit.sh\"\u003e\u003cstrong\u003eWebsite\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"https://paykit.sh/docs\"\u003e\u003cstrong\u003eDocs\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"https://discord.gg/nzy9NPpFNU\"\u003e\u003cstrong\u003eDiscord\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"https://x.com/getpaykit\"\u003e\u003cstrong\u003eTwitter\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/paykitjs\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/paykitjs?style=flat-square\u0026color=333\" alt=\"npm version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/getpaykit/paykit/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/getpaykit/paykit?style=flat-square\u0026color=333\" alt=\"License\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.npmjs.com/package/paykitjs\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/paykitjs?style=flat-square\u0026color=333\" alt=\"npm downloads\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\n## What is PayKit?\n\nPayKit is an embedded billing framework for TypeScript apps. It sits inside your app, uses your database, and gives you a single API to manage products, subscriptions, entitlements, and usage billing without touching provider dashboards.\n\n```ts\nimport { stripe } from \"@paykitjs/stripe\";\nimport { createPayKit, feature, plan } from \"paykitjs\";\n\nconst messages = feature({ id: \"messages\", type: \"metered\" });\n\nconst free = plan({\n  id: \"free\",\n  group: \"base\",\n  default: true,\n  includes: [messages({ limit: 100, reset: \"month\" })],\n});\n\nconst pro = plan({\n  id: \"pro\",\n  group: \"base\",\n  price: { amount: 19, interval: \"month\" },\n  includes: [messages({ limit: 2_000, reset: \"month\" })],\n});\n\nexport const paykit = createPayKit({\n  provider: stripe({\n    secretKey: process.env.STRIPE_SECRET_KEY!,\n    webhookSecret: process.env.STRIPE_WEBHOOK_SECRET!,\n  }),\n  database: process.env.DATABASE_URL!,\n  products: [free, pro],\n});\n```\n\n### Getting started\n\n```bash\nnpx paykitjs init\n```\n\nOr follow the [installation guide](https://paykit.sh/docs/get-started/installation).\n\n### Why PayKit\n\nBilling in the TypeScript ecosystem is either handled through low-level provider SDKs that require a lot of glue code, or through hosted platforms that own your billing data and sit between you and your customers. PayKit takes a different approach: it's an open-source framework that runs inside your app, keeps billing state in your own database, and handles the Stripe lifecycle so you don't have to.\n\n## Contribution\n\nPayKit is a free and open source project licensed under the [MIT License](./LICENSE). You are free to do whatever you want with it.\n\nYou can help continue its development by:\n\n- [Contribute to the source code](./CONTRIBUTING.md)\n- [Suggest new features and report issues](https://github.com/getpaykit/paykit/issues)\n\n## Security\n\nIf you discover a security vulnerability within PayKit, please send an email to [security@paykit.sh](mailto:security@paykit.sh).\n\nAll reports will be promptly addressed, and you'll be credited accordingly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpaykit%2Fpaykit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetpaykit%2Fpaykit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpaykit%2Fpaykit/lists"}