xano/index.ts registers nothing yet. This page adds a notes table, an
endpoint that creates a note and one that lists them, then deploys the result to the Xano Engine
on your machine.
1
Define the table and endpoints
Replace Keep the name your scaffold passed to
xano/index.ts with:workspace() if it differs from my-app.A pinned
canonical is the public slug, and it is unique across your Xano instance, not
only your workspace. On the Engine nothing else holds it. When you later promote to a shared
instance where another workspace already uses notes, the promote refuses with
SDK_IDENTITY_CONFLICT, so pick a slug specific to your project (for example
canonical: "my-app-notes") before you ship.2
Deploy to the Xano Engine
On Windows on Arm? There is no Xano Engine build for your machine yet. Wherever this page
says
npm run xano:deploy, run npm run xano:deploy:ephemeral instead: it deploys the same code
to an ephemeral in Xano’s cloud. That needs a Xano account, so sign in first
(Connect to Xano). See
supported platforms.xano/routes.gen.ts, type-checks xano/, and deploys to the Xano
Engine with --keep-data, so rows you create survive the next redeploy. It prints the
Engine’s URL:xano/xano.lock. Commit it: it pins each object’s identity, so a
later rename renames the object instead of deleting and recreating it.3
Call it
Use the URL the deploy printed:
The loop from here
Change a def object, runnpm run xano:deploy again, and call the endpoint. A type error stops
the script before anything is deployed. npm run xano:deploy -- --reset starts the Engine’s data
over from your seed rows.
As the backend grows, split it into files the way the scaffold’s xano/EXAMPLE.md suggests:
xano/tables/<name>.ts, xano/api/<group>.ts, and one file per endpoint, all registered in
xano/index.ts.
Next
- Add columns, relations and seed rows: Data and tables.
- Add path params, auth and middleware: APIs, functions and middleware.
- Assert the endpoint works: Tests.