{"id":26075941,"url":"https://github.com/illyism/saasbooks","last_synced_at":"2025-08-25T16:20:03.719Z","repository":{"id":280261153,"uuid":"941446854","full_name":"Illyism/saasbooks","owner":"Illyism","description":"SaaSBooks turns your Stripe and Mercury data into actionable financial insights without the accounting headache. Built by SaaS founders for SaaS founders, this open source tool auto-categorizes transactions, tracks essential metrics, and helps you make sense of your finances in minutes, not days.","archived":false,"fork":false,"pushed_at":"2025-03-04T18:57:41.000Z","size":278,"stargazers_count":35,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T17:23:28.149Z","etag":null,"topics":["accounting","banking","mercury","quickbooks","saas-finance","saas-metrics","stripe","xero"],"latest_commit_sha":null,"homepage":"https://saasbooks.org","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/Illyism.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}},"created_at":"2025-03-02T10:10:14.000Z","updated_at":"2025-03-17T03:17:14.000Z","dependencies_parsed_at":"2025-03-02T11:26:43.535Z","dependency_job_id":"22f05087-340e-43a8-b49a-37b1f2e6e53f","html_url":"https://github.com/Illyism/saasbooks","commit_stats":null,"previous_names":["illyism/saasbooks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Illyism%2Fsaasbooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Illyism%2Fsaasbooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Illyism%2Fsaasbooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Illyism%2Fsaasbooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Illyism","download_url":"https://codeload.github.com/Illyism/saasbooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248482952,"owners_count":21111408,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["accounting","banking","mercury","quickbooks","saas-finance","saas-metrics","stripe","xero"],"created_at":"2025-03-09T01:41:23.490Z","updated_at":"2025-04-11T21:33:00.057Z","avatar_url":"https://github.com/Illyism.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SaaSBooks\n\n\u003e Accounting \u0026 Financial Insights for SaaS Businesses powered by Stripe and Mercury\n\n[![Stars](https://img.shields.io/github/stars/illyism/saasbooks?style=social)](https://github.com/illyism/saasbooks)\n[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n## What It Does\n\nSaaSBooks connects directly to your Stripe and Mercury accounts to:\n\n- **Import and categorize** transactions automatically\n- **Calculate SaaS metrics** like MRR, customer acquisition cost, and burn rate\n- **Generate visualizations** that show your business health at a glance\n- **Prepare exports** for your accountant or tax software\n- **Store everything locally** as simple JSON files you can version control\n\n## Setup\n\n### 1. Local Development\n\n```bash\n# Install dependencies\nbun install\n\n# Copy environment variables\ncp .env.example .env\n\n# Push database schema\nbunx prisma db push\n\n# Start development server\nbun dev\n```\n\n### 2. Google Drive Integration\n\nSaaSBooks uses Google Drive to store your uploaded files (invoices, receipts, CSV exports). Here's how to set it up:\n\n1. **Create a Google Cloud Project**\n\n   - Go to [Google Cloud Console](https://console.cloud.google.com)\n   - Create a new project or select an existing one\n   - Enable the [Google Drive API](https://console.cloud.google.com/marketplace/product/google/drive.googleapis.com) for your project\n\n2. **Create OAuth Credentials**\n\n   - Go to \"[Credentials](https://console.cloud.google.com/auth/overview)\" in API \u0026 Services\n   - Click **\"Create OAuth client\"**\n   - Choose **\"Web application\"**\n   - Add Authorized JavaScript origins:\n     - Development: `http://localhost:3000`\n     - Production: `https://saasbooks.org`\n   - Add authorized redirect URI:\n     - Development: `http://localhost:3000/auth/google/callback`\n     - Production: `https://saasbooks.org/auth/google/callback`\n   - Save your Client ID and Client Secret\n   - Go to \"[Scopes](https://console.cloud.google.com/auth/scopes)\" in API \u0026 Services\n   - Click \"ADD OR REMOVE SCOPES\"\n   - Add the following scopes:\n     - `https://www.googleapis.com/auth/drive.file` (Allows access to files and folders created by the app)\n\n3. **Update Environment Variables**\n\n```bash\n# In your .env file\nGOOGLE_CLIENT_ID=\"your-client-id\"\nGOOGLE_CLIENT_SECRET=\"your-client-secret\"\nGOOGLE_REDIRECT_URI=\"http://localhost:3000/auth/google/callback\"\n```\n\nWhen users connect their Google Drive:\n\n1. They'll be prompted to sign in with Google\n2. They'll need to authorize the app\n3. A dedicated folder will be created in their Drive\n4. All uploads will be stored in this folder\n\n## Why Open Source?\n\nSaaSBooks is 100% free and open source. We believe financial tools should be:\n\n1. **Transparent** - You should know exactly how your financial data is processed\n2. **Customizable** - Every SaaS business has unique needs\n3. **Accessible** - Financial clarity should be available to all SaaS businesses, not just those who can afford $300/month tools\n\n## Supporting SaaSBooks\n\nThis project is sponsored by the community. If you find it valuable:\n\n- **GitHub Sponsors** - Support ongoing development\n- **Share with other founders** - Help us grow\n- **Contribute code or documentation** - PRs welcome!\n\n## Help Improve Our Data Categorization\n\nWe need anonymized Stripe/Mercury exports to improve our auto-categorization system. [Learn how to contribute data safely](https://github.com/Illyism/saasbooks/issues/1).\n\n## Need More Advanced Accounting?\n\nSaaSBooks focuses on financial clarity for founders, not comprehensive accounting.\n\nWhen you're ready for formal accounting software, we recommend:\n\n- [QuickBooks Online](https://go.il.ly/quickbooks) - Best for US-based businesses\n- [Xero](https://go.il.ly/xero) - Great international support\n\n_Note: These are affiliate links that help support SaaSBooks development._\n\n## License\n\nMIT License\n\n[SaaSBooks](https://saasbooks.org) is released under the MIT License, which is a permissive open source license that allows you to:\n\n- Use the software for any purpose\n- Modify the software as needed\n- Distribute the software and your modifications\n- Use the software commercially\n\nThe only requirement is that you include the original copyright notice and license disclaimer in any copy of the software or substantial portion of it.\n\nSee the [LICENSE](LICENSE) file for the full legal text.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillyism%2Fsaasbooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fillyism%2Fsaasbooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fillyism%2Fsaasbooks/lists"}