Documentation
¶
Overview ¶
Command lesstruct is the default (blog) edition: every first-party module, every database driver. Server-only deployments build this same package with `-tags nosqlite` (make build-server) — postgres/mysql, no sqlite. The headless engine edition lives at ./cmd/lesstruct-core.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
lesstruct-cli
command
Command lesstruct-cli authors and manages Lesstruct content and media over the versioned /api/v1 REST API.
|
Command lesstruct-cli authors and manages Lesstruct content and media over the versioned /api/v1 REST API. |
|
lesstruct-cli/cmd
Package cmd holds the cobra command tree for the lesstruct-cli binary.
|
Package cmd holds the cobra command tree for the lesstruct-cli binary. |
|
lesstruct-core
command
Command lesstruct-core is the Core edition: the headless engine.
|
Command lesstruct-core is the Core edition: the headless engine. |
|
lesstruct-ecommerce
command
Command lesstruct-ecommerce is the eCommerce edition: the blog module list plus the commerce stack (catalog products with native pricing, variant matrices, stock, and SKUs; token-keyed carts; first-class orders with checkout and the admin lifecycle surface).
|
Command lesstruct-ecommerce is the eCommerce edition: the blog module list plus the commerce stack (catalog products with native pricing, variant matrices, stock, and SKUs; token-keyed carts; first-class orders with checkout and the admin lifecycle surface). |
|
lesstruct-mcp
command
Command lesstruct-mcp exposes Lesstruct to AI agents over the Model Context Protocol (MCP).
|
Command lesstruct-mcp exposes Lesstruct to AI agents over the Model Context Protocol (MCP). |
|
internal
|
|
|
app
Package app is the Lesstruct composition root: the shared platform — config, database, identity, content engine, media stack, plugin system, boot — that every edition wires its module list into.
|
Package app is the Lesstruct composition root: the shared platform — config, database, identity, content engine, media stack, plugin system, boot — that every edition wires its module list into. |
|
editions/blog
Adapters between the platform services and the blog edition's modules: comments, SEO, the SSR engine, and the WordPress importer.
|
Adapters between the platform services and the blog edition's modules: comments, SEO, the SSR engine, and the WordPress importer. |
|
editions/commerce
Package commerce is the eCommerce edition: the blog module list plus the catalog module — native pricing, variant matrices, stock, and SKUs keyed to a configured product post type — and the official storefront theme in place of the blog theme.
|
Package commerce is the eCommerce edition: the blog module list plus the catalog module — native pricing, variant matrices, stock, and SKUs keyed to a configured product post type — and the official storefront theme in place of the blog theme. |
|
editions/core
Package core is the Lesstruct Core edition: the headless engine.
|
Package core is the Lesstruct Core edition: the headless engine. |
|
email
Catalog stock notifications: the commerce sends the platform offers out of the box.
|
Catalog stock notifications: the commerce sends the platform offers out of the box. |
|
identity
Package identity bridges kernel.Principal to the v0 int-ID, single-role model during the Phase 2 transition.
|
Package identity bridges kernel.Principal to the v0 int-ID, single-role model during the Phase 2 transition. |
|
modules
Package modules hosts the core-side adapters between the composition root and the real v1 modules under modules/: repository-to-seam bridges whose only layer may import both sides (user policy, auth notifications, soft delete, profile pictures), plus the logger adapter.
|
Package modules hosts the core-side adapters between the composition root and the real v1 modules under modules/: repository-to-seam bridges whose only layer may import both sides (user policy, auth notifications, soft delete, profile pictures), plus the logger adapter. |
|
kernel
module
|
|
|
modules
|
|
|
adminpanel
module
|
|
|
auth
module
|
|
|
cart
module
|
|
|
catalog
module
|
|
|
comments
module
|
|
|
importers
module
|
|
|
media
module
|
|
|
modgen
module
|
|
|
orders
module
|
|
|
payments
module
|
|
|
plugingen
module
|
|
|
posttypes-basic
module
|
|
|
privacy
module
|
|
|
seo
module
|
|
|
site-ssr
module
|
|
|
speech
module
|
|
|
textgen
module
|
|
|
theme-default
module
|
|
|
theme-storefront
module
|
|
|
themegen
module
|
|
|
users
module
|
|
|
pkg
|
|
|
sdk
Package sdk provides constants and documentation for developing WASM plugins for Lesstruct.
|
Package sdk provides constants and documentation for developing WASM plugins for Lesstruct. |
|
sdk/examples/go-hello-world
command
|
|
|
sdk/examples/go-system-fields
command
|
|
|
sdk/examples/go-validation
command
|
|
|
skills
|
|
|
tools
|
|
|
stylecheck
Package stylecheck enforces the Lesstruct Go file-layout contract: methods stay with the struct that owns them, constructors close their type, and package-level helpers precede public declarations.
|
Package stylecheck enforces the Lesstruct Go file-layout contract: methods stay with the struct that owns them, constructors close their type, and package-level helpers precede public declarations. |
|
stylecheck/cmd/stylecheck
command
Command stylecheck enforces the Lesstruct Go file-layout contract.
|
Command stylecheck enforces the Lesstruct Go file-layout contract. |