The Node.js SaaS Boilerplate for the AI Era
Build Your SaaS At Warp Speed
A battle-tested SaaS boilerplate to launch your SaaS faster with built-in auth, Stripe billing, admin tools, and more. Skip the boilerplate code and focus on building what matters.
Loading video...
Please wait while we load your lesson.
Unauthorized
Please sign in to watch this lesson.
Sign InThe app I built with Gravity was acquired
"I'm a long-term Gravity user and it's hands down the best SaaS boilerplate out there. It lets you focus on shipping features without worrying about payments, security, emails, or authentication."
Why Smart Founders Use a SaaS Boilerplate
- Stop rebuilding the same auth, billing and admin code.
- Save 400+ coding hours.
- Build a profitable SaaS business FAST.
- Focus on features that matter: ones customers will PAY for.
What's Included
15,000+ lines of battle-tested code.
Subscription Billing
- Not just a checkout link
- Free plans
- Trials
- Seat & usage billing
- Powered by Stripe
Multidimensional Auth
- Email/password
- Magic links
- 500+ social networks
- 2FA, flags and lockouts
- Penetration-tested
UI Templates
- 50+ components
- 25+ views
- Fully accessible
- Dark mode
- Built with Shadcn
Choose Your Database
- MySQL
- MongoDB
- Postgres
- MariaDB
- Plus more +
REST API
- Token authentication
- Protected endpoints
- API keys
- Throttling
Users & Invitations
- Organisations
- Invite system
- User roles
- Multi-tenant
Transactional Emails
- Responsive emails
- 20+ multilingual templates
- 20+ email services
- No HTML required
SaaS Admin Dashboard
- Metrics dashboard
- Manage users
- Error & event logs
AI-Native
- Agent Rules Included
- Claude & Codex ready
- OpenAI helper included
Onboarding & Feedback
- User onboarding
- Collect feedback
- Boost retention
Mobile Apps
- Native iOS & Android apps
- Built with React Native
Lifetime Support
- Concierge onboarding
- Email support (Mon-Fri)
- Discord community
Localization
Tests
Astro Landing Page
1 Year of Updates
Need a feature not listed?
Get a custom feature — or have your entire SaaS built for you.
Learn moreIntegrates with AI Agents and IDEs
Gravity ships with rules for agents and IDEs like Claude Code, Cursor, Gemini and more.
IDE Rules
Cursor and Windsurf rules per-domain — auth, billing, API, UI. Your AI writes correct Gravity code from the first prompt.
Agent Rules
CLAUDE.md and AGENTS.md are included in the repo. Claude Code, Codex, and Gemini get full architectural context out of the box.
Github Copilot
Give Copilot the full context of your stack from auth patterns, billing integration, API conventions and more. No config required.
Why Gravity?
Kyle Gawley Gravity Founder
- AI-native and built to work seamlessly with AI tools
- Battle-tested by 1,200 developers in production
- 8 years of continuous development — not a side project
- New features and security updates
- Founder has 20+ years software development experience
- Built a tech startup to $5,000,000 revenue
- Served on startup boards as a technical advisor
- Mentored hundreds of startups on accelerators
- 42,000+ followers who trust me on X/Twitter
Customer Testimonials
Don't just take my word for it.
"Gravity provided the foundation to jumpstart my SaaS product. The attention to detail, thoughtful approach, and creative inclination provided the most ideal outcome. In my capacity as a UX Lead at Apple I've worked with countless engineers — of which Kyle stands ahead of the pack. I hope to continue leveraging Gravity long into the future."
"Fantastic SaaS boilerplate. Very well documented, clean separation of concern and overall great code quality. Great value, can definitely recommend to anyone looking to save time and money. We bought the product 6 days ago and are mostly done rebranding it. Extensions have been straightforward, as simple as following documentation and YouTube videos explaining the process."
"Everything worked perfectly. I was pleasantly surprised by how user-friendly the whole setup process was – loved the unexpected setup wizard. I also appreciate the clean code and comments; as a Rails developer transitioning to Node.js that’s really helpful. Great SaaS boilerplate, exactly what I needed and it over-delivered at that price-point."
"Gravity has been a breath of fresh air and has saved us weeks of development time while allowing us to to focus on building our core SaaS offering, without having to figure out best practices for payments and user authentication. The aftercare and support has been great - questions are answered promptly in the active community."
"We were looking for a good boilerplate for our SaaS and found a lot of junk and old code. Then we came across Gravity and found just what we were looking for! Fully updated code running on the framework we needed to get started quickly and not have to spend hours working on user logins and super admin, emails, and API tokens and more. This helped us get right to work and save us a ton of time! Thank you."
"Kyle has created an excellent product. If you're after a Node.js SaaS boilerplate, look no further than Gravity. What's so impressive is the attention to detail in terms of the end user experience, the overall breadth of functionality (he's really thought of everything you'd need) and the stability of the product (there are no bugs, it just works). For less than 1K USD, you can't go wrong with this product."
"While building our SaaS from training at MITx PRO, it became obvious that there was a lot more involved than expected. After reviewing the top five SaaS Boilerplates from a Medium article we selected Gravity based on the online documentation and training. (High quality artifacts are the surest sign of a healthy development process). We were not disappointed; the code and its functionality are far better than we expected. The techniques and construction alone were worth the price of the boilerplate."
"From the initial purchase, the team behind Gravity has been there to answer every (silly) question. Thanks to this SaaS boilerplate, we have new ideas on how to implement our own IP in SaaS environments. Bonus: they keep adding features like API connections to Dall-E."
"I have been shopping around for a Node.js SaaS boilerplate for the SaaS I'm building. During my initial evaluation it came ahead by using React, having JSON emails, having simple to use components, proper security, third party login, and a full featured mobile app template. It took only a few days to get the SaaS online and it's been an amazing experience since. It almost feels like a no code solution - you just plug in your code into the pre-built template."
"Gravity helped us to get a MVP up and running in less than two weeks. This allowed us secure funding for the project, while at the same time migrating from a legacy monolithic application stack to a more modern Node.js stack."
"Lot's of nice features and components out of the box, easy to build on top of with the gravity CLI. Cleanly coded and well documented, it's helped me rethink and improve how I write some code, as well as saved hundreds of hours"
"The code patterns are beautiful, the code is neat and well organized. I have been able to do everything I would like to do, spend a little time optimizing, and then it's done. Gravity turned a major headache into many weeks of saved time."
"I am thrilled! Not only with the boilerplate solution, but with Kyle. We are currently having a complete SaaS application developed and not only are we saving time (and money) by using the SaaS boilerplate, but we are also benefiting from a reliable solution. I can rely on everything working smoothly and no longer have to worry about bugs. In the Discord community, you can exchange ideas with other developers and benefit from this network. Overall, simply a top-notch solution!
Your Next SaaS is One Step Away
Join 1,200+ developers who stopped building the boring stuff and started shipping.
Frequently Asked Questions
1. Regular updates: I ship new features, improvements and security enhancements to Gravity every week - you don't have to wait for the community to fix issues and build new features.
2. Support: you can email me anytime to get an answer to a question or to help fix a problem. No need to waste your time on Stackoverflow or ChatGPT.
3. Bugs are fixed within 24 hours and updates pushed weekly. No waiting for the community to add features or fix issues.
These benefits are simply not possible with a free boilerplate because the developer can't devote their full time to it if it's not paying them a salary.
When you purchase Gravity, you're purchasing an established SaaS boilerplate that has been around 7 years and tested by hundreds of customers in production.
Gravity is built by a professional developer with over a decade of commercial experience. It's regulary maintained and comes with support.