Live data from Hacker News

Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

github.com

11–20 of 40 posts

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#11
post #9

Oh boy another template shipped in a single commit; complete with "For now, do this" and "In production you would do this" comments

This was extracted from my production apps including (apflow.co).

I stripped out the business logic and keys, then pushed it as a clean starting point.

The "in production you would" comments are guides for where to add your own config.

Single commit because I didn't want my app's git history in an open source repo.

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#12
post #10
post #6

Earlier quoted context omitted.

You're not doing it wrong. For most CRUD apps, Next.js + tRPC is the right call. My tipping point was long-running tasks (OCR, AI processing that takes 30+ seconds) and wanting to scale backend compute separately from frontend serving. If you don't have those needs, stick with what you have.

Thanks for the answer! I've hit those tipping points myself in exactly the same scenarios (OCR and AI). For me, ends up being hacky or just decoupled (independent job runners). Makes sense to have a proper monolith backend for these. Congrats on the launch again!

I really appreciate your comment, never hesitate to reach out to me if you have any concerns, you can find my info in the repo.

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#13
post #6
post #5

Cool project! Will surely copy ideas from it :) A general question for the room: where's the tipping point where you need a "proper" backend, in a different language, with all the inconveniences of possible type safety issues and impedance mismatches? Because I feel like for 90% of small-medium projects it's just good enough with all the backend stuff within the same Next.js process as the front-end. I just do "separ…

You're not doing it wrong. For most CRUD apps, Next.js + tRPC is the right call. My tipping point was long-running tasks (OCR, AI processing that takes 30+ seconds) and wanting to scale backend compute separately from frontend serving. If you don't have those needs, stick with what you have.

[deleted]

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#16
This is cool - Whenever I have a new idea for a thing I spend too much time writing boilerplate IAM and backend stuff, taking away time that could be spend on actual business logic. Thought about packaging the boilerplate stuff up before, never gotten around to it. Glad you did!

A thing to consider would be to make it easier (or perhaps bake it in) to separate out parts of the app into a separate origin. Something that would be good for pretty much any SaaS app would be to separate the IAM out (could still embed it with an iframe) - this allows you to keep a fairly tight security policy for the IAM stuff and a more lax one for the rest of the app. Kinda how Google separates out accounts.google.com.

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#17
Nice project and great idea and a reasonable selection of technologies that optimize for low cost deployment.

However, my biggest concern is the glaringly lack of comprehensive tests whatsoever. I have to even question if this project is production ready at all.

Until that is in place, I really do not think this is "production" quality I'm afraid.

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#18
post #16

This is cool - Whenever I have a new idea for a thing I spend too much time writing boilerplate IAM and backend stuff, taking away time that could be spend on actual business logic. Thought about packaging the boilerplate stuff up before, never gotten around to it. Glad you did! A thing to consider would be to make it easier (or perhaps bake it in) to separate out parts of the app into a separate origin. Something th…

Thanks! That's exactly why I open-sourced it. Instead of this living in my private repo getting occasional updates, now the community can push it forward. Improvements flow back to everyone, including me. Win-win.

Your IAM separation idea is interesting. Separate origin for auth would tighten the CSP significantly. The backend is already modular, so spinning the auth service into its own container with a stricter policy is doable. Worth exploring. Would you mind opening an issue on the repo so I don't lose track of this?

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#19
post #17

Nice project and great idea and a reasonable selection of technologies that optimize for low cost deployment. However, my biggest concern is the glaringly lack of comprehensive tests whatsoever. I have to even question if this project is production ready at all. Until that is in place, I really do not think this is "production" quality I'm afraid.

Fair point. For what its worth I did add a script that runs tests and checks coverage. But yeah the coverage itself could be better, working on it

PRs welcome if anyone wants to help out

Re: Show HN: I open-sourced my Go and Next B2B SaaS Starter (deploy anywhere, MIT)

#20
This is great - thanks for sharing. I am actually building something very similar myself as I started building a couple SaaS and though it would be nice to extract the common pieces in a template.

My stack is similar, with a few differences:

- Go backend with sqlc, but using ConnectRPC[1]. I chose this as it allows me to define a proper API scheme and generate a decent-quality Typescript client.

- Nuxt (Vue) instead of Next.js (React). I chose this even though I'm new to vue cause I saw the open source components and templates here [2] (especially the dashboard template: [3]) and was convinced.

I'll definitely check out your repo as inspiration.

[1]: https://connectrpc.com/

[2]: https://ui.nuxt.com/

[3]: https://dashboard-template.nuxt.dev/

Post reply on HN