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:

ImportPurpose
@artifactkitdev/coreApplication use cases and core types
@artifactkitdev/core/portsInfrastructure contracts
@artifactkitdev/core/adapters/memoryLocal demos and tests
@artifactkitdev/core/adapters/fsSingle-process persistent hosting
@artifactkitdev/core/adapters/postgresConcurrent writers and durable data
@artifactkitdev/core/adapters/supabaseSupabase storage adapter
@artifactkitdev/core/http/appFetch-compatible application handler
@artifactkitdev/core/mcpTools 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.