Add and Configure Packages with `kirimase add`
masterThe kirimase add command initializes and configures essential packages for your Next.js project. Supported categories include:
ORM
- Drizzle-ORM: Sets up Drizzle-ORM,
drizzle-zodfor validation, anddrizzle-kitfor migrations based on your database (PostgreSQL, MySQL, or SQLite). Adds migration scripts topackage.json. - Prisma: Sets up Prisma with
zod-prismafor validations.
Authentication
- Auth.js (Next-Auth): Generates files including the Drizzle adapter, a generic sign-in component, root layout auth provider, and auth check/redirect utilities.
- Clerk: Generates all necessary configuration, wraps the root layout with the auth provider, and generates auth utilities.
- Lucia: Generates configuration, UI, and API routes for sign-in and sign-up.
- Kinde: Generates configuration, a sign-in component, and a route handler.
Other
- tRPC: Configures tRPC with the App Router, provides client-side tRPC, scaffolds server-side configuration using the experimental server-invoker pattern, and wraps the root layout in a provider.
- Shadcn-UI: Installs and configures Shadcn-UI (including button and toast components) and inserts the
<Toaster />into the root layout. - Stripe: Installs and configures Stripe for subscription payments.
- Resend: Installs and configures Resend for email.
Kirimase also automatically adds relevant keys to your .env file.