all repos — kirimase.git @ main

3a8632b7
batman
Brijesh brijesh@wawdhane.com
Mon, 29 Apr 2024 04:17:41 +0530

Logo for Kirimase

Kirimase

npm_version

Kirimase is a command-line tool for building full-stack Next.js apps faster. It supercharges your development workflow, allowing you to quickly integrate packages and scaffold resources for your application with best practices in mind.


Kirimase Demo

Watch the most recent demo here

Check out the official tutorial here

Features

  1. Initialization and Configuration: quickly add and set up essential packages to jump-start your Next.js project.
  2. Code Generation: scaffold models, views, and controllers directly from the CLI.


Quick Start

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.

Then run the following command within the directory of your project:

kirimase init

Note: Kirimase is not compatible with the the pages directory.

Commands

Run these commands within the directory of your Nextjs app:

1. kirimase add

Initializes and configures the following packages for your Next.js project, categorized into:

ORM

Drizzle-ORM

Prisma


Authentication

Auth.js

Clerk

Lucia

Kinde


Other

tRPC

Shadcn-UI

Stripe

Resend

Kirimase also adds relevant keys to your .env which you’ll need to provide values for.


2. kirimase generate

Akin to rails scaffold but for Next.js:

Kirimase generates:

a) Model:

b) Controller:

c) Views:

Run in non-interactive mode

As of v0.0.23, you can run kirimase init and kirimase add entirely via the command line as follows:

kirimase init -sf yes -pm bun --orm prisma -db pg -a next-auth -ap github discord -mp trpc stripe resend -cl shadcn-ui -ie yes
Command Short Flag Long Option Description Argument
init - - initialise and configure kirimase -
- -sf –src-folder use a src folder yes or no
- -pm –package-manager package manager <pm>
- -cl –component-lib component library <component-lib>
- -o –orm orm <orm>
- -db –db database (“pg”, “mysql”, “sqlite”) <db>
- -dbp –db-provider database provider - important if using drizzle <dbp>
- -a –auth auth <auth>
- -ap –auth-providers auth providers (if using next-auth) <providers>
- -mp –misc-packages packages (“trpc”, “shadcn-ui”, “resend”) <packages>
- -ie –include-example include example yes or no

Contributing

Keen on enhancing Kirimase? Contributions, bug reports, and feature requests are always welcome. Feel free to open an issue or submit a pull request.

To run locally:

pnpm i
pnpm run dev

npm install -g . (in a second terminal - this will then make kirimase available across your machine using "kirimase *command*")

License

MIT

clone
git clone https://brijesh.dev/kirimase.git