The modern full-stack Next.js & GraphQL boilerplate with user authentication, subscription payments, teams, invitations, emails and everything else you need.
Bedrock: Jumpstart your next SaaS product
Every time I build a SaaS product I waste weeks gluing together standard tooling and functionality: user authentication, cookie sessions, subscription payments, billing management, team management, GraphQL API, transactional emails, ESLint, TypeScript, Prettier, Cypress,...
That's why I created Bedrock.
Bedrock combines all the best tools the JS ecosystem has to offer into one solid foundation for your SaaS product. It feels fantastic to work with now and sets you up to scale as your code- and userbase grows.
And the best part is: you don't have to read thousands of pages of documentation to learn how to use Bedrock. If you know Next.js and GraphQL you can start coding almost immediately!
Tools
Bedrock combines all the best tools the JS ecosystem has to offer and makes them work well together. This means you get the best developer experience and can just focus on building your product.
There is absolutely no magic in Bedrock, just a bunch of glue code to make all of these tools best friends. You do not have to know most of these technologies to be productive and Bedrock is designed so you can easily remove all the optional tools!
Features
User authentication
Authenticate users without worrying about security and storing passwords. Users get a magic link sent to their email and as soon as they click it they're logged in!
Team support
Bedrock is ready for teams out of the box. Users can create "projects", each of which has its own billing and members. The pre-built invitation system allows users to invite their colleagues to their projects.
Subscription payments
Securely accept subscription payments with Stripe Checkout. Bedrock comes ready for any plans you want (including yearly, per-seat pricing and everything else) and already handles invoices, billing management, PCI compliance, and much more.
Unstyled
Bedrock comes without any kind of styling or component library because, let's be honest, you'd just delete it anyway. The frontend contains the minimal code necessary to make the functionality work. Make it look the way you want it to by bringing your own component library or using any open source one!
GraphQL API & integrations
Enjoy the fantastic developer experience of creating a GraphQL API with Nexus & Prisma and querying it with urql. Bedrock also comes with token-based API authentication, allowing users to programmatically integrate with your product.
Adjustable to your preferences
Bedrock is designed to be modular so you can fine-tune it to your preferences. All tools except for Next.js are completely optional and can easily be removed or swapped for your favorite alternative.
The best developer experience
There is a lot of fantastic tooling in the JavaScript ecosystem, but making it all work well together can be tricky. Bedrock comes with everything you need, configured perfectly, so you (and your team) can move fast.
Type-safe from the database to the client
Move fast thanks to TypeScript catching your bugs before you even hit "Save". Rename a field in the database schema or GraphQL API? TypeScript will immediately highlight where you need to update your code.
Code generation
Bedrock leverages code generation where it can so you have to code less and move faster. Prisma generates a custom ORM and migrations from your database schema, Nexus generates a custom GraphQL API from your ORM and GraphQL Codegen generates React hooks for fetching data from your GraphQL API.
Infinite scalability
Thanks to serverless, you never have to worry about scaling your servers. No matter how much traffic your product gets, Next.js will be able to handle it.
Additional
Внимание: Это не Видеокурс.
Updates
v1.5.0: Pothos & GraphQL Yoga Latest
TL;DR: Bedrock now uses Pothos to create the GraphQL schema and GraphQL Yoga to create the GraphQL server!
What's Changed
- Move from Micro to GraphQL Yoga for creating the GraphQL server by @zoontek and @mxstbr in #448
- Move from Nexus to Pothos for creating the GraphQL schema by @mxstbr in #452
- Update all deps by @zoontek in #451, including the following major upgrades:
- GraphQL v15 -> v16
- React v17 -> v18
- Cypress v9 -> v10
- Prisma v3 -> v4
- Update 3-projects.md by @jforaker in #402
About the Author: Max Stoiber
Max Stoiber is an Austrian developer best known as a co-creator of styled-components (the dominant CSS-in-JS library for React for a generation of front-end developers) and the founder of Bedrock — a paid Next.js SaaS starter aimed at developer-founders shipping production SaaS products fast. He is one of the most cited names in the modern React ecosystem.
His CourseFlix listing carries Bedrock — Jumpstart Your Next SaaS Product — a comprehensive Next.js SaaS starter pre-wired with auth, billing (Stripe), the multi-tenant data model, and the operational patterns for running a real production SaaS.
Material is paid and aimed at developer-founders shipping SaaS products on the React / Next.js stack. For broader content, see the Next.js and SaaS & Indie Hacking category pages on CourseFlix.
Related courses
-
Updated 1y agoReact Simplified - Advanced
By: Web Dev Simplified (Kyle Cook)Once you become a good React developer, it is time to start diving into advanced React concepts. This course will take you from a junior to a mid-level React d11h 34m5/5 -
Updated 2y agoShadcnKit: The Ultimate Building Blocks for Shadcn UI (Limited LTD (Figma+NextJs))
By: UI-Lib (ShadcnKit)Elevate your client projects with beautifully crafted websites effortlessly. With the power of shadcnui , Next.js , and Figma . -
Updated 1y agoTailwind UI (Application UI + Marketing)
By: Adam WathanTailwind UI is a collection of professionally designed, pre-built, fully responsive HTML snippets you can drop into your Tailwind projects. Get started by check0/5