[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73839":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":15,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},73839,"autumn","useautumn\u002Fautumn","useautumn","Autumn is an open-source pricing & billing platform","https:\u002F\u002Fuseautumn.com",null,"TypeScript",2580,221,10,15,0,5,47,81.24,"Apache License 2.0",false,"dev",true,[],"2026-06-12 04:01:12","# Autumn\n\n![Autumn](assets\u002Fgithub_hero.png)\n\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FJoin%20Community-5865F2?logo=discord&logoColor=white)](https:\u002F\u002Fdiscord.gg\u002F53emPtY9tA)\n[![Follow](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Ffollow\u002Fautumnpricing?style=social)](https:\u002F\u002Fx.com\u002Fautumnpricing)\n[![Y Combinator](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FY%20Combinator-F24-orange)](https:\u002F\u002Fwww.ycombinator.com\u002Fcompanies\u002Fautumn)\n[![Cloud](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCloud-☁️-blue)](https:\u002F\u002Fapp.useautumn.com)\n[![Documentation](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDocumentation-📕-blue)](https:\u002F\u002Fdocs.useautumn.com)\n[![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002Fuseautumn\u002Fautumn)\n\n[Autumn](https:\u002F\u002Fuseautumn.com) is an open-source layer between Stripe and your application, allowing you to create any pricing model and embed it with a couple lines of code. On Autumn you can build:\n- Subscriptions\n- Credit systems & top ups\n- Usage-based models & overages\n- Custom plans for large customers\n\nAll this without having to handle webhooks, upgrades\u002Fdowngrades, cancellations or payment fails.\n\n\n## Getting Started\n\n**Cloud**: The quickest way to start using Autumn is through our [cloud service](https:\u002F\u002Fapp.useautumn.com). \n\n**Self Hosted**: If you'd like to self-host Autumn:\n\n1. Make sure you have `bun` installed\n2. Install the project dependencies:\n```bash\nbun install\n```\n3. Run Autumn:\n```bash\nbun dev\n```\n\nThat's it! You should be able to see the Autumn dashboard on `http:\u002F\u002Flocalhost:3000`. \n\n> ℹ️ Autumn depends on a bunch of services. If you'd like help with self-hosting or running a local instance, contact the team on [Discord](https:\u002F\u002Fdiscord.gg\u002F53emPtY9tA).\n\n> ⚠️ To log in, enter an email at the sign in page, and an OTP should appear in your console \u002F terminal. Normally, we use Resend to email an OTP or Google OAuth -- these can be set up by providing your credentials in `server\u002F.env`\n\n> ℹ️ If you'd like to use your own Postgres instance, paste the connection string in the `DATABASE_URL` env variable at `server\u002F.env`\n\n## Why Autumn\n\n**1️⃣ Billing infra gets complex fast**\n\nMore than payments: it's building permission management, metering, usage limits with cron jobs, and connecting it to upgrade, downgrade, cancellation and failed payments states. Race conditions, edge cases, and other bugs will slow you down.\n\n**2️⃣ Billing and app logic should be decoupled**\n\nGrowing companies iterate on pricing often: raising prices, experimenting with credits or charging for a new feature. DB migrations, rebuilding in-app flows, internal dashboards for custom pricing and grandfathering users on old pricing is a nightmare.\n\n\n## How it works\nFirst, create your products and plans on the dashboard. We support **any** pricing model. Some popular ones we've seen include:\n\n1. **Usage & Overage** ⚡: set real-time usage limits and choose when they reset. Charge users if they go over.\n2. **Credits** 💰: users can access monetary or arbitrary credits that many features can draw from\n3. **Seat-based with per-seat limits** 👥:: bill customers for their users (or other entities)\n4. **Pay upfront** 💳: let users purchase a fixed quantity of a feature upfront, which is used over time\n\n\nNext, all your billing logic can be implemented through just 3 functions:\n\n1. `\u002Fattach`: One function call for all purchase flows. We return a Stripe Checkout URL, or handle an upgrade\u002Fdowngrade.\n\n```tsx\nconst { attach } = useAutumn();\n\u003Cbutton\n  onClick={async () => {\n    await attach({ productId: \"pro\" });\n  }}\n>\n  Upgrade to Pro\n\u003C\u002Fbutton>\n```\n\n2. `\u002Fcheck`: Check whether a customer has access to a product, feature or remaining usage.\n```ts\nconst { check } = useAutumn();\n\nconst { data } = await check({ featureId: \"ai_tokens\" })\n\n!data.allowed && alert(\"AI limit reached\")\n```\n\n3. `\u002Ftrack`: When a customer uses a usage-based feature, record a usage event.\n\n```ts\nconst { track } = useAutumn();\n\nawait track({\n  featureId: \"ai_tokens\",\n  value: 1312\n})\n```\n\n## Others\n\n**Contributing** 🤝: If you're interested in contributing, you can check out our guide [here](\u002F.github\u002FCONTRIBUTING.md). All types of help are appreciated :)\n\n**Support** 💬: If you need any type of support, we're typically most responsive on our [Discord channel](https:\u002F\u002Fdiscord.gg\u002FSTqxY92zuS), but feel free to email us `hey@useautumn.com` too!\n\n\n\n\u003C!-- ## Congratulations!\n\nYou've embedded a full billing system into your application within a few minutes. You can make any pricing model changes you need, or handle custom plans without needing to alter your codebase.\n\nFeel free to self-host Autumn, or use our hosted version at https:\u002F\u002Fuseautumn.com. And let us know any questions, thoughts or feedback at hey@useautumn.com. -->\n\n## Contributors\n\nThanks to all our contributors for helping make autumn a better product!\n\n\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fuseautumn\u002Fautumn\u002Fgraphs\u002Fcontributors\">\n  \u003Cimg src=\"https:\u002F\u002Fcontrib.rocks\u002Fimage?repo=useautumn\u002Fautumn\" \u002F>\n\u003C\u002Fa>\n","Autumn 是一个开源的定价和计费平台，旨在作为 Stripe 和应用程序之间的中间层。它支持通过几行代码快速创建订阅、信用系统与充值、基于使用量的模型及超额费用等复杂定价方案，无需直接处理 webhook、升级\u002F降级、取消或支付失败等问题。项目采用 TypeScript 编写，并提供云服务和自托管两种部署方式，适用于希望简化计费基础设施、减少应用逻辑与计费逻辑耦合的企业场景。对于需要频繁调整定价策略的成长型企业尤其有用，可有效降低因数据库迁移、重建应用流程带来的维护成本。",2,"2026-06-11 03:47:36","high_star"]