← Documentation

Documentation

Getting started

The fast path — scaffold a new project

One command gets you a working storefront with six demo products, Stripe-ready checkout, blog, admin, and all the surfaces the core ships with:

npm create @dashcommerce@latest
cd your-shop
bun run bootstrap   # emdash init + merge-seed + seed
bun run dev         # Astro at :4321

The scaffold uses the @dashcommerce/starter template. Works with bun create, pnpm create, and yarn create too — the invoking package manager is used for the install.

Open http://localhost:4321, then paste your Stripe test keys at /_emdash/admin/plugins/dashcommerce/settings — see Stripe setup.

Or — add core to an existing EmDash site

If you already run an EmDash project, wire the plugin in directly. DashCommerce ships as an EmDash plugin — there is no supported path that bypasses EmDash.

1. Install the package

From your project root (same package manager you use for EmDash):

bun add @dashcommerce/core

2. Register the plugin

Add dashcommerce() to your EmDash plugins array in astro.config. The following matches the monorepo README (adjust database / storage to your setup):

import { defineConfig } from "astro/config";
import emdash from "emdash/astro";
import { sqlite } from "emdash/db";
import { local } from "emdash/storage/local";
import { dashcommerce } from "@dashcommerce/core";

export default defineConfig({
  integrations: [
    emdash({
      database: sqlite({ url: "file:./data.db" }),
      storage: local({
        directory: "./uploads",
        baseUrl: "/_emdash/api/media/file",
      }),
      plugins: [dashcommerce()],
    }),
  ],
});

3. Seed and open the admin

Merge the DashCommerce collections into your existing seed.json via the dashcommerce-merge-seed CLI that ships with @dashcommerce/core, then run your EmDash seed:

bunx dashcommerce-merge-seed
bun emdash seed

Open /_emdash/admin, then configure DashCommerce (including Stripe keys) under the DashCommerce settings screen.

Versioning

@dashcommerce/core is on npm. Until 1.0.0, minor versions in the 0.x range may include breaking API or schema changes — pin semver carefully in production. The reference storefront lives at emdashCommerce/starter ; a hosted demo runs at demo.dashcommerce.dev .

Next

Stripe setup →