# Keystone

Code\-defined content and application framework generating a GraphQL API and administration UI\.

ID: Q1638 · Revision: 1751

Type: software · License: MIT[^keystone-license] · Status: active

Website: https://keystonejs.com/



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\.[^keystone-home][^keystone-config]

## 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\.[^keystone-home][^keystone-config]

## 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\.[^keystone-auth]

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\.[^keystone-auth]

## 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\.[^keystone-migrate]

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\.[^keystone-cli][^keystone-migrate]

## 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\.[^keystone-license][^keystone-config]

Keystone can substitute for a rebuilt [Payload](/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\.[^keystone-home][^keystone-config][^payload-database][^payload-local]

## Capabilities and substitutions

### Database migrations — limited

Production startup does not apply migrations; a separate committed Prisma migration step is required\.[^keystone-migrate][^keystone-cli]

Use case: Deploy schema changes · Platforms: Web · Region: Deployment depends on runtime, database, hosting and application configuration

### Custom account model — supported

Authentication can use a developer\-defined list; list/field permissions remain explicit application design\.[^keystone-auth]

Use case: Custom editorial access · Platforms: Web · Region: Deployment depends on runtime, database, hosting and application configuration

### [Substitute for Payload](/payload) — limited

Can replace rebuilt schemas and editorial interfaces where GraphQL/database support fits; configuration and authorization require adaptation\.[^keystone-home][^payload-database][^payload-local][^source-9]

Use case: Code\-defined content backends · Platforms: Web · Region: Deployment depends on runtime, database, hosting and application configuration

## References

[^keystone-license]: [Keystone license](<https://github.com/keystonejs/keystone/blob/main/LICENSE>) — MIT (vendor; retrieved 2026-10-07T00:09:52Z)

[^keystone-home]: [Keystone content management](<https://keystonejs.com/for-content-management>) — Code\-defined fields GraphQL AdminUI (vendor; retrieved 2026-10-07T00:11:01Z)

[^keystone-config]: [Keystone configuration](<https://keystonejs.com/docs/config/config/>) — Database providers; SQLite limitations: not intended for production systems; server and UI configuration (vendor; retrieved 2026-10-14T09:01:20Z)

[^keystone-auth]: [Keystone auth and access control](<https://keystonejs.com/docs/guides/auth-and-access-control/>) — Admin UI and GraphQL access distinct layers (vendor; retrieved 2026-10-07T00:11:01Z)

[^keystone-migrate]: [Keystone database migration](<https://keystonejs.com/docs/guides/database-migration/>) — Devdbpush drift; committed Prisma migrations production (vendor; retrieved 2026-10-07T00:09:52Z)

[^keystone-cli]: [Keystone CLI](<https://keystonejs.com/docs/guides/cli/>) — Production start does not generate/apply migrations (vendor; retrieved 2026-10-07T00:09:52Z)

[^payload-database]: [Payload database adapters](<https://payloadcms.com/docs/database/overview>) — PostgreSQL MongoDB SQLite adapters (vendor; retrieved 2026-10-07T00:09:52Z)

[^payload-local]: [Payload Local API](<https://payloadcms.com/docs/local-api/overview>) — Server\-side Node operations equivalent RESTGraphQL (vendor; retrieved 2026-10-07T00:11:01Z)

[^source-9]: [https://keystonejs\.com/docs/config/config/](<https://keystonejs.com/docs/config/config/>) — PostgreSQL MySQL SQLite; inspectlistsGraphQLstorage (vendor; retrieved 2026-10-07T00:09:52Z)

Source revision: https://substitutefor.net/entities/Q1638?revision=1751
