Code that stays clean. Whoever writes it.
CAITS sets up a high-quality full-stack TypeScript project. Then one command checks that every change keeps it clean, from the types to the tests, even when an AI agent wrote it.
npx @ingenioz-it/caits init my-app --exampleAll checks passed
What's decided
The decisions, already made.
No more business logic tangled with the database, tests that check nothing, or files dropped anywhere. The architecture, the tests, the structure and the lint are decided before you write the first line, and the right quality tools keep them that way.
Architecture
Proven patterns, set up and working together.
- Clean Architecture. Everything points towards your business rules.
- Ports and adapters. So the external dependencies don't decide how the project is built.
- DDD-compatible. Split your app into bounded contexts, with a rich domain that is easily maintainable.
- CQRS-ready. Each use case is a command or a query, in a folder of its own. Reads and writes can evolve apart.
Tests
CAITS gives you the tools to write high-quality tests, easily.
- Sociable tests. The tests become documentation, and you can refactor without breaking the tests.
- Code coverage. The testing strategy ensures you test 100% of your code.
- Mutation testing. Every mutant must be killed: a test that checks nothing fails the check.
- End-to-end testing. Your pages run in a real browser, on the production build.
Project structure
Every file has its place. Your agent never guesses where code goes, and neither does a new hire.
- Vertical slices. One folder per use case, with its tests sitting beside it.
- The same shape everywhere. The same folders and names in every context.
- Designed for simplicity. Maintaining and modifying your app will be easy on your brain (and on your tokens).
How it works
One harness to rule them all.
With just one command, CAITS sets a strict bar for your code and holds every change to it. No check can be turned off in the code: no eslint-disable, no @ts-ignore, no skipped test. An exception lives in quality/, where your review sees it.
npm run checkEvery check, green.
One line per check, all run at once. When every line is green, the change is ready for your review.
~/my-app
npm run check
6 checks at once: typecheck, lint:code, lint:architecture, test:coverage, test:mutation, test:e2e
✓ lint:architecture 0s
✓ typecheck 3s
✓ lint:code 4s
✓ test:coverage 4s
✓ test:e2e 9s
✓ test:mutation 23s
All 6 checks passed in 23s.Any violation, caught.
When the harness catches something, it tells you explicitly what is wrong, and how to fix it.
npx caits architecture
src/backend/messages/command/add-message/add-message.handler.ts:2 [application-imports-no-infra] The application layer must not import the infra layer (src/backend/messages/infra/message-repository/file-message-repository.js). Depend on its port, MessageRepository (src/backend/messages/domain/port/message-repository/MessageRepository.ts), instead, and bind the adapter in src/backend/messages/di.ts.
1 architecture violation.With an AI agent
Your agent writes. CAITS verifies.
You focus on the intent. CAITS checks everything a machine can check.
You ask for a feature.
The agent writes the code.
- The agent and CAITS
- The agent runs
npm run check. - CAITS says what is wrong.
- The agent fixes it.
Until every check is green.
- The agent runs
You review a change that already passes.
Get started
From zero to green in one command.
Start clean. Stay clean.
Your app, green in minutes. And it stays that way.
npx @ingenioz-it/caits init my-app --exampleThen ask your agent for a feature, and watch the check.
This site is built with CAITS, and passes the same checks. So does the example app : clone it and run npm run check.
Questions
Questions before you try it.
Another question? Ask it on GitHub
Is it a template, or a framework?
Both. caits init writes the project, and those files are yours. The package stays as a dev dependency: dependency injection, message buses, frontend stores, test helpers, and the setup of every tool. Your domain imports just three small types from it, so leaving is easy: copy what you use. The license, 0BSD, asks for nothing.
What is the stack?
TypeScript from end to end. Marko 6 and Marko Run for the pages and the server, Vite to build, Sass for the styles. ESLint, Vitest, Stryker and Playwright for the checks.
Why Marko, and not React?
Marko streams ready HTML from the server, and ships JavaScript only where a page is interactive. Its templates are type-checked like the rest of your code. And it stays in the presentation layer: your domain and your use cases are plain TypeScript.
Does it work with my agent?
Yes. The way CAITS guides your agent lets it succeed even with smaller models, using little context and few tokens.
Can't I just add lint rules?
You can, and it's a start. CAITS gives you the decisions already made, and many rules already written (architecture, layers, contexts, files, names, etc.) for TypeScript, Marko and Sass. Then the types, the tests, the mutation tests and the end-to-end tests, in one deterministic command, with errors an agent can act on.
Is it ready for production?
Not battle-tested on extremely complex applications yet. CAITS runs this site and the example app, and has one maintainer, François Baveye . It is still evolving. Expect breaking changes before 1.0.