Skip to content

Package Overview

Trokky is built as a collection of focused packages that can be combined based on your needs. This page provides an overview of all available packages.

Your Application
┌──────────────────┼──────────────────┐
│ │ │
@trokky/client @trokky/studio Your Frontend
│ │
└────────┬─────────┘
┌─────────────┼─────────────┐
│ │ │
@trokky/express @trokky/nextjs @trokky/cloudflare
│ │ │
└─────────────┼─────────────┘
@trokky/routes
@trokky/core
┌─────────────┼─────────────┐
│ │ │
adapter-filesystem adapter-s3 adapter-cloudflare

These packages form the foundation of Trokky:

PackageDescriptionRequired
@trokky/coreCMS engine with schemas, validation, storage coordinationYes
@trokky/routesFramework-agnostic HTTP handlersYes*

*Required for API functionality

Connect Trokky to your web framework:

PackageFrameworkDescription
@trokky/expressExpress.jsFull-featured Express integration
@trokky/nextjsNext.jsApp Router API routes
@trokky/cloudflareCloudflare WorkersEdge runtime deployment
@trokky/honoHonoLightweight edge framework

Choose where your content is stored:

PackageStorageBest For
@trokky/adapter-filesystemLocal filesDevelopment, Git workflows
@trokky/adapter-s3AWS S3 + DynamoDBAWS deployments
@trokky/adapter-cloudflareCloudflare D1 + R2Edge deployments

Build your frontend with Trokky:

PackageDescription
@trokky/clientFrontend SDK with type generation
@trokky/studioReact-based admin interface
Terminal window
npm install @trokky/core @trokky/routes @trokky/adapter-filesystem

Use this when you want to build a custom API layer.

Terminal window
npm install @trokky/core @trokky/express @trokky/adapter-filesystem @trokky/studio

The most common setup for Node.js applications.

Terminal window
npm install @trokky/core @trokky/nextjs @trokky/adapter-filesystem

For Next.js App Router projects.

Terminal window
npm install @trokky/core @trokky/cloudflare @trokky/adapter-cloudflare

For Cloudflare Workers deployments.

Terminal window
npm install @trokky/core @trokky/express @trokky/adapter-filesystem @trokky/studio @trokky/client

Complete setup with admin interface and frontend SDK.

All Trokky packages are versioned together. Always use matching versions:

{
"dependencies": {
"@trokky/core": "^0.1.0",
"@trokky/express": "^0.1.0",
"@trokky/adapter-filesystem": "^0.1.0"
}
}

Understanding internal dependencies:

@trokky/express
└── @trokky/routes
└── @trokky/core
@trokky/studio
└── @trokky/fields (internal)
@trokky/client
└── (standalone, no Trokky dependencies)
@trokky/adapter-filesystem
└── @trokky/core (interfaces only)

All packages include TypeScript definitions:

  • Full type inference from schemas
  • Typed API responses
  • Auto-completion in editors
  • No @types/* packages needed

Explore individual package documentation: