Skip to content

SwallowKitType-Safe Azure Dev Toolkit

Schema-driven full-stack development for Next.js on Azure. End-to-end type safety with shared Zod schemas.

SwallowKit

Quick Start

bash
npx swallowkit init my-app
cd my-app

Create your first model

bash
npx swallowkit create-model todo
typescript
// shared/models/todo.ts
import { z } from 'zod';

export const todo = z.object({
  id: z.string(),
  text: z.string().min(1).max(200),
  completed: z.boolean().default(false),
  createdAt: z.string().optional(),
  updatedAt: z.string().optional(),
});

export type Todo = z.infer<typeof todo>;

Generate full CRUD

bash
npx swallowkit scaffold shared/models/todo.ts

This generates Azure Functions, BFF API routes, and React components — all fully typed.

Start the dev server

bash
npx swallowkit dev
# Next.js → http://localhost:3000
# Azure Functions → http://localhost:7071

Released under the MIT License.