Keystone Code-defined content and application framework generating a GraphQL API and administration UI.
Overview Keystone is a code-defined framework for content and data applications, generating an administration interface and GraphQL API from configured lists and fields. It supports PostgreSQL, MySQL and SQLite through its database configuration, though the documentation says its SQLite provider is not intended for production systems. The framework supplies application building blocks while leaving schema design, access rules and production operations to the development team.[2] [3]
Contents Content and application design Developers define fields and relationships in code, and Keystone uses those definitions to expose an editing interface and API. That arrangement can suit a custom content application whose developers want the editor to follow a versioned schema. It is not a hosted editorial service that removes the need to build and deploy the backend.[2] [3]
Authentication and authorization Keystone does not impose a fixed built-in User model. The authentication package uses a list selected by the developer, with identity and secret fields. Additional roles and relationships can be modeled on that list. This flexibility makes the application's account design part of the implementation rather than a ready-made organizational permission scheme.[4]
Session data identifies the caller, while list and field access rules determine allowed operations and records. Admin-interface visibility is another layer. The authorization guide therefore treats authentication, data access and editing controls as related but distinct concerns; a login screen alone does not establish suitable access to every GraphQL operation.[4]
Database evolution For rapid local development, Keystone uses Prisma's database-push workflow to align a database with its generated schema. That can cause drift from a migration history. Production and collaborative development instead require reviewed migration files maintained through the Prisma CLI.[5]
Keystone's production start command does not generate or apply migrations. The documented workflow applies committed migrations as a separate release step before starting new application instances. A deployment that updates code without its database changes can consequently fail when the application expects missing tables or columns.[5] [6]
License and substitution The MIT license permits operating and adapting the framework under its notice conditions. Hosting, database operation and recovery remain the developer's responsibility. The permissive license concerns the software, not a bundled managed-service agreement or a guarantee that every application design is secure.[1] [3]
Keystone can substitute for a rebuilt Payload content backend when code-defined schemas, GraphQL and its supported databases fit. Both are developer-oriented options, but their configuration, hooks, authorization and migration mechanisms differ. A shared database vendor does not establish direct project interchange or identical editor behavior.[2] [3] [7] [8]
Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.