Welcome to the forge: the Fractal Sierpinski motif on a dark blue background.

Welcome to Fractal Forge

TL;DR

  • This blog explains how Fractal works, and why we built it this way.
  • Expect deep dives, architecture patterns, product updates and lessons from running our own products.
  • Want the short version? One email a month, no spam.

Welcome to the Fractal Forge blog.

This is where we share the thinking behind Fractal: the technical decisions, the architecture patterns and the lessons we learn building and running generated applications.

Fractal in one picture

What Fractal is: model the domain in Fractal Studio, get a readable codebase in your own Git repository with room for custom code, then change the model and regenerate. Karibu Online builds it with Fractal; you own the code.

Model the domain, generate real code into your own repository, then change and regenerate. Karibu Online builds it with Fractal; you own the code.

Karibu Online builds software for clients with Fractal. The domain is modelled, the application is generated as readable code, and hand-written code is added where the business needs it.

The result is a normal codebase in the client's own repository. When the model changes, the code is regenerated and the hand-written parts stay.

Four kinds of posts to expect

Deep dives: how regeneration keeps your code

Regeneration as a three-way merge: a model change produces fresh output on the vanilla lineage, which is merged into main with your custom commits; custom code is preserved, the change lands everywhere, and real conflicts are surfaced.

Coming up in detail: how a regeneration merges fresh output into your work without losing your code.

How does regeneration keep your custom code? What is the specification pattern and why does it matter? How are permissions enforced in every layer?

Expect detailed explorations of the patterns and principles behind Fractal.

Architecture patterns, with concrete examples

Pluggable storage: the app talks to a generic repository interface with adapters for MongoDB (default), PostgreSQL, Firestore, DuckDB and in-memory for tests, chosen per entity in Studio.

One pattern we will unpack: a generic repository interface with pluggable storage, MongoDB by default.

Domain-driven design, commands and queries, the repository pattern: these are not just buzzwords. They are practical tools that solve real problems.

We will explain when and why to use each of them, with concrete examples.

Product updates: what each new feature makes possible

Modules plug into the generated app core: authentication, OAuth2, API keys, guest access, MCP, email, webhooks, background jobs, scheduled tasks, metrics, storage and payments. Toggle one in Studio and regenerate.

Modules plug into the generated app. When one ships, we write about what it makes possible.

As we ship new features, such as modules, workflows and clusters, we write about what they make possible and how to use them well. For the short version, see the changelog.

Lessons from running our own products

Fractal builds Fractal: Studio's own model is generated into Studio, whose custom generator code then builds every other app, so one template fix reaches all apps on regeneration.

Fractal builds Fractal: we run our own products on it in production, Fractal Studio included.

We build our own products with Fractal, such as Fractal Studio, Karibu CMS and Atlas, and run them in production.

We have seen what works, what doesn't and what we wish we had known earlier, and we will share those lessons here.

Why we write in public

Writing forces clarity of thought. To explain a concept publicly, we have to understand it deeply.

The blog is as much for us as it is for you: it is how we think problems through and document our decisions.

It also keeps us honest. When we write about our architecture choices, we commit to them in public, and that accountability helps us make better decisions.

One email a month, no spam

Want to know what's new? Subscribe to our monthly update on the changelog page. One short email a month, no spam.

We are looking forward to the conversations these posts will spark. If you have questions about anything we write, or topics you would like us to cover, get in touch.

Let's build something.