Commercio Docs
Enterprise-ready ERP System

Build powerful commerce systems with ease

A modular ERP system for Node.js with PostgreSQL and Drizzle ORM. TypeScript-first, production-ready, and fully featured.

Everything you need

Complete ERP functionality out of the box

Get started in minutes

Simple API, powerful features

Quick Example

Create categories and products in just a few lines of code

import { initDatabase, createServices } from "commercio";

// Initialize database
initDatabase({
  connectionString: process.env.DATABASE_URL,
  runMigrations: true,
});

// Create all services at once
const { categoryService, productService } = createServices();

// Create a category
const category = await categoryService.createCategory(
  "Electronics",
  "Electronic devices and accessories"
);

// Create a product
const product = await productService.createProduct(
  "Laptop Dell XPS 15",
  "SKU-LAPTOP-001",
  category.id
);

Why Commercio?

Built for modern development workflows

Built with modern tools

TypeScript-first with full type safety

TypeScript

Full type safety with TypeScript 5+

PostgreSQL

Robust database with Drizzle ORM

Pino Logging

Structured logging for production

Ready to get started?

Start building your commerce system today