Live data from Hacker News

Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

news.ycombinator.com

111–117 of 117 posts

Re: Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

#111

We recently launched Middleware( https://github.com/middlewarehq/middleware ) - Open Source Software for Engineering Analytics. We made an architectural change first of splitting the product into core and non-core features. We put core in one repo and non-core in other repos. We made the core part open source and our paid offering takes up the rest of the product as addons! So, we maintain only one codebase and avoid…

Yes, I would love to learn more. So, how do you manage the code between core and non-core versions? Do you copy from one to the other via automations or is it some other way?

Re: Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

#112

I worked in product at Elastic working on Elasticsearch, which ended up trying several different things (some of which I know the broader OSS-driven community didn't like, so I'm prepared for downvotes here). We had started off by using a series of private repos for our non-OSS features. At build time, we had a pretty complicated suite of build tooling that took all of the repos and integrated them and ran the integr…

Very insightful, thank you for sharing!

Re: Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

#115

Don't split your codebase. Just add some flags if it is self-hosted or not. Devs here will cry and tell you you can't do that and people can bypass it. Really don't listen to them. 99% of the people who purchase your SaaS instead of self-hosting do it because they don't want the hassle. The rest won't buy from you anyway. The biggest problem is getting SOMETHING out there. If you have success (which let's be honest m…

> If you have success (which let's be honest most likely you won't)

My favorite part of your reply..haha

Thanks for sharing!

Re: Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

#116
post #4

I have a single code base [0] for the self-hosted editions and for the SaaS. I split features up across two editions: community edition (CE) and enterprise edition (EE), and then also two modes: singleplayer and multiplayer (single- vs multi-tenant). The switching is done via environment variables, KEYGEN_EDITION and KEYGEN_MODE. The SaaS offering actually runs the EE edition in multiplayer mode, and is right now the…

Sounds good! Honestly, I may not take this route due to the nature of my product (a self hosted CMS with Enterprise and OSS versions). But very interesting, thanks for sharing!

Re: Ask HN: Founders who offer free/OS and paid SaaS, how do you manage your code?

#117
post #113

I watched an interview of Tom from GitHub recently with Indie.vc, and he spent a solid five minutes reiterating that you shouldn’t split your code bases.

Do you have the link please?

Here you go: https://www.youtube.com/watch?v=oA7mCjY5ySA

Discussion of split codebases happens around the 41 minute mark

Post reply on HN