npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

swallowkit

v1.0.0-beta.43

Published

Type-safe schema-driven development toolkit for Next.js applications on Azure

Readme

SwallowKit

npm version npm downloads VS Code Marketplace license

English | 日本語

Schema-driven application scaffolding for Next.js and Azure.

SwallowKit helps you build maintainable full-stack applications on Azure by using shared Zod schemas as the source of truth. From one schema definition, it can generate frontend forms, BFF routes, Azure Functions backends, OpenAPI contracts, infrastructure templates, and AI-agent-friendly project metadata.

It is designed for developers who want to build Next.js applications on Azure without letting the frontend, backend, database model, validation rules, and deployment configuration drift apart.

🎯 Why SwallowKit?

AI can generate application code quickly. Frameworks can hide complexity nicely. But production applications still need explicit architecture.

In a typical full-stack application, the same domain model is repeated across many places:

  • frontend form types
  • client-side validation
  • BFF request and response models
  • backend DTOs
  • API contracts
  • database entities
  • seed data
  • infrastructure and deployment configuration

As the application grows, these layers often drift apart. SwallowKit reduces that drift by making the schema explicit and using it to generate the surrounding application structure.

SwallowKit is not a full-stack framework that hides everything behind magic. It is a scaffolding toolkit that generates readable, editable, and replaceable code.

✨ What it gives you

  • Shared Zod schemas as the source of truth
  • CRUD scaffolding for Next.js, BFF routes, Azure Functions, and UI components
  • Azure-ready infrastructure using Bicep
  • Multi-language Azure Functions backends (TypeScript, C#, Python)
  • Local development helpers and seed data
  • AI/MCP-friendly project metadata and commands
  • VS Code extension support

🏗️ Typical architecture

SwallowKit is optimized for applications built with:

  • Next.js
  • Azure Static Web Apps
  • Azure Functions
  • Azure Cosmos DB
  • Azure Bicep
  • GitHub Actions or Azure Pipelines

The default architecture follows a BFF pattern:

Browser
  |
Next.js frontend
  |
Next.js BFF routes
  |
Azure Functions API
  |
Azure Cosmos DB

The BFF layer keeps frontend code simple while allowing backend services, authentication, authorization, and cloud resources to evolve independently.

Note: This project is in active development. APIs may change in future versions.

📚 Documentation

Visit the SwallowKit Documentation for the full docs (also available in 日本語).

🚀 Quick start

Create a new project:

npx swallowkit init my-app
cd my-app

Create a model and customize the schema:

npx swallowkit create-model todo
// 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 CRUD code and start the dev server:

npx swallowkit scaffold todo
npx swallowkit dev

This generates Azure Functions, Next.js BFF routes, and React UI components — all typed from the shared schema.

🤖 AI-agent-friendly development

SwallowKit provides machine-readable project metadata and command interfaces so coding agents can inspect the project structure, generate code through official commands, and validate changes without directly rewriting unrelated files.

The goal is to make AI-assisted development safer by giving agents explicit architectural boundaries.

📦 Generated project structure

.
├── app/                  # Next.js pages and BFF API routes
├── shared/
│   └── models/           # Shared Zod schemas (source of truth)
├── functions/            # Azure Functions backend
├── infra/                # Bicep templates
├── lib/                  # BFF helpers and scaffold config
└── .swallowkit/          # SwallowKit project metadata

🔗 Status

SwallowKit is under active development. The API, project structure, and generated output may change.

Feedback, issues, and small example use cases are welcome.

📄 License

MIT