Embed artifactkit in your app
@artifactkitdev/core is the TypeScript implementation you run on your server. It is not a browser SDK for Artifactkit Cloud.
The package is structured around a pure domain, application use cases, infrastructure ports and adapters. It has no runtime dependencies on Left Hook or Frigg.
Package installation
After the first public release, the package will be installed with:
npm install @artifactkitdev/core
Until then, follow the source quickstart and use the repository examples as your integration starting point.
Build around the existing adapters
The package’s subpath exports let you import the parts your host uses:
| Import | Purpose |
|---|---|
@artifactkitdev/core | Application use cases and core types |
@artifactkitdev/core/ports | Infrastructure contracts |
@artifactkitdev/core/adapters/memory | Local demos and tests |
@artifactkitdev/core/adapters/fs | Single-process persistent hosting |
@artifactkitdev/core/adapters/postgres | Concurrent writers and durable data |
@artifactkitdev/core/adapters/supabase | Supabase storage adapter |
@artifactkitdev/core/http/app | Fetch-compatible application handler |
@artifactkitdev/core/mcp | Tools to mount in an existing MCP server |
See examples/memory-server.ts for complete wiring, including the runtime, stores, authentication and HTTP handler. Use examples/worker.ts for Cloudflare.
Keep service credentials and publishing tokens on your server. Your web app should call authenticated HTTP endpoints rather than bundling server adapters into browser code.
Extend an adapter before adding a package
Implement the ports you need, declare store capabilities truthfully, and run the conformance suite. Architecture and extension ports explains the dependency boundaries.
Guides for running artifactkit and the planned hosted service.