Examples¶
Learn Centrali by building real applications. Each example is a complete, working project you can follow step by step.
Choose an Example¶
| Goal | Start here | What it emphasizes |
|---|---|---|
| Learn the basic data + function workflow | Blog Platform | Collections, records, triggers, content flow |
| Build product, inventory, and order workflows | E-commerce API | Search, orders, payments, and operational flows |
| Understand tenant isolation and external auth | SaaS Multi-tenant | Workspaces, BYOT, policies, and multi-tenant modeling |
If you do not need a full example and just need a feature guide, start with Getting Started or Build Overview instead.
-
Blog Platform
Build a complete blog API with posts, comments, and content moderation using Functions.
You'll learn: Collections, records, Functions, Triggers
-
E-commerce API
Create a product catalog and order management system with inventory tracking and payment webhooks.
You'll learn: Records API, webhooks, Automations, search
-
SaaS Multi-tenant
Build a multi-tenant SaaS backend with workspace isolation, external auth, role-based access, and Functions.
You'll learn: Workspaces, external auth (BYOT), policies, Functions
What You'll Need¶
All examples assume you have:
- A Centrali account with a workspace (Account Setup)
- Service account credentials (client ID and secret)
- Node.js 18+ installed
- The Centrali SDK:
npm install @centrali-io/centrali-sdk
Before You Dive In¶
These examples go faster if you already know:
- your workspace slug
- how to get a JWT with a service account
- the difference between collections, records, functions, and triggers
If not, read Account Setup, Workspaces, and Functions first.
Suggest an Example¶
Have an idea for an example? Open an issue on GitHub and let us know what you'd like to see.