Back to directory

Content & Publishing · Content Management Systems (CMS)

KeystoneJS

A TypeScript and GraphQL CMS for code-defined content models

KeystoneJS is an MIT-licensed, open-source headless CMS and application framework for developers who want code-defined schemas, a generated GraphQL API, and a React administration UI. The core software is free and self-hosted. There is no ordinary hosted subscription product, while Thinkmill offers commercial support and enterprise services.

Key facts

License
MIT
Main language
TypeScript, JavaScript
Maintainer
Thinkmill Labs and the Keystone community
First released
2018
Latest release
@keystone-6/core 8.1.0, August 31, 2026
GitHub stars
9.8k, October 2026
Hosted option
No first-party hosted CMS subscription; deploy your own instance, with commercial Thinkmill support

What KeystoneJS is

KeystoneJS is an open-source headless CMS and application framework maintained by Thinkmill Labs and the Keystone community. The repository identifies 2018 as the first release year for the Keystone 6 line, while the repository itself was established earlier. GitHub lists about 9.8k stars as observed in 2026. The project uses an MIT license, which permits commercial use and modification. Its main audience is developers building custom content systems rather than editorial teams seeking a fully managed product. Thinkmill presents Keystone as part of its commercial services, but the project does not publish a hosted subscription price. The active repository has published package releases through August 31, 2026, including @keystone-6/core 8.1.0.

How it works

A Keystone project starts with a TypeScript configuration that defines lists, fields, relationships, validation, access rules, hooks, and UI behavior. The framework turns that configuration into a database schema, GraphQL API, generated types, and an administration interface. Editors use the React-based Admin UI to create, search, edit, and relate records. Developers can extend the GraphQL schema, add custom field views, configure document blocks, and connect authentication or media storage. Access control works at list, field, operation, and session levels. A typical workflow is to code the schema, install dependencies, run development mode, generate or apply database changes, and deploy the Node application. Content editors then work inside the generated interface while application clients consume GraphQL.

Architecture and recent releases

Keystone is written mainly in TypeScript and JavaScript and runs as a Node application. Its generated data layer uses Prisma, with documented database support for PostgreSQL, MySQL, and SQLite. Deployments can run on managed Node hosting, containers, or infrastructure operated by the team. The 2026 releases introduced Prisma 7, direct Prisma migration commands, Node ESM packages, Next.js 16 support, React 19 support, Apollo Server 5, and more granular query access controls. The August 31, 2026 release included @keystone-6/core 8.1.0 and added a supported way to augment the generated Session type. Keystone also supports integrations such as Cloudinary and OpenTelemetry through its package and configuration model.

License and pricing

The MIT license permits commercial use, modification, private operation, redistribution, and use inside a paid product, provided the license notice remains preserved. Keystone does not impose a SaaS source-sharing condition. The open-source repository contains the core CMS and framework rather than a separately priced proprietary administration tier. Keystone does not publish a standard first-party hosted CMS subscription plan. Teams can deploy the application on their chosen Node infrastructure, and Thinkmill offers commercial support and enterprise services. The project does not publish prices for those services in the referenced product material. Operating costs therefore depend on hosting, database, media storage, monitoring, backups, and the services selected by the deploying organization.

Limitations and how it compares

Keystone requires developers for schema changes, application behavior, deployment, and operational work, which makes it less suitable for teams seeking a no-code editorial system. Strapi offers a more packaged CMS workflow and a plugin-oriented administration experience, while Keystone places more responsibility in TypeScript configuration and generates GraphQL as a central interface. Directus takes a database-first approach and provides a broad administration layer, whereas Keystone starts with application code and its schema. Payload CMS is another code-oriented option with a TypeScript configuration model. Pick Keystone when a development team wants ownership of schema, access rules, GraphQL, and React customization, and accepts self-hosting responsibilities.

Main features

  • Code-defined schemas. In KeystoneJS, developers define lists, fields, relationships, validation, access rules, and hooks through TypeScript configuration, centralizing schema behavior and application logic.
  • GraphQL API. Keystone generates a CRUD GraphQL API with filtering, ordering, pagination, relationships, and custom schema extensions.
  • React Admin UI. The generated management interface lets editors create, review, search, and relate records without a separate dashboard project.
  • Access control. List and field access rules can restrict operations and returned data according to sessions, users, and application logic.
  • Rich documents. The document field stores structured rich text and supports custom components, relationships, formatting, and media references.
  • Database choices. KeystoneJS documentation lists PostgreSQL, MySQL, and SQLite support through its generated Prisma data layer, enabling applications to use these database systems through a consistent interface.

Self-hosting KeystoneJS

Keystone is installed as an npm project, normally through the create-keystone-app CLI, followed by dependency installation and development commands. A production deployment builds and starts the Node application. New projects begin with SQLite, while PostgreSQL and MySQL are documented alternatives. The application generates Prisma Client and GraphQL schema files from the TypeScript configuration. Deployments can run on a managed Node host, a container, or custom infrastructure. The documentation recommends Node maintenance and active LTS versions. Operators should back up the selected database and uploaded media, commit schema and lock files, and test migrations before upgrades. Redis is not a required Keystone service, and the documentation does not specify minimum hardware requirements.

Strengths

  • The MIT license permits commercial use and modification without a hosted-service fee.
  • Schema, API, admin UI, and access rules live in one TypeScript project.
  • PostgreSQL, MySQL, and SQLite cover common deployment sizes.
  • GraphQL and React extension points suit custom application backends.

Drawbacks

  • Editors depend on developers for schema changes and many workflow decisions.
  • Self-hosting leaves database, media, backups, upgrades, and monitoring to the team.
  • Its code-first approach is less suitable for nontechnical teams wanting a fully managed CMS.

What teams replace with it

Teams usually evaluate KeystoneJS when they want to move off Contentful, Sanity, Strapi Cloud.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to KeystoneJS

Frequently asked questions

Is KeystoneJS free?

Yes. The core repository is MIT licensed and can be used without a subscription. You pay your own hosting and operational costs. Thinkmill also markets commercial support and enterprise services, but those services are separate from the open-source framework. There is no standard first-party hosted CMS subscription listed for Keystone.

Can I use KeystoneJS commercially?

Yes. MIT permits commercial use, modification, redistribution, and private operation, subject to preserving the license notice. A company can build a paid product on Keystone or offer a hosted service without the source-sharing requirements associated with copyleft licenses. Hosting, database, media, and support costs remain separate from the license.

What does KeystoneJS require to self-host?

Install Keystone in a Node.js project with the create-keystone-app CLI or an equivalent npm setup. The starter uses SQLite, and the documentation describes PostgreSQL and MySQL configurations. Production requires a Node runtime, a database, persistent media storage when files are used, and a backup and migration process. Minimum hardware is not specified.

How does KeystoneJS compare with Strapi?

Both provide open-source headless CMS features and administration interfaces. Keystone centers schema and application behavior in TypeScript and generates GraphQL through its framework, while Strapi offers a more packaged CMS experience with a broader plugin-oriented workflow. Choose Keystone when code ownership, generated types, and custom application logic lead. Choose Strapi when a more prebuilt CMS workflow is preferable.

Does KeystoneJS host my content?

The open-source project is designed for deployment on infrastructure chosen by its user, including managed Node services or a private environment. The official site points to commercial enterprise support rather than a standard first-party hosted plan. Data location, backups, media storage, monitoring, and access controls therefore remain decisions for the deploying team.

Similar projects to compare

Sources

Last updated 2026-10-22.