Open Source

Commercio

ERP module for Node.js. Categories, products, variants, warehouses, inventory, customers, orders — all through a TypeScript API with PostgreSQL and Drizzle ORM.

Installation

npm install commercio

Example

import { initDatabase, createServices } from "commercio";

await initDatabase({
  dialect: "postgresql", // or "mysql", "sqlite"
  connectionString: process.env.DATABASE_URL,
  runMigrations: true,
});

const { categoryService, productService, orderService } = createServices();

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

Documentation

Business Workflows

End-to-end examples showing how multiple services work together for real business processes.

TypeScript · PostgreSQL · Drizzle ORM · Pino Logging

Node.js 18+ · MIT License