npm.io
0.0.42 • Published 15h ago

@86d-app/orders

Licence
MIT
Version
0.0.42
Deps
1
Size
381 kB
Vulns
0
Weekly
0
Stars
5

86d

The Modern Foundation for Commerce

X · LinkedIn


This project is under active development and is not ready for production use. Please proceed with caution. Use at your own risk.

Documentation: 86d.app/docs/introduction

Modular open-source commerce platform. Bun + Turborepo monorepo.

Deploy

Deploy on Railway

Deploy with Vercel

Prerequisites

Quick Start

bun install
bun run 86d init
bun run dev

The store will be available at http://localhost:3000.

Docker Compose

docker compose up

This starts PostgreSQL, a MinIO S3-compatible bucket, and the store app.

In Docker, uploads are stored in MinIO and returned as same-origin /uploads/... URLs, so the browser never needs the raw bucket URL.

Repository Structure

apps/store/          Next.js storefront + admin
modules/             22 business modules (products, cart, orders, etc.)
packages/
  core/              Module system foundation
  runtime/           Store runtime engine
  cli/               CLI tool
templates/
  brisa/             Default store template
internals/           Repo tooling (generators, registry, CI actions)
packages/db/         Drizzle client + demo seed

CLI

bun run 86d dev                    # Start dev server
bun run 86d init                   # Configure local store
bun run 86d module create <name>   # Scaffold a new module
bun run 86d module list            # List all modules
bun run 86d template create <name> # Create a new template from brisa
bun run 86d template list          # List all templates
bun run 86d generate               # Run code generation

Scripts

bun run dev              # Dev server for the store
bun run build            # Build everything
bun run typecheck        # TypeScript check
bun run check            # Biome lint/format
bun run test             # Unit tests
bun run test:e2e         # Playwright E2E tests

Environment Variables

See .env.example for the full list.

Variable Description
DATABASE_URL PostgreSQL connection string
DATABASE_URL_UNPOOLED Same (used for migrations)
BETTER_AUTH_SECRET Auth signing key (random string)
STORE_ID Store identifier
STORAGE_PUBLIC_URL_MODE Upload URL mode: direct or proxy

Creating a Module

bun run 86d module create my-feature

This scaffolds modules/my-feature/ with the full module structure: entry point, schema, store/admin endpoints, and component stubs. Add "@86d-app/my-feature" to templates/brisa/config.json and run bun run 86d generate.

Creating a Template

bun run 86d template create minimal

This copies the brisa template to templates/minimal/ with updated config. Customize the MDX files, colors, and layout to create a new design.

License

86d.store is licensed under the MIT License. 86d.app and the Control Plane remain proprietary.

Known Issues

The store app has import references to packages that were part of the original proprietary codebase and have been removed. See AGENTS.md for the full list of packages that need reimplementation.

Keywords