Documentation
Build with Apex JS.
Apex is the full-stack, AI-native meta-framework for Alpine.js — file-based routing, server components, islands, and a data layer where every route is also an MCP tool. Start with the essentials, then dive into any topic below.
Get started #
New to Apex? Scaffold an app and learn the mental model in a few minutes.
Getting Started
Create a project, run the dev server, and ship your first route.
CoreRouting
File-based pages and typed API routes, one convention for both.
Core #
The building blocks of every Apex page — from server-rendered markup to interactive islands.
Routing
Pages and API routes from the filesystem.
CoreComponents
Server components that render on the server, hydrate on demand.
CoreIslands
Ship interactivity only where you need it, powered by Alpine.
Backend & data #
One table becomes REST and a live MCP CRUD surface — governed by a single auth policy.
Data
defineResource turns a table into REST + MCP CRUD.
BackendAI-Native APIs
Every typed route is also an MCP tool, for free.
BackendAuth
One fail-closed policy across pages, REST, and MCP.
Test & ship #
Prove it works, then get it into production.