OpenLup guide
OpenLup is subscription-first, open-source commerce for direct-to-consumer
brands that sell physical products. This guide explains how to install,
compose, extend, operate and upgrade the @openlup/* packages.
Status: stable 1.x. Read the API stability policy,
generated subpath classifications and
installation support boundary.
Pin exact versions and upgrade all @openlup/* packages together.
Instructions for agents
- Read the copy of this guide that matches the installed
@openlup/coreversion: the copy at that version's release tag. Do not rely on memory or on another version's pages. - Never hardcode an OpenLup version; read it from the installed packages.
- Prefer the refusal-code reference to guessing what a refusal means.
- Report a wrong page through the documentation problem form, naming the page and the installed version.
Pages
Start
How-to: build
- Compose account and support services
- Compose native bundle writes
- Recover abandoned checkouts and payments
- Customize the starter store
- Compose native fulfillment
- Compose invoicing
- Compose marketing handlers
- Compose order management stores
- Deliver events with the outbox
- Add OpenLup to an existing application
- Read prices for a quote
- Compose SEO and content slots
How-to: extend
How-to: operate
- Configure settings
- Settings catalogue
- Connect to PostgreSQL
- Customer diagnostic history and retention
- Production checklist
- Harden a deployment
- Run OpenLup on your own host
- Shut down a host cleanly
- Verify the published packages
Upgrade
- Upgrade an application
- Upgrade the database
- Upgrade application files
- Upgrading to 0.40.0
- Upgrading to 0.41.0
- Upgrading to 0.42.0
- Upgrading to 0.43.0
- Upgrading to 1.0.0
- Upgrading to 1.2.0
- Upgrading to 1.3.0
Concepts
- Architecture and ownership
- Catalogue and prices
- Checkout
- Fulfillment and delivery
- Idempotency
- Identity
- Marketing sync
- Orders
- Payments
- Personal data
- Security model
- Who owns what in the starter
- Subscription engine
- Subscriptions
Reference
- Reference
- AI-assisted contributions
- Command line
- Configuration keys
- Exports
- Starter limits
- Maturity
- Refusal codes
- SQL catalogue
- Versioning and stability
- Starter routes
Troubleshooting
Glossary
Writing this guide
- One task or one concept per page.
- Open with the reader's goal.
- Give commands that run as written. TypeScript examples compile against the
packages of the same release; an example that must not compile is fenced as
ts nocheckand opens with a comment line that says why. - State invariants and refusals plainly, with their refusal codes.
- Write for a reader outside the project: no task or milestone IDs, plan names, delivery-process vocabulary or details of one adopter's store.
- Pages carry no version, date or status. Versions, counts, export lists and
capability maturity appear only in generated regions, which
npm run docs:check -- --writerefreshes from the code. - Links between guide pages are relative. A link that leaves the guide is an absolute repository URL at the core release tag, which the same command rewrites on a version change. Non-Markdown assets use those pinned repository URLs too.
How to change OpenLup itself is in CONTRIBUTING.md.