20 CAKE20.JS

The Cake20 website language

Full-stack, without the ceremony.

Write the screen in TSX and the server as a function. Cake20.js handles the framework code between your idea and a running website.

  • TypeScript-first
  • One website, one workspace
  • AI-ready rules
app/pages/index.tsx
export const data = {
  count: 20,
};

export default () => (
  <main class="p-8">
    <h1>CAKE20</h1>
    <p>Light candle {data.count}.</p>
    <Button onClick={() => data.count++}>
      Start again
    </Button>
  </main>
);
CAKE20 Time to light the candle again.

One name for the whole way you build.

Cake20.js is the public name for the source model that combines the screen system, build and execution Runtime, UI, data and server capabilities of a Cake20 website.

@cake20/view Screen language and browser adapter
+
@cake20/runtime Build, server and execution contract
=
CAKE20.JS The complete website programming model

A screen that reads like the idea.

Cake20 View keeps ordinary TypeScript and HTML names while hiding setup code that does not describe the screen.

  • Reactive data without ref or .value
  • Conditions and lists with TypeScript
  • Two-way values with bind
  • Lifecycle through named exports
@cake20/view

A server that stays close to the work.

Cake20 Runtime connects each file to the web, data and operating environment without repeating infrastructure in every website.

  • File-based API and routes
  • PostgreSQL models and queries
  • Auth, Storage, Jobs and Tasks
  • Preview, build and independent execution
@cake20/runtime

Small rules. Large websites.

The source stays predictable as the product grows, so a person or AI can enter a project and understand where work belongs.

01

Read before learning

Familiar TypeScript, HTML attributes and short file rules make the first screen understandable without a framework manual.

02

Convention over repetition

Routes, components, APIs and data follow their folders. The Runtime supplies the wiring once.

03

Independent by default

Every website keeps its own source, data, files, build and process while sharing a versioned Runtime.

Less framework. More website.

These examples show the source users and AI write. Imports and infrastructure appear only when they explain the website itself.

View all examples
app/pages/index.tsx

Reactive screen

export const data = {
  count: 0,
};

export default () => (
  <main class="space-y-4 p-8">
    <h1>{data.count}</h1>
    <Button onClick={() => data.count++}>
      Add one
    </Button>
  </main>
);

The data object becomes reactive for each screen instance.

From an empty folder to a running website.

1 Create a Cake20.js website
2 Edit with AI or your editor
3 Review the real website
4 Publish an independent release

Make the next website clear from its first line.

Use Cake20 Core for visual creation and operations, or read the complete documentation before building with AI and CLI.