Examples
Examples Use these examples when you want short copy-ready snippets, common app recipes, or complete feature walkthroughs. Start with the small examples when you need syntax quickly. Use category recipes when you are building a normal product feature. Use walkthroughs when you wa
Examples
Use these examples when you want short copy-ready snippets, common app recipes, or complete feature walkthroughs.
Start with the small examples when you need syntax quickly. Use category recipes when you are building a normal product feature. Use walkthroughs when you want to see a full feature assembled from tables, routes, hooks, handlers, permissions, integrations, and app UI pieces.
For framework setup, read Integrations first.
Recipe Categories
These folders group common product patterns so the docs navigation can show each use case clearly.
- CRUD Apps - Todo lists, blogs with comments, catalogs, orders, and optional GraphQL reads.
- Auth & Permissions - Profiles, owner-scoped data, team workspaces, and public intake forms.
- Files & Realtime - Attachments, avatar uploads, user notifications, and realtime activity feeds.
- Automation & Integrations - Webhooks, scheduled cleanup, rate-limited public APIs, and outbound sync.
- Admin Operations - Back-office moderation, operator queues, and dynamic admin console pages.
Small Examples
These pages are organized by category and contain many small examples.
- API Examples - Login, CRUD, filters, fields, counts, relations, deep queries, and aggregate sorts.
- Script Examples - Repository reads/writes, errors, hooks, flows, websocket scripts, and cache.
- App Examples - Extension data loading, page shell APIs, permissions, forms, SSR auth, and realtime.
Feature Walkthroughs
These examples are longer and show how several Enfyra pieces fit together.
- User Registration Example - Create a custom registration endpoint with validation, password hashing, duplicate checks, and response handling.
- Row-Level Security Example - Build a multi-tenant application where teams share tables but only see their own data.
- Third-Party Chat App Example - Build an SSR chat app using Enfyra auth, REST, and Socket.IO through a same-origin proxy.
How To Use Examples
- Pick the smallest example that matches what you need.
- Copy the snippet.
- Replace table names, field names, route paths, and ids with your own metadata.
- Test the API, script, extension, or app flow.
- Move to a walkthrough only when the feature needs multiple Enfyra parts.