Maks Danylenko · 3 December 2026
Feature Flags for Free: A JSON File, Git and S3
Our feature flags live in JSON alongside the code. We change them through pull requests and serve them through S3 and CloudFront. We haven't needed a separate SaaS platform for this.
Show a new feature to some users
We use feature flags to gradually roll out new functionality to different users. We want to minimise the impact of an update across all users. Some people get the new behaviour first, and we can see what we couldn't catch during testing.
The same goes for refactoring: it should affect as few real users as possible.
Six reasons to stay off SaaS
Migration, onboarding and depending on another product take a lot of time. My objections start before we've even created the first flag.
First, you need to learn the platform itself: how it works, the thinking behind it and how to integrate it into our codebase. Then you need to understand the SDK for our programming language. You came to manage flags, but you're sitting there learning a new product. That's a lot of cognitive load.
After that, you need to onboard the other developers. They go through the same process and try to minimise their interaction with the platform.
It's hard to see and control all the flags across different environments. When they're in the repository, I know what's enabled on prod, stage and dev. Opening the platform and checking all those values isn't as easy. I want to see the state of the flags while I'm working on the project.
I don't understand SaaS without AI integration. There's no MCP server, no CLI with skills for AI agents. We write code through an agent, then go and enable the flag manually. We could give the agent a browser as a workaround. But why do I need that too, just to change a flag's value? In our team, developers aren't the only people who switch flags. A product manager or someone from support asks the agent in chat. The agent uses a skill to make a PR, and a developer reviews and merges it.
Have you seen the feature flag UI in a large product with hundreds of flags? I still need to find the one I need and understand what's going on. The fact that flags have their own interface isn't a reason for me to migrate.
Our flags sometimes look more like configuration. We need booleans, a list of something, a set or a list of entities. The structure can be complex. Platforms generally let us store this, but for us it's another workaround.
Add it all up. We need to migrate the flags, learn the product, train the team and tie ourselves to the platform. That's too much time for a task we can handle far more simply.
One folder, one JSON file, a regular PR
For each of our products, we created a feature-flags folder at the project root and put one JSON file in it. Want to add a flag or turn an existing one on or off? Make a pull request. Everyone sees the change straight away.
I like seeing both the flag and the code that uses it in one PR. We don't need a separate explanation of what we're switching: we can look at the value and the implementation side by side.
Git keeps the history. We always know who turned a particular flag on or off in production and when. We got auditing out of the box, through our usual work in the repository.
{
"newSearch": true,
"visibleSections": ["search", "history"],
"allowedUsers": ["user-a", "user-b"],
"rules": [
{ "entityId": "example-a", "enabled": true },
{ "entityId": "example-b", "enabled": false }
]
}
JSON lets us write the structure we need. A flag can be a simple switch or configuration with a list of entities. We read the file and use its values in our code.
We added S3, CloudFront and a cache for each service
Later, we started putting JSON files from the projects into an S3 bucket, enabled versioning and connected CloudFront. We set up history in S3 just in case. That's about all the extra complexity.
- Repository
/feature-flags/*.json - PRFlag and code
- S3Versioning
- CloudFrontServes the JSON
- ServicesTheir own cache TTL
When a service needs a flag, it fetches our JSON and reads it again. The mechanism is the same, but each service determines how often it updates. For some, reading the file once at startup or restart is enough. Another reads it every 5 minutes, and another every 30 seconds.
| What we need | How we handle it |
|---|---|
| See changes alongside the code | JSON in the repository and one PR |
| Know who changed a flag and when | Git history |
| Store complex values | The JSON structure we need |
| Serve the file to services | S3 with versioning and CloudFront |
| Choose how often to update | Each service sets its own cache |
I have everything I need out of the box. It works in 10 seconds, covers all my needs and looks very simple in the code.