Reference
Use reference pages when you need exact names, subpaths, route keys, action IDs, helper roles, or source anchors.
Core Package
Section titled “Core Package”Package ExportsPublic subpaths and what each import surface is for.
OperationsDescriptor-backed route, Action, and visibility matrix.
TypesBrand constructors, DTO families, API result helpers, and shared type surfaces.
Astro And Clients
Section titled “Astro And Clients”Astro HelpersRequest helpers, money formatting, redirect helpers, and hidden inputs.
Astro ActionsThe `actions.mika.*` tree and form/JSON split.
ClientBrowser-safe catalog and stock reads over the two public plugin JSON routes.
ReactOptional React provider and hooks around the browser-safe Mika client.
Plugin RoutesRoute keys, public plugin reads, and protected/admin route boundaries.
Astro Template FilesCopyable host-owned template file matrix.
Backend And Providers
Section titled “Backend And Providers”Server API`createMikaBackendApi()`, backend factory inputs, repository ports, idempotency, and server clients.
Provider ContractProvider adapter shape, `createMikaProviderRegistry()`, and capability names.
StripeOptional Stripe adapter inputs, capabilities, checkout behavior, and webhooks.
Email NotificationsTemplate IDs, outbox behavior, resend semantics, and notification hooks.
Maintenance`mika_maintenance`, `createMikaMaintenanceRunner()`, cleanup task results, runtime inputs, and host scheduler duties.
AI And Admin
Section titled “AI And Admin”Admin ActionsAction IDs, manifest metadata, runner behavior, and idempotency requirements.
Agent ManifestPublic metadata helpers and protected tool projection boundaries.
ACP`createMikaAcpProductFeed()`, `createMikaAcpCheckoutHandlers()`, `MIKA_ACP_API_VERSION`, auth, idempotency, and webhooks.
Start with Package Exports when choosing an import. Use Operations for route, Action, visibility, and idempotency lookup.
Source Anchors
Section titled “Source Anchors”- ⓟ
../emdash-mika/package.json - ⓟ
../emdash-mika/src/api/operations.ts - ⓟ
../emdash-mika/src/provider.ts - ⓟ
../emdash-mika/src/acp.ts - ⓐ
../emdash-mika/src/templates/astro/README.md