Kirimase is a command-line tool for building full-stack Next.js apps faster. It supercharges your development workflow, allowing you to quickly integrate essential packages and scaffold resources for your application with best practices in mind.
- Initialization and Configuration: quickly add and set up essential packages to jump-start your Next.js project.
- Code Generation: scaffold models, views, and controllers directly from the CLI.
Install Kirimase CLI globally:
npm install -g kirimase
If you don't already have a Nextjs app, run create-next-app with your preferred package manager.
Run these commands within the directory of your Nextjs app:
Initializes and configures the following packages for your Next.js project, categorized into:
- Based on your chosen database type (PostgreSQL, MySQL, SQLite), Kirimase sets up the required files for Drizzle-ORM, drizzle-zod for validations and and drizzle-kit to manage migrations.
- Scripts are auto-added to
package.json
for immediate use of drizzle-kit.
- Kirimase sets up required files for Prisma with zod-prisma for validations.
- Generates files for Auth.js (Next-Auth), including the latest Drizzle adapter. (For PlanetScale, references are excluded as it doesn't support foreign keys).
- Generates a generic sign-in component for immediate use within your Next.js project.
- Wraps the root layout with the auth provider and generates utilities for auth checks and redirects in your Next.js routes.
- Generates files for Clerk including all necessary config.
- Wraps the root layout with the auth provider and generates utilities for auth checks and redirects in your Next.js routes.
- Generates files for Lucia including all necessary config.
- Generates UI and API routes for sign-in and sign-up
- Generates files to configure tRPC with the app router.
- Provides client-side tRPC and scaffolds server-side configuration using the experimental server-invoker pattern.
- Wraps the root layout in the tRPC provider.
- Initiates the Shadcn-UI CLI designed for Next.js and installs button and toast components.
- Inserts the toast-provider (
<Toaster />
) to the root layout for instant toast notifications in your Next.js app.
- Installs and configures Resend
Kirimase also adds relevant keys to your .env
which you'll need to provide values for.
Akin to rails scaffold
but for Next.js:
Kirimase generates:
- Generates a drizzle schema with column types based on your SQL flavor and database provider.
- Uses drizzle-zod to generate Zod schemas for frontend and backend validation.
- Generates queries and mutations for CRUD operations, fully typed and optimized for consumption via a Next.js front-end.
- Gives you an option to integrate tRPC and/or API routes.
- Uses Zod schemas from models for request validation.
- Includes built-in error handling for API routes and auto-adding of tRPC routes to the root router.
- Scaffolds views using Shadcn-UI to enable immediate CRUD operations (including select fields for adding relations and datepickers for dates).
Keen on enhancing Kirimase? Contributions, bug reports, and feature requests are always welcome. Feel free to open an issue or submit a pull request.