Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Opinionated front-end boilerplate with Next.js, testing, CI/CD, and database tooling preconfigured.
Kirby Boilerplate is an opinionated Next.js starter that preconfigures testing, CI/CD, linting, database access, and a design system so you can focus on building React components.
Kirby Boilerplate is an open-source front-end boilerplate created by Fabien Greard and hosted on GitHub. It provides a Next.js application with TypeScript and Tailwind CSS, along with a full toolchain: Jest and Testing Library for unit tests, Cypress for end-to-end tests, Storybook for component review, Prisma for database migrations, and Apollo Client for GraphQL. The project explicitly states it has no connection to Kirby CMS, despite the similar name.
yarn test and yarn e2e.yarn codegen generates TypeScript types from your GraphQL schema using Apollo tooling.yarn storybook on port 6006 for design-system development.yarn bootstrap to install dependencies, copy environment defaults, and prepare the Prisma client automatically.yarn bootstrap, and then run yarn dev to start at http://localhost:3000.yarn test runs Jest silently, yarn coverage generates code coverage, and yarn e2e runs Cypress headlessly.yarn codegen once your endpoint is reachable.prisma:migrate, prisma:seed, and prisma:generate scripts.After cloning, you copy .env.example to .env, then run yarn bootstrap to install dependencies and set up the project. The environment variables NEXT_PUBLIC_GRAPHQL_ENDPOINT and DATABASE_URL connect the app to your backend services. You can then use the provided scripts for development, testing, and deployment preparation.
The boilerplate is open source and distributed under the MIT license, so it is free to use and modify.
No, the README explicitly states that this project has nothing to do with Kirby CMS. It is a standalone front-end boilerplate built on Next.js.
Edit the datasource block in prisma/schema.prisma to use a different provider, update the connection URL in your environment, and run yarn prisma:migrate to initialise your schema.
You need to set NEXT_PUBLIC_GRAPHQL_ENDPOINT and DATABASE_URL. The .env.example file provides default values if you copy it to .env.
Jest with Testing Library (react, jest-dom, react-hooks) for unit tests, and Cypress with the Testing Library integration for end-to-end tests.
