From shopware-apps
Exhaustive reference for `@shopware-ag/app-server-sdk` (TypeScript, runtime-agnostic: Node 20, Bun, Deno, Cloudflare Workers). Use when: implementing the Shopware App registration flow (/authorize + /authorize/callback), verifying HMAC signatures via WebCrypto, implementing ShopRepositoryInterface (InMemory, DynamoDB, KV, SQLite), resolving Context from API or browser requests, handling lifecycle hooks (install/activate/deactivate/update/delete), building Admin API queries with Criteria, using response helpers (createNotificationResponse etc.), configuring Hono middleware, or understanding the full exported TypeScript API surface.
How this skill is triggered — by the user, by Claude, or both
Slash command
/shopware-apps:sw-app-sdk-jsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- Setting up an app server in TypeScript (Node/Bun/Deno/Cloudflare Workers)
references/deep/01-overview.mdreferences/deep/02-registration.mdreferences/deep/03-shop-repository.mdreferences/deep/04-authentication.mdreferences/deep/05-context-resolver.mdreferences/deep/06-http-client.mdreferences/deep/07-hooks.mdreferences/deep/08-helpers.mdreferences/deep/09-integrations.mdreferences/deep/10-types.md/app/register + /app/register/confirm endpointsshopware-shop-signature HMAC with WebCryptoContext (shop + payload + HttpClient) from POST/GET requestsHttpClient to query the Shopware Admin API with OAuth2 auto-refreshCriteria for Admin API searchescreateNotificationResponse, createNewTabResponse, createModalResponseconfigureAppServer| File | Content |
|---|---|
references/deep/01-overview.md | Package metadata, runtime support, export map, bootstrap pattern |
references/deep/02-registration.md | AppServer, Configuration, Registration class, full handshake flow |
references/deep/03-shop-repository.md | ShopInterface, ShopRepositoryInterface, all storage adapters |
references/deep/04-authentication.md | WebCryptoHmacSigner, DualSignatureVerifier, signature mechanics |
references/deep/05-context-resolver.md | ContextResolver.fromAPI / fromBrowser, Context class |
references/deep/06-http-client.md | HttpClient, token cache, error classes |
references/deep/07-hooks.md | Hooks class, all event classes, lifecycle flow |
references/deep/08-helpers.md | Criteria, admin-api helpers, app-actions, media, notification |
references/deep/09-integrations.md | Hono configureAppServer, all storage integrations |
references/deep/10-types.md | All exported types (BrowserAppModuleRequest, ActionButtonRequest …) |
import { AppServer, InMemoryShopRepository } from "@shopware-ag/app-server-sdk";
import { configureAppServer } from "@shopware-ag/app-server-sdk/integration/hono";
import { Hono } from "hono";
const app = new Hono();
configureAppServer(app, {
appName: "MyApp",
appSecret: "my-secret",
shopRepository: new InMemoryShopRepository(),
authorizeCallbackUrl: "https://app.example.com/app/register/confirm",
});
// Custom webhook handler
app.post("/app/webhook/order-placed", async (c) => {
const ctx = c.get("context"); // Context<SimpleShop, { source, data, meta }>
const shop = c.get("shop");
// use ctx.httpClient to call shop API
return c.json({ success: true });
});
export default app;
Provides CDSS development patterns for drug interaction checking, dose validation, clinical scoring (NEWS2, qSOFA), and alert classification integrated into EMR workflows.
npx claudepluginhub zone1987/claude-a-dev-team --plugin shopware-apps