Application targets
Generate full-stack web apps, API-only services or Expo mobile clients from explicit target intent.
TYPE WEB | API | MOBILE;RAIQL 1.0 is the stable declarative language for describing application structure, data models, APIs, access rules and delivery intent in a specification that can be parsed, validated and compiled into working web applications, API services and mobile clients.
CREATE APPLICATION "Commerce Core";
TYPE WEB;
USE STACK
FRONTEND NEXTJS,
BACKEND NEXTJS,
DATABASE POSTGRESQL;
CREATE ENTITY Product (
id UUID PRIMARY,
name STRING REQUIRED,
price DECIMAL REQUIRED,
ownerId UUID REQUIRED
);
CREATE API Product;
CREATE CRUD Product;
CREATE USER ENTITY User;
ADD AUTHENTICATION EMAIL_PASSWORD, JWT;
ADD ROLE ADMIN, USER;
DEFAULT ROLE USER;
RELATE Product.ownerId TO User.id;
OWN Product BY ownerId;
ALLOW ADMIN CREATE Product, READ Product, UPDATE Product, DELETE Product;
ALLOW USER CREATE OWN Product, READ OWN Product, UPDATE OWN Product, DELETE OWN Product;
GENERATE TESTS;
BUILD;Natural-language prompts are excellent for exploration, but software delivery needs stable structure. RAIQL captures the parts of an application that should be explicit—its type, technology stack, domain model, APIs, security intent and build actions.
The compiler turns that source into a normalized intermediate representation so downstream tools operate on a predictable contract instead of re-interpreting prose.
Understand the compiler →RAIQL keeps intent close to the product model while leaving implementation detail to the selected stack and generators.
Generate full-stack web apps, API-only services or Expo mobile clients from explicit target intent.
TYPE WEB | API | MOBILE;Define entities, fields, types, constraints and relationships.
CREATE ENTITY Product (...);Express CRUD and API generation intent against named entities.
CREATE API Product;Generate persisted users, JWT sessions, role rules and per-user record ownership.
ADD ROLE ADMIN, USER;Generate Prisma models, PostgreSQL persistence and relation-aware database contracts.
DATABASE POSTGRESQL;Attach tests, build and deployment targets to the specification.
DEPLOY DOCKER;Pin generated dependencies, create reproducible locks and audit release trees.
raiql auditInspect project, language and plugin contracts before upgrading generated systems.
raiql migrateFrozen grammar, IR semantics, plugin API 1 and controlled maintenance releases.
RAIQL 1.0RAIQL syntax favors explicit statements and familiar data-model concepts. The same source can be read during planning, reviewed in pull requests and consumed by the compiler.
CREATE ENTITY Order (
id UUID PRIMARY,
customerId UUID REQUIRED,
total DECIMAL REQUIRED,
status STRING REQUIRED
);
RELATE Order.customerId TO Customer.id;
CREATE API Order;Start with a single Ticket entity and progressively add PostgreSQL, authentication, ownership, tenancy, OpenAPI, jobs, tests, environment contracts and production deployment.
The documentation covers the complete frozen 1.0 surface: syntax, web/API/mobile targets, PostgreSQL persistence, authentication, authorization, tenancy, OpenAPI/SDK generation, events/jobs, testing, observability, extensions/registry, environments/secrets, compatibility/migration, cloud deployment, compiler behavior and CLI workflows.