The site
Pages as Markdown, one file per section, and settings in YAML: plain text that your agent, your developers and Uniweb App all work on.
01 / THE OPEN-SOURCE FRAMEWORK
One open-source React project can hold your public pages and your web app's screens, on one domain, or each can be a project of its own. Its pages show content you publish, records your team keeps current in Uniweb App, and each member's own data from the Application Engine. The code and its history stay yours, in Git.
npx uniweb@latest create my-project
THE PROJECT MODEL
A Uniweb project has two parts: the site, which is what your website says, and the foundation, the React code that draws it. Change the words and the design stays; change the design and the words stay.
Pages as Markdown, one file per section, and settings in YAML: plain text that your agent, your developers and Uniweb App all work on.
The React code that draws the site. Each kind of section, such as a hero or a price table, is a section type, whose options become its controls in Uniweb App.
Section types too, written in React: a member's courses, a lesson player. They read each member's data through the SDK's hooks, and nobody composes them in Uniweb App.
ONE SITE · THREE CONTENT SOURCES
A Uniweb site is a React SPA with built-in prerender. It can mix content published with the site, fresh records from Uniweb App's CMS, and authorized public data from its own Application Engine.
Live records need no application backend. Enable one when your site also needs member accounts, records that members create, payments, or functions that run on the server.
Public pages, layout, and assets published with your React project.
No application backendEvents, articles, and editorial information updated in Uniweb App and fetched live by the site.
No application backendMembers' profiles and the records they keep, with access checked by the engine and public queries you choose.
Application Engine enabledONE CONFIGURATION SETTING
Add this to your site's site.yml. The site's next publish starts its own Application Engine, with its own PostgreSQL database; its pages and live records stay as they are.
The site's owner chooses which records and fields public queries may show. Visitors see only those, and signed-in members manage their own records on the same site.
services:
backend: trueCONTENT AND DATA
Describe what your site holds, such as articles, events or courses, as data schemas. One schema gives your components a typed shape, gives Uniweb App the form to edit each record, and tells a web app's engine what it keeps.
A course can hold its modules and lessons. What has an owner of its own, like a student's enrollment, becomes an entry of its own.
name: course
sections:
identity:
brief: true
fields:
title: { type: string, required: true }
modules:
many: true
fields:
title: { type: string }
sections:
lessons:
many: true
fields:
title: { type: string }
body: richtextWHEN AUTHORS NEED TO BUILD PAGES
For content-driven websites, turn selected React components into a vocabulary of sections authors can arrange and edit themselves. Uniweb App provides visual composition, rich Markdown authoring, and live CMS records.
It's an independent choice, not a requirement for your application: a members' area can be entirely your own design.
THE BROWSER IS A COMPUTER
Many application features don't need custom server code. Work with structured data in React and transform it directly in the browser.
For example, @uniweb/loom and @uniweb/press can generate Word documents from a researcher's authorized academic CV data.
PUBLICATIONS
LOCAL FIRST
Vite, React and the Uniweb CLI, with Tailwind set up in every new foundation. A web app's screens reach the engine through the SDK's React hooks, with no routes, tokens or fetch code, and run on your machine against the real engine: its free Developer Edition, in Docker.
Create a project and run it locally.
npx uniweb@latest create my-site
cd my-site
pnpm install
pnpm devPaste the prompt and say what you want; the agent builds it and shows it to you.
Build a website or web app with Uniweb.
Start with `npx uniweb@latest start`
I want to build: [describe your website or web app]Every project comes with AGENTS.md, a manual written for agents.
PUBLISHING
uniweb publish sends your site to Uniweb hosting and takes it live, with no build server or CI to configure. With the backend turned on in site.yml, the first publish also starts the site's own Application Engine.
uniweb publishThe page a visitor arrives on is prerendered close to them, with live records, forms and statistics onA site that grows, and every web appuniweb deployEach page is prerendered when the site is built, and served as a fileA website with no live servicesPages you publish, records your team keeps current, and a members' area with its own data: one site can hold them all.