Logotipo Hedhog
Open-core · NestJS + Next.js

Your SaaS, ready on day one.

Auth, RBAC, an admin dashboard, and AI chat — built in. An open-core NestJS + Next.js framework on PostgreSQL/Prisma, so you ship features instead of rebuilding boilerplate.

Get framework updates in your inbox

New releases, fresh recipes, and breaking changes — no spam.

0

Modules Available

0

OAuth Providers

0

MFA Methods

0.0%

TypeScript

Built on a modern, fully typed stack — NestJS and Prisma on the backend, Next.js on the frontend, orchestrated as a pnpm + Turborepo monorepo.

NestJS
Next.js
React
TypeScript
Prisma
PostgreSQL
pnpm
Turborepo
Features

Everything your SaaS needs, built in

Auth, RBAC, dashboards, and AI already wired into the open-core module, plus a library-first NestJS + Next.js monorepo to build the rest.

Complete Authentication

Login, signup, MFA (TOTP, email, recovery codes), WebAuthn, and multi-provider OAuth (Google, GitHub, Microsoft, Apple, LinkedIn) with a multi-app callback hub.

RBAC & Route Permissions

Roles and routes control access to every endpoint and admin screen, with fine-grained permission checks built in.

AI Chat & Agents

Chat and configurable AI agents backed by OpenAI or Gemini, ready to use from the core module.

HedHog CLI

Bootstrap new libraries, sync admin assets, and scaffold NestJS modules that follow the framework's conventions.

Configurable Dashboards

Per-user dashboards with draggable widget layouts, saved positions, and role-based sharing.

Library-First Architecture

Business logic lives in independent libraries under libraries/*, installed only when you need them.

Migration-First with Prisma

Every schema change ships as a versioned SQL migration, keeping production databases safe and reproducible.

pnpm + Turborepo Monorepo

A single repo for the NestJS API and Next.js admin, with cached, parallelized builds across every app and package.

Open Core

Open core: the Core module is free, forever

HedHog follows an open-core model. The Core module is Open Source (MIT) and free to use forever. Every other module is part of the Enterprise offering and requires an active commercial license.

Core

Open Source · MIT

The foundation of every HedHog project — free to use forever, no license required.

  • Authentication
  • Authorization & RBAC
  • User management
  • File handling
  • Mail
  • AI
  • Dashboards
  • Settings
  • Webhooks
  • MCP integration

Enterprise modules

Commercial license

Licensed per module — you pay only for what you use, scoped to your organization.

  • Campaign
  • CMS
  • LMS
  • CRM
  • Inbox
  • Agent
  • Address
  • Category
  • Commerce
  • Finance
  • Operations
  • Queue
  • Tag
Quick Start

Get started in 4 simple steps

Install the HedHog CLI and scaffold a NestJS API with a Next.js admin, ready to run with a single pnpm command.

1

Install the CLI

Install @hed-hog/cli globally with npm.

2

Scaffold

Run hedhog new to generate the NestJS API and Next.js admin.

3

Run

Install dependencies and start everything with pnpm dev.

4

Extend

Add feature libraries with the CLI as your project grows.

CLI
# Install the HedHog CLI
npm i -g @hed-hog/cli
 
# Scaffold a new project (NestJS API + Next.js admin)
hedhog new my-project
cd my-project
 
# Install dependencies and start the dev environment
pnpm install
pnpm dev
Build Modules

Build your own modules

Define a table in YAML and HedHog generates the migration, a typed CRUD API, and admin-ready route permissions — no boilerplate.

hedhog/table/product.yaml
# hedhog/table/product.yaml
columns:
- type: pk
- name: name
- name: price
type: decimal
precision: 12
scale: 2
- type: created_at
- type: updated_at
generates

Database table

A product table plus a PostgreSQL migration, ready to deploy.

CRUD API

REST endpoints out of the box: list, get, create, update, delete.

Route permissions

route.yaml and role.yaml synced to admin and library admin-* roles.

Documentation

Documentation that developers love

Comprehensive guides, API references, and examples to help you build faster. Search, explore, and learn at your own pace.

hedhog.com/docs/get-started
DocsGetting Started

Getting Started with Hedhog

Welcome to Hedhog! This guide will help you install the CLI and scaffold your first NestJS + Next.js project.

Prerequisites

  • Node.js 18+ and npm 9+
  • pnpm and Git
  • Docker and Docker Compose (for the default database flow)
Terminal
$ npm i -g @hed-hog/cli
$ hedhog new my-project