Platform

From model to running software, and back again

Model your domain in Fractal Studio, generate a complete application into your own repository, add the code that makes your business different, and deploy. When the business changes, change the model and regenerate: your custom code stays.

Model, generate, merge, deploy, evolve

One loop, from the first entity to years of changes.

  1. Step 1:Model

    In Fractal Studio we describe, together with you, what your business is made of: entities and their fields, value objects and enumerations, the commands and queries on them, roles and who may do what, the external services you depend on, settings, workflows and portal pages. Modules add the features nobody should have to build again.

  2. Step 2:Generate

    The generator turns the model into a working application: domain layer, REST API, portal, command-line tool, tests, container images and CI workflows. The code is pushed to your own Git repository.

  3. Step 3:Merge

    Fractal keeps a copy of its untouched output from the previous generation and merges three ways. Where you changed code, your version stays. Where only the templates changed, the new version comes in. Where both changed, the conflict is left for a person to resolve on a separate branch.

  4. Step 4:Deploy

    A push to main builds the images and deploys them. Fractal Studio prepares the deployment target with a dry run first, syncs each environment's settings and secrets, sets up database backups, and shows logs and configuration drift.

  5. Step 5:Evolve

    A new field, a new rule, a new role: change the model and regenerate. Every layer follows, and so do improvements to the templates and modules.

What the platform gives every application

Generated from your model, consistent across every project, and yours to extend.

  • Domain-driven layering

    Each entity gets its domain model, commands, queries, events, API and storage adapters in a fixed structure. External services are ports with interchangeable adapters, and entities can be stored as plain state, state with events, or fully event-sourced. Storage is pluggable behind a generic repository interface: MongoDB by default, with the repository layer also supporting PostgreSQL and other SQL databases, Firestore and DuckDB.

  • Regeneration that keeps your code

    Custom code lives in marked regions and custom folders. The three-way merge preserves it on every regeneration, and the generated project ships with tooling that checks the markers are intact.

  • A command-line tool per app

    Every application gets its own CLI with a command group per entity, generated from the model. With the OAuth2 module, users log in from the terminal through a browser or a device code.

  • A portal out of the box

    A SvelteKit portal with overview and detail pages for every entity, plus pages, menus, themes and dashboards modelled in the studio.

  • Workflows

    Model processes in the studio's visual editor: steps that run in a command or when an event happens, synchronously or in the background. They are checked against your model and compiled into regular, readable code. See Workflows.

  • Background jobs and schedules

    A durable job queue and user-managed schedules, through the Background Processing and Scheduled Tasks modules.

  • Email and webhooks

    Editable email templates with a choice of providers, and signed webhooks for every domain event. See Email and Webhooks.

  • Environments, deployment and backups

    Environments with their own variables and encrypted secrets, synced to the deployment target with a guard against drift. Scheduled backups of databases and volumes go to S3-compatible storage.

  • Several apps, one suite

    Group applications into a cluster for one sign-in, roles per app, an app switcher in every portal and generated clients between them. See Clusters.

  • Tests included

    Generated tests for every entity's API and service, for each command, query and workflow, plus a CI workflow that runs them.

Real code, in your repository

Fractal is not a runtime you rent or a black box you configure. The generator produces ordinary source code, a Python backend and a SvelteKit portal, in a Git repository you own. You can read it, test it, review it and run it anywhere containers run.

What makes it different is that the code stays connected to the model. Most generators are a one-way street: generate once, then maintain by hand. Fractal regenerates as often as you like, and the merge keeps the work your team has added. That is what lets an application grow for years without turning into a pile of code nobody dares to touch.

Fractal Studio is itself a Fractal application, built and regenerated this way, as are our own products such as Karibu CMS and Atlas.

Storage you choose per entity

The application never talks to a database directly. It works against a generic repository interface, and an adapter behind it does the storage. MongoDB is the default; the repository layer also supports PostgreSQL and other SQL databases, Firestore and DuckDB, and an in-memory store for tests. You choose the storage per entity in Studio, so one application can keep different data in different places without changing its business logic.

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.

See the loop on your own domain

In a demo we model a slice of your business, generate it and show you the code, the portal and the deployment.

Book a demo