external template, the default) or on Tassyir Hosting (hosted: Tassyir
runs it, no server). Either project uses the app contract end to end: the
manifest, an embedded page in the dashboard, the Admin API and webhooks. It
is ready for AI coding agents: an AGENTS.md, a CLAUDE.md and a Claude
Code skill (tassyir-app) that explains the contract, both hosting modes.
Use
Node 22.18 or later:my-app/ and prints the next steps. The project’s README walks
the rest: for external, create the app in the developer console, upload the
manifest, create a dev store, run behind an https tunnel, and install; for
hosted, tassyir app create, npm run deploy, tassyir store create, and
install.
--, which npm needs to pass them on):
The handle, name and URL are checked with the manifest’s own rules
(
@tassyir/app-manifest, the Tassyir API’s validator) before anything is
written, and nothing is ever written into a folder that is not empty.
The projects
external, your own server:
Request and Response, like
@tassyir/app (fetch and WebCrypto only), so the same routes run on Node
today and on Cloudflare Workers, which Tassyir Hosting is built on. Node runs
the TypeScript as it is (type stripping, Node 22.18 and later), so the
server has no build step; esbuild bundles the page.
hosted, on Tassyir Hosting (a Cloudflare Worker that Tassyir runs for every
installation):
.env: a hosted app reads its installation, who
is looking, its storage and the Admin API from ctx.props, per request.
npm run check validates, typechecks, runs the specs and deploy:check
(tassyir deploy --dry-run: the bundle built and checked, nothing uploaded);
npm run deploy is tassyir deploy.
The generated package.json names the versions of this repo’s packages
released with this version of create-tassyir-app (@tassyir/*, and
tassyir for hosted), and pins every other dependency to an exact
version.
Errors
A refusal has a stablecode, the input at fault (path: --handle,
--url, directory, …), a message and a one-sentence fix; problems
lists every problem found, this one first. With --json
(npm create tassyir-app@latest my-app -- --handle tassyir --json):
TEMPLATE_UNKNOWN, TEMPLATE_NOT_AVAILABLE,
OPTION_NOT_FOR_TEMPLATE (--url with hosted), TARGET_NOT_EMPTY,
TARGET_NOT_A_DIRECTORY, INVALID_ARGUMENT, NODE_VERSION_UNSUPPORTED,
WRITE_FAILED, INSTALL_FAILED, and the manifest’s own codes for the
handle, name and URL (MANIFEST_HANDLE_INVALID, MANIFEST_URL_INVALID, …).
From code
Contributing
In a clone of tassyir/apps-sdk, CI generates a project of each template with the packed CLI and checks it whole (npm run check:template). The pages are also checked in a real browser,
locally:
hosted, the Worker’s routes run by Node with stand-in ctx.props),
frames the page in a fake dashboard at https://app.tassyir.io that answers
App Bridge, answers the page’s /api calls with sample orders, and drives a
headless Chrome over the DevTools protocol. It checks the page in Arabic and
English, light and dark, at 390 and 1440 px (lang, dir and theme, the
frame’s width, no error and no CSP violation, the title bar), then the save
bar, a field error, a save (with a fresh ID token; the hosted page sends
none), Open, a live change of
language and theme, and the empty state, with a screenshot of each in
--out. It needs openssl; CHROME_PATH names a Chrome other than macOS
Google Chrome.