Live data from Hacker News

Ask HN: How come there is no example code for B2B-SaaS apps?

news.ycombinator.com

1–10 of 94 posts

Ask HN: How come there is no example code for B2B-SaaS apps?

#1
I'm truly baffled! There are probably 1000s of consumer (B2C) SaaaS example and OSS apps in virtually all languages. But there is virtually ZERO examples or OSS projects that talk about B2B multi-tenant apps! The worst part is that even companies like Google Cloud don't provide an example.

What I'm looking for is: A SaaS app that allows people to create tenants (companies), and allows admin of the tenant to login and manage group of users, keep track of billing for each tenant, have super-admin who can access any tenant. But the rest of the app code is shared across the tenants. I'm looking for code that's either in Java or JavaScript(NodeJS). Are you in the same boat as me? If not, could you please point me to something? I really appreciate that!

Re: Ask HN: How come there is no example code for B2B-SaaS apps?

#4
I'm not sure you'll find something with such a specific requirement.

The first thing that came to mind is server management tools like free alternatives to cpanel/webhostmanager

https://froxlor.org/

You'll have better luck searching online if you look for "free / open source" + specific problem/solution rather than "b2b saas app"

in this example i searched for "free alternative to cpanel"

Re: Ask HN: How come there is no example code for B2B-SaaS apps?

#6
Why? It’s difficult and knowledge of how to do single and multi-tenant applications for B2B keep a ton of people employed. However it’s not that far off from consumer projects. Most established players moved fast to build custom code to match their use cases. It’s not OSS material.

For B2B, “super-admin” should only be done with logged permission. Usually an email request.

Here’s two projects to help point you in the right direction.

https://github.com/terraform-google-modules/terraform-google...

WorkOS is attempting to simplify this. https://m.youtube.com/watch?v=IR2QZQrzoiA&t=1433s

Re: Ask HN: How come there is no example code for B2B-SaaS apps?

#9
What is the problem just build it your self. A simple template that has a login with a todo list can be extended to have a companies table. When you have added this, you can add a n to n relation between companies and users and poof you have a B2B saas app template.

Re: Ask HN: How come there is no example code for B2B-SaaS apps?

#10

What is the problem just build it your self. A simple template that has a login with a todo list can be extended to have a companies table. When you have added this, you can add a n to n relation between companies and users and poof you have a B2B saas app template.

I think the request is more for guidance about how to do it right.
Post reply on HN