Flagship product

CruftFree: whole platforms, generated from one spec

Describe your whole system once in a purpose-built DSL. CruftFree compiles it into backend services, web and mobile clients, and infrastructure, with 16× less code to write and maintain. Client and server contracts cannot drift, because both come from the same spec.

A web-hosted version is coming soon at CruftFree.com.

16×
Less code to write & maintain
1,595
Production files generated
7
Source .dtrx files (that e-commerce platform)
The problem

The month-3 problem

The first microservice is always easy. The problem is service four, after two more developers join, requirements shift, and someone needs to add Kafka events across all of them.

Vibe-coded services, three months in

  • Service 1 returns snake_case fields, service 3 returns camelCase. Same developer, two months apart.
  • The user ID is a UUID in two services, an integer in one, and a string in another.
  • Auth middleware is a decorator in one service, dependency injection in another, hardcoded inline in a third.
  • Nobody wants to change any of it, because no integration tests actually run in CI.

With CruftFree, change a field in your entity and regenerate. Every service that references it updates consistently, with matching migration scripts. The spec is the contract.

Side by side

Vibe coding vs CruftFree

AI assistants are great at one service. A platform needs the same answer every time.

Vibe coding (AI assistants)CruftFree
ConsistencyEvery prompt produces different patterns, naming, and structure.Every service follows the same architecture, every time.
HallucinationInvented APIs and deprecated libraries that look right and fail at runtime.Generated from validated templates: validated at compile time, deterministic output.
Cross-serviceShared types drift, event contracts break, API clients fall out of sync.Types, events, and API contracts come from one source of truth.
Web and mobileClient code is written separately and drifts from the API it calls.Angular and Flutter clients are generated from the same spec as the services, so client and server cannot drift.
InfrastructureDocker, monitoring, and CI/CD still written by hand.Generated alongside the application code and wired together.
ReproducibilityRe-prompting gives different results.The same .dtrx input always produces the same output.
Team scalingQuality varies with who wrote the prompt.Best practices are encoded in the generator, regardless of seniority.
LongevityCode is frozen the day it's generated.Regenerate to pick up fixes, new practices, or a new target language.
Longevity

Your spec outlives your stack

Your .dtrx spec is the only thing you own. The generated code is just today's output from it.

Fixes and new practices

CruftFree ships a fix in its auth middleware, or adds OpenTelemetry tracing. Regenerate, and every service gets it.

New platforms and clouds

Move from Docker Compose to managed hosting, or from AWS to Azure. The spec describes your services, not a cloud. Switch the target and regenerate.

New languages and people

Python services can become TypeScript services without rewriting business logic. New developers read the .dtrx files, and the architecture fits on one screen.

The spec is permanent. The generated code is disposable.

CruftFree + AI

The right pairing

CruftFree isn't anti-AI. When you work at the DSL level, AI works at its best.

The whole system fits in context

An e-commerce platform is 1,595 production files in Python or TypeScript, and seven .dtrx files. AI can see every service, entity, and event contract at once.

Changes at the right level

"Add idempotency to every POST endpoint" is one change in the spec, not dozens of edits across services. AI helps decide what to change; CruftFree applies it everywhere.

No hallucinated wiring

Kafka consumers, Prometheus metrics, and migrations are where AI breaks things quietly. CruftFree generates them deterministically from your intent.

Use AI toUse CruftFree to
Explore architecture options with the full spec in contextGenerate the structural backbone
Review the data model across all entities at onceEnforce consistency across every service
Spot missing caching, resilience, or eventsWire infrastructure together correctly
Write focused, domain-specific business logicReproduce the exact same output from the same spec

CruftFree compresses your architecture 16×, small enough for AI to see all of it. AI reasons over the whole system; CruftFree turns it into code deterministically.

Under the hood

A real compiler, not a template engine

A proper lexer, parser, and AST, with a C core of 41,138 lines. The whole implementation is ~2,500 Python source files and ~680,000 lines of code.

Language & core

  • cruftfree-language: parser and compiler
  • cruftfree-common: shared AST, semantic analysis, validation of cross-service types and event contracts
  • cruftfree-cli: tooling and developer experience

Application generators

  • FastAPI (Python) and NestJS (TypeScript) services
  • SQL schemas and migrations
  • Config, docs, and schema generation

Platform & client generators

  • Docker and Docker Compose
  • AWS (CDK, CloudFormation) and Azure (Bicep, ARM)
  • Angular web and Flutter mobile clients, generated from the same spec as the services they call

Every generator is versioned independently, and the parser validates the whole spec before any code is emitted. By the time a generator runs, the design has already been checked.

Starting a new platform? Talk to us about CruftFree.

Book a free 30-minute call about generating the backbone of your new platform with CruftFree: backend, web, and mobile. You'll talk with the architect who would build it.