@lssm-tech/example.marketplaceexample.marketplace
Marketplace example with orders, payouts, and reviews for ContractSpec
@lssm-tech/example.marketplaceSource, release and verification context
Source snapshot bcc79fcc · Declared package version 5.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/example.marketplace
Website: https://contractspec.io
Marketplace example with orders, payouts, and reviews for ContractSpec.
What This Demonstrates
- Multi-entity domain modeling (order, payout, product, review, store).
- Per-entity schema/enum/event/operations/presentation pattern.
- Capability and feature definition patterns.
- React UI with hooks, renderers, and dashboard component.
- Contract-backed visualizations for order status, category value comparison, and recent order activity.
- Seeder pattern for demo data.
- Test-spec for operations validation.
Running Locally
From examples/marketplace:
bun run devbun run buildbun run typecheckbun run test
Usage
Use @lssm-tech/example.marketplace as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.
Architecture
src/docs/contains docblocks and documentation-facing exports.src/entities/contains domain entities and value objects.src/example.tsis the runnable example entrypoint.src/handlers/contains handlers or demo adapters wired to contract surfaces.src/index.tsis the root public barrel and package entrypoint.src/marketplace.capability.tsdefines a capability surface.src/marketplace.feature.tsdefines a feature entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts. - Export
./docsresolves through./src/docs/index.ts. - Export
./docs/marketplace.docblockis an alias of./docsand resolves through./src/docs/index.ts. - Export
./entitiesresolves through./src/entities/index.ts. - Export
./entities/orderresolves through./src/entities/order.ts. - Export
./entities/payoutresolves through./src/entities/payout.ts. - Export
./entities/productresolves through./src/entities/product.ts. - Export
./entities/reviewresolves through./src/entities/review.ts. - Export
./entities/storeresolves through./src/entities/store.ts. - Export
./exampleresolves through./src/example.ts. - The package publishes 52 total export subpaths; keep docs aligned with
package.json.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsgo --noEmitbun run test— bun testbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Missing contract layers.
Notes
- Works alongside
@lssm-tech/lib.contracts-spec,@lssm-tech/lib.design-system,@lssm-tech/lib.example-shared-ui,@lssm-tech/lib.runtime-sandbox,@lssm-tech/lib.schema, ...
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
56 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
56 imports · showing 35
@lssm-tech/example.marketplace/docs@lssm-tech/example.marketplace/docs/marketplace.docblock@lssm-tech/example.marketplace/entities@lssm-tech/example.marketplace/entities/order@lssm-tech/example.marketplace/entities/payout@lssm-tech/example.marketplace/entities/product@lssm-tech/example.marketplace/entities/review@lssm-tech/example.marketplace/entities/store@lssm-tech/example.marketplace/example@lssm-tech/example.marketplace/handlers@lssm-tech/example.marketplace/handlers/marketplace.handlers@lssm-tech/example.marketplace/marketplace.capability@lssm-tech/example.marketplace/marketplace.feature@lssm-tech/example.marketplace/order@lssm-tech/example.marketplace/order/order.enum@lssm-tech/example.marketplace/order/order.event@lssm-tech/example.marketplace/order/order.operations@lssm-tech/example.marketplace/order/order.presentation@lssm-tech/example.marketplace/order/order.schema@lssm-tech/example.marketplace/payout@lssm-tech/example.marketplace/payout/payout.enum@lssm-tech/example.marketplace/payout/payout.event@lssm-tech/example.marketplace/payout/payout.operations@lssm-tech/example.marketplace/payout/payout.presentation@lssm-tech/example.marketplace/payout/payout.schema@lssm-tech/example.marketplace/product@lssm-tech/example.marketplace/product/product.enum@lssm-tech/example.marketplace/product/product.event@lssm-tech/example.marketplace/product/product.operations@lssm-tech/example.marketplace/product/product.presentation@lssm-tech/example.marketplace/product/product.schema@lssm-tech/example.marketplace/review@lssm-tech/example.marketplace/review/review.enum@lssm-tech/example.marketplace/review/review.event@lssm-tech/example.marketplace/review/review.operations@lssm-tech/example.marketplace/review/review.presentation@lssm-tech/example.marketplace/review/review.schema@lssm-tech/example.marketplace/seeders@lssm-tech/example.marketplace/store@lssm-tech/example.marketplace/store/store.enum@lssm-tech/example.marketplace/store/store.event@lssm-tech/example.marketplace/store/store.operations@lssm-tech/example.marketplace/store/store.presentation@lssm-tech/example.marketplace/store/store.schema@lssm-tech/example.marketplace/tests/operations.test-spec@lssm-tech/example.marketplace/ui@lssm-tech/example.marketplace/ui/hooks@lssm-tech/example.marketplace/ui/hooks/useMarketplaceData@lssm-tech/example.marketplace/ui/MarketplaceDashboard@lssm-tech/example.marketplace/ui/MarketplaceDashboard.visualizations@lssm-tech/example.marketplace/ui/renderers@lssm-tech/example.marketplace/ui/renderers/marketplace.markdown@lssm-tech/example.marketplace/visualizations@lssm-tech/example.marketplace/visualizations/catalog@lssm-tech/example.marketplace/visualizations/selectorsNo export paths match this search.
Dependencies and related packages.
Runtime dependencies 8
- @lssm-tech/lib.contracts-spec
- workspace:^
- @lssm-tech/lib.design-system
- workspace:^
- @lssm-tech/lib.example-shared-ui
- workspace:^
- @lssm-tech/lib.presentation-runtime-core
- workspace:^
- @lssm-tech/lib.runtime-sandbox
- workspace:^
- @lssm-tech/lib.schema
- workspace:^
- react
- catalog:
- react-dom
- catalog:
Development dependencies 5
- @lssm-tech/tool.bun
- workspace:*
- @lssm-tech/tool.typescript
- workspace:*
- @types/react
- catalog:types
- @types/react-dom
- catalog:types
- typescript
- catalog:
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
bun publish --tolerate-republish --ignore-scripts --verbosebun publish:pkg --tag canarycontractspec-bun-build buildcontractspec-bun-build transpilecontractspec-bun-build typescontractspec-bun-build devrimraf dist .turbobun lint:fixnode ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .node ../../scripts/biome.cjs check .contractspec-bun-build prebuildtsgo --noEmitbun test