02 / UNIWEB APPLICATION ENGINE

The backend you don't have to build.

Members sign in, keep their own data and pay, and you write no backend code. Declare your domain's types, and the Application Engine does the rest: accounts, permissions, storage and payments, on a PostgreSQL database of its own.

npx uniweb@latest create my-solution --template starter
The engine's Developer Edition runs on your machine in Docker, free for development.
The bookstore website connects through Uniweb’s Application Engine to PostgreSQL and the infrastructure behind it.The bookstore website connects through Uniweb’s Application Engine to PostgreSQL and the infrastructure behind it.
You build the site and its screens. The engine handles accounts, data and permissions, on infrastructure managed for you.

WHAT THE ENGINE DOES

What every web app needs, already there.

A game engine gives a game its rendering, physics and input, so its makers spend their time on its world and its rules. The Application Engine does the same for a web app. You build your domain's types, its screens and its own rules, and you create no tables, write no SQL, run no migrations and write no API.

Accounts

Sign-up, sign-in and password resets, and the mail they send.

Roles, teams and sharing

Roles and teams, and for each entry, its owner and the people it's shared with.

Your data

Entries of the types you declare, checked on every write and held in each language, with a history that can't be rewritten where you ask for one.

A store

Offerings, coupons, checkout and what each member holds, through the owner's own Stripe account.

An inbox

One for each member, with what's shared with them and their invitations.

Integrations

Entries that move to and from other systems: a feed another service reads, or a call when something happens.

THE ENTITY MODEL

Model the domain, not the tables.

On a relational database, a course with modules and lessons is three tables and the keys between them. Here it's one Model: its modules and lessons are part of the course, created, read and removed with it.

A concept gets a Model of its own when it has its own identity, lifecycle or permissions. An enrollment begins and ends on its own schedule. A submission is the student's, and the grade on it is the instructor's, hidden until it's released.

ModelsSectionsReferencesAccess per entry
Model the domain, not the tablesA Course Model holds its modules and lessons. Enrollment, Submission and Grade are Models of their own, for their own lifecycle or permissions.Example: a course platformOne Course Model holds its sections. What has its own lifecycle or permissions gets a Model of its own.UNIWEB / SOLUTION ARCHITECTUREMODELCourseDetailsTitle · Description · Instructor referenceREPEATINGModulesModule 1Lessons: Intro · Concepts · ExercisesModule 2Lessons: Practice · AssessmentOWN MODELEnrollmentStudent ↔ Course · Own lifecycleOWN MODELSubmissionStudent responses · The student's ownOWN MODELGradeInstructor-owned; private until release

ONE SITE, ITS OWN BACKEND

Your site, with its own backend.

A web app doesn't have to be a second project: the same React site, on the same domain, can serve visitors and signed-in members, or the app can be a project of its own. One entry in site.yml gives it an engine, and blueprint.yml beside it says how that engine starts: who may sign up, who adds entries of each type, and what visitors may read. A type it doesn't open stays closed.

Components reach the engine through the SDK's React hooks, with no routes, tokens or fetch code, and the engine's address comes from the site's host. These are the conference example's own files.

terminal
npx uniweb@latest create my-event --template conference
site/site.yml
name: Conference
foundation: src
pages: [home, programme]

services:
  backend: true

WHERE YOUR LOGIC RUNS

Build your logic. Run it where it fits.

Many features need no server code of your own. Put each piece of logic where what it needs is: in the browser, in a compute function your foundation ships, or in an outside service through an integration. Whichever writes an entry, the engine applies the same rules to the write.

Your logic, backed by shared servicesLogic of your own runs in the browser, in a compute function the platform runs, or in an outside service through an integration. The engine applies the same rules to every write: the entry's owner and who it's shared with, the type's own rules, and a history that only grows.Your logic, backed by the enginePut each piece where what it needs is.IN YOUR COMPONENTSBrowser• Filters and calculations• Documents from a member's own data• Runs at once, on the deviceSHIPPED IN YOUR FOUNDATIONCompute functions• Logic a member must never see• Such as a quiz's answer key• Run when something happensTHROUGH AN INTEGRATIONExternal services• Work that needs the network• Or a package, storage or time• Your servers or another provider'sTHE SAME RULES ON EVERY WRITEUniweb Application EngineThe same engine for every site: your code runs beside it, not in itAccounts · Entries · Owners and sharing · Store · InboxPostgreSQLWHICHEVER WRITES AN ENTRY, THE ENGINE CHECKS IT THE SAME WAY

THE SOLUTION OWNER CONSOLE

The engine comes with the controls to manage it.

Every web app gets the Solution Owner Console, the engine's own administration, the same for every solution. There its owner sets what every web app has: the payment account, teams and who is in them, roles, the store's offerings and coupons, and an integration's address and keys. None of it belongs in your files.

What is your domain's stays yours to build, in your solution's own words: a course's roster and grading, a dealership's inventory and requests.

The Solution Owner ConsoleYour admin area
Who uses itThe site's ownerThe people who run the solution: its instructors, sales team or staff
What it holdsPayments, teams, roles, the store's offerings and coupons, integrationsYour domain's work, such as a course's roster and grading
Its wordsThe same for every solutionYour solution's own, with its brand
Who builds itIt comes with the engineYou, as section types in your foundation
People the console admits reach it from your site, through its Admin link.

COMPARED WITH A BACKEND-AS-A-SERVICE

Already know Supabase?

A backend-as-a-service such as Supabase or Firebase gives an app a database, sign-in and an API with no servers to run. It's general-purpose: you design the tables or collections, and write the rules that protect them.

The Application Engine works at the level of your app's domain, and has what most web apps need besides data, so you write no tables, access rules, queries or server routes.

A relational database stays the better tool for ad-hoc analytical SQL, heavy number crunching, or a schema tuned column by column. The engine is built for structured, related and permissioned data that people and applications read and write.

A backend-as-a-serviceThe Application Engine
What you defineTables or collections, and the rules that guard themData schemas, and a blueprint: who may sign up, and what each person may see
Who may see whatRules you write for each table or collectionEach entry's owner and the people it's shared with, checked by the engine
Payments and messagesOther services, extensions or code of your ownThe engine's store and inbox
From the front endA client library and the queries you writeThe SDK's React hooks, with no routes, tokens or fetch code
A Uniweb app can still use a service built on Supabase, from the browser or through an integration.

ITS OWN, BY DESIGN

Same engine. Your own backend.

When a web app is published, Uniweb provisions its engine: its own Application Engine deployment and its own PostgreSQL database, for that web app alone.

You choose its tier when you publish. Tiers differ in the compute and egress they give the web app, not in what the engine can do.

See the engine's tiers
One backend deployment per solutionOn Uniweb hosting, each web app gets its own Application Engine deployment and PostgreSQL database.One engine per web appThe same engine, deployed once for each web app.UNIWEB / APPLICATION ARCHITECTUREUniweb hostingProvisioned when you publish · Managed and billed in Uniweb App · Compute and egress by tierWEB APP AIts React siteIts own Application EngineIts own PostgreSQL databaseWEB APP BIts React siteIts own Application EngineIts own PostgreSQL database

WHERE THE ENGINE RUNS

On your machine. Then on Uniweb.

The Application Engine is written in Rust, on Actus, our open-source Rust web framework. Build against the full engine on your machine, then publish your web app to Uniweb.

Free

Your machine

The engine's Developer Edition, built and licensed for development, runs in Docker with its database. pnpm dev uses it, and it doesn't expire.

The Developer Edition
Available today

Uniweb hosting

Publish from the CLI or Uniweb App, and choose the engine's tier. Uniweb provisions the engine and manages it, and Uniweb App bills it.

The engine's tiers