Concepts

What's the Idea Behind BlazeKit?

BlazeKit was made to take the boring, repetitive work out of setting up your database types, controllers, and API routes — especially in Next.js projects.

Instead of manually writing everything, you just define your models once in a simple schema file, and BlazeKit automatically generates the TypeScript types, controller logic, and even Next.js API routes for you.

Schema First Approach

You define your data structure using the BlazeKit schema format, which is easy and minimal. No bloated syntax — just clean model definitions.

For example:

schema.blaze

model User {
  name: string
  email: string
  age: number
}

Configuration Driven

BlazeKit is controlled by a simple JSON config file that lets you decide where to generate types, controllers, and API routes. It assumes a src directory structure (like most Next.js projects), but you can customize everything easily.

Opinionated but Flexible

BlazeKit follows some strong defaults (like TypeScript, Next.js API route structure), but you’re always free to tweak the config to fit your own project layout and needs.