{"id":"@lssm-tech/example.content-generation","slug":"example.content-generation","name":"@lssm-tech/example.content-generation","version":"5.0.4","path":"examples/content-generation","manifestPath":"examples/content-generation/package.json","manifestBlobSha":"a051e83b7d1e499019bf46ed1475832eaf392a95","layer":"examples","physicalArea":null,"primaryArea":"examples-and-patterns","classification":{"privateDeclared":null,"catalogFamily":"solutions","catalogKind":"example","catalogStatus":"active","adoptionMode":"reference-only","stability":"stable"},"description":"Content generation example using @lssm-tech/lib.content-gen.","descriptionOrigin":"package.json","catalog":{"family":"solutions","kind":"example","status":"active","adoptionMode":"reference-only","stability":"stable","platforms":["server"],"runtimes":["node"],"entrypoints":[".","./content-generation.feature","./docs","./docs/content-generation.docblock","./example","./generate","./ui","./ui/content-generation-preview.data","./ui/ContentGenerationPreview"],"documentation":[{"title":"Example Content Generation documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fexample.content-generation","kind":"readme"}],"examples":[],"replacements":[],"nonAdoptableRationale":"This example is published for reference and learning, not as a reusable library dependency.","visualTesting":{"status":"deferred","owner":"@contractspec-core","targetWave":"wave-3-react-packages","rationale":"Foundational Storybook adoption establishes shared catalogs and guardrails before this package migrates."}},"canonicalImports":[],"scripts":{"publish:pkg":"bun publish --tolerate-republish --ignore-scripts --verbose","publish:pkg:canary":"bun publish:pkg --tag canary","build":"contractspec-bun-build build","build:bundle":"contractspec-bun-build transpile","build:types":"contractspec-bun-build types","dev":"contractspec-bun-build dev","clean":"rimraf dist .turbo","lint":"bun lint:fix","lint:fix":"node ../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../scripts/biome.cjs check --write .","lint:check":"node ../../scripts/biome.cjs check .","test":"bun test --pass-with-no-tests","prebuild":"contractspec-bun-build prebuild","typecheck":"tsgo --noEmit"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.contracts-spec":"workspace:^","@lssm-tech/lib.content-gen":"workspace:^","@lssm-tech/lib.logger":"workspace:^","@lssm-tech/lib.design-system":"workspace:^","react":"catalog:","react-dom":"catalog:"},"devDependencies":{"@lssm-tech/tool.typescript":"workspace:*","typescript":"catalog:","@lssm-tech/tool.bun":"workspace:*","@types/react":"catalog:types","@types/react-dom":"catalog:types"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts","./content-generation.feature":"./src/content-generation.feature.ts","./docs":"./src/docs/index.ts","./docs/content-generation.docblock":"./src/docs/index.ts","./example":"./src/example.ts","./generate":"./src/generate.ts","./ui":"./src/ui/index.ts","./ui/content-generation-preview.data":"./src/ui/content-generation-preview.data.ts","./ui/ContentGenerationPreview":"./src/ui/ContentGenerationPreview.tsx"},"publishExports":{".":{"types":"./dist/index.d.ts","browser":"./dist/browser/index.js","bun":"./dist/index.js","node":"./dist/node/index.js","default":"./dist/index.js"},"./content-generation.feature":{"types":"./dist/content-generation.feature.d.ts","browser":"./dist/browser/content-generation.feature.js","bun":"./dist/content-generation.feature.js","node":"./dist/node/content-generation.feature.js","default":"./dist/content-generation.feature.js"},"./docs":{"types":"./dist/docs/index.d.ts","browser":"./dist/browser/docs/index.js","bun":"./dist/docs/index.js","node":"./dist/node/docs/index.js","default":"./dist/docs/index.js"},"./docs/content-generation.docblock":{"types":"./dist/docs/index.d.ts","browser":"./dist/browser/docs/index.js","bun":"./dist/docs/index.js","node":"./dist/node/docs/index.js","default":"./dist/docs/index.js"},"./example":{"types":"./dist/example.d.ts","browser":"./dist/browser/example.js","bun":"./dist/example.js","node":"./dist/node/example.js","default":"./dist/example.js"},"./generate":{"types":"./dist/generate.d.ts","browser":"./dist/browser/generate.js","bun":"./dist/generate.js","node":"./dist/node/generate.js","default":"./dist/generate.js"},"./ui":{"types":"./dist/ui/index.d.ts","browser":"./dist/browser/ui/index.js","bun":"./dist/ui/index.js","node":"./dist/node/ui/index.js","default":"./dist/ui/index.js"},"./ui/content-generation-preview.data":{"types":"./dist/ui/content-generation-preview.data.d.ts","browser":"./dist/browser/ui/content-generation-preview.data.js","bun":"./dist/ui/content-generation-preview.data.js","node":"./dist/node/ui/content-generation-preview.data.js","default":"./dist/ui/content-generation-preview.data.js"},"./ui/ContentGenerationPreview":{"types":"./dist/ui/ContentGenerationPreview.d.ts","browser":"./dist/browser/ui/ContentGenerationPreview.js","bun":"./dist/ui/ContentGenerationPreview.js","node":"./dist/node/ui/ContentGenerationPreview.js","default":"./dist/ui/ContentGenerationPreview.js"}},"types":"./dist/index.d.ts","files":["LICENSE","README.md","dist","!**/*.test.*","!**/*.spec.*","!**/*.tsbuildinfo"],"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/example.content-generation","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"examples/content-generation/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./content-generation.feature","importPath":"@lssm-tech/example.content-generation/content-generation.feature","target":"./src/content-generation.feature.ts","targets":[{"conditions":[],"target":"./src/content-generation.feature.ts","sourcePath":"examples/content-generation/src/content-generation.feature.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/content-generation.feature.ts","sourceStatus":"verified source file"}]},{"subpath":"./docs","importPath":"@lssm-tech/example.content-generation/docs","target":"./src/docs/index.ts","targets":[{"conditions":[],"target":"./src/docs/index.ts","sourcePath":"examples/content-generation/src/docs/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/docs/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./docs/content-generation.docblock","importPath":"@lssm-tech/example.content-generation/docs/content-generation.docblock","target":"./src/docs/index.ts","targets":[{"conditions":[],"target":"./src/docs/index.ts","sourcePath":"examples/content-generation/src/docs/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/docs/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./example","importPath":"@lssm-tech/example.content-generation/example","target":"./src/example.ts","targets":[{"conditions":[],"target":"./src/example.ts","sourcePath":"examples/content-generation/src/example.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/example.ts","sourceStatus":"verified source file"}]},{"subpath":"./generate","importPath":"@lssm-tech/example.content-generation/generate","target":"./src/generate.ts","targets":[{"conditions":[],"target":"./src/generate.ts","sourcePath":"examples/content-generation/src/generate.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/generate.ts","sourceStatus":"verified source file"}]},{"subpath":"./ui","importPath":"@lssm-tech/example.content-generation/ui","target":"./src/ui/index.ts","targets":[{"conditions":[],"target":"./src/ui/index.ts","sourcePath":"examples/content-generation/src/ui/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/ui/index.ts","sourceStatus":"verified source file"}]},{"subpath":"./ui/content-generation-preview.data","importPath":"@lssm-tech/example.content-generation/ui/content-generation-preview.data","target":"./src/ui/content-generation-preview.data.ts","targets":[{"conditions":[],"target":"./src/ui/content-generation-preview.data.ts","sourcePath":"examples/content-generation/src/ui/content-generation-preview.data.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/ui/content-generation-preview.data.ts","sourceStatus":"verified source file"}]},{"subpath":"./ui/ContentGenerationPreview","importPath":"@lssm-tech/example.content-generation/ui/ContentGenerationPreview","target":"./src/ui/ContentGenerationPreview.tsx","targets":[{"conditions":[],"target":"./src/ui/ContentGenerationPreview.tsx","sourcePath":"examples/content-generation/src/ui/ContentGenerationPreview.tsx","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/src/ui/ContentGenerationPreview.tsx","sourceStatus":"verified source file"}]}],"entryCount":9,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[{"title":"Example Content Generation documentation","url":"https://www.npmjs.com/package/%40lssm-tech%2Fexample.content-generation","kind":"readme","pinnedUrl":null,"sourceStatus":"declared link; destination not verified"}],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.content-generation.txt"},"readme":{"status":"available","body":"# @lssm-tech/example.content-generation\n\nWebsite: https://contractspec.io\n\n**Content generation example using @lssm-tech/lib.content-gen.**\n\n## What This Demonstrates\n\n- Content generation pipeline with typed contracts.\n- Integration with the content-gen library.\n- Structured logging for generation steps.\n- DocBlock documentation for the generation flow.\n- Deterministic provider-free preview data for content, image, video, TTS, STT, and conversation workflow artifacts.\n- `src/docs/` contains docblocks and documentation-facing exports.\n\n## Preview / export workflow\n\nContent Generation previews use deterministic local pipeline fixtures for brief/prompt editing, generation review, publishing/version snapshots, and audit status. The `./ui` export must not call LLM providers, production endpoints, or live storage.\n\nThe first-class preview packet covers these local artifact kinds:\n\n- `content` — blog, email, landing, social, and SEO draft outputs from typed briefs.\n- `image` — campaign hero image fixture references.\n- `video` — launch teaser storyboard fixture references.\n- `tts` — narration script fixture references.\n- `stt` — transcript fixture references.\n- `conversation` — human review assistant handoff fixture references.\n\nPublic key behavior is compatibility-sensitive because current catalog consumers may resolve both `examples.content-generation` and normalized keys. Document and test any alias migration before release. The Phase 0 compatibility gate lives in `.omx/plans/content-generation-compatibility-matrix.md`.\n\n## Compatibility / Migration Notes\n\n- Keep `content-generation` as the canonical feature key; any registry alias cleanup is major-version-only.\n- Prefer future contract-source imports from `@lssm-tech/lib.contracts-spec/content-generation` once the contracts lane lands them; existing `@lssm-tech/lib.content-gen` generator imports remain valid for this example.\n- Provider credentials are non-goals for this package. Real provider adapters belong in integration packages and are injected by apps/modules, while this example stays deterministic.\n- Keep this README synchronized with `packages/apps/web-landing/public/llms-packages/example.content-generation.txt` until generated docs own the mirror.\n\n## Running Locally\n\nFrom `examples/content-generation`:\n- `bun run dev`\n- `bun run build`\n- `bun run test`\n- `bun run typecheck`\n\n## Usage\n\nUse `@lssm-tech/example.content-generation` as a reference implementation, or import its exported surfaces into a workspace that composes ContractSpec examples and bundles.\n\n## Architecture\n\n- `src/content-generation.feature.ts` defines a feature entrypoint.\n- `src/docs/` contains docblocks and documentation-facing exports.\n- `src/example.ts` is the runnable example entrypoint.\n- `src/generate.ts` is part of the package's public or composition surface.\n- `src/index.ts` is the root public barrel and package entrypoint.\n\n## Public Entry Points\n\n- Export `.` resolves through `./src/index.ts`.\n- Export `./content-generation.feature` resolves through `./src/content-generation.feature.ts`.\n- Export `./docs` resolves through `./src/docs/index.ts`.\n- Export `./docs/content-generation.docblock` is an alias of `./docs` and resolves through `./src/docs/index.ts`.\n- Export `./example` resolves through `./src/example.ts`.\n- Export `./generate` resolves through `./src/generate.ts`.\n- Export `./ui` resolves through `./src/ui/index.ts`.\n- Export `./ui/content-generation-preview.data` resolves through `./src/ui/content-generation-preview.data.ts`.\n- Export `./ui/ContentGenerationPreview` resolves through `./src/ui/ContentGenerationPreview.tsx`.\n\n## Local Commands\n\n- `bun run dev` — contractspec-bun-build dev\n- `bun run build` — contractspec-bun-build build\n- `bun run test` — bun test --pass-with-no-tests\n- `bun run lint` — bun lint:fix\n- `bun run lint:check` — biome check .\n- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .\n- `bun run typecheck` — tsgo --noEmit\n- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose\n- `bun run publish:pkg:canary` — bun publish:pkg --tag canary\n- `bun run clean` — rimraf dist .turbo\n- `bun run build:bundle` — contractspec-bun-build transpile\n- `bun run build:types` — contractspec-bun-build types\n- `bun run prebuild` — contractspec-bun-build prebuild\n\n## Recent Updates\n\n- Replace eslint+prettier by biomejs to optimize speed.\n- Missing contract layers.\n\n## Notes\n\n- Works alongside `@lssm-tech/lib.content-gen`, `@lssm-tech/lib.contracts-spec`, `@lssm-tech/lib.logger`, `@lssm-tech/tool.bun`, `@lssm-tech/tool.typescript`.\n","sourcePath":"examples/content-generation/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/content-generation/README.md","blobSha":"9ecd7c0d8ed46c2574dc5da488f8b84a20b839f8","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","origin":"README recovered byte-for-byte from pinned aggregate guide","integrity":"exact Git blob match","executionStatus":"not executed"},"provenance":{"repository":"lssm-tech/contractspec","sourcePin":"bcc79fcc27c4d801c2119bef81ddcce7b4e86498","manifestOrigin":"pinned GitHub manifest fetch","manifestComplete":true,"publicationPolicyApplied":false},"areaSlug":"examples-and-patterns","areaTitle":"Examples and implementation patterns","displayName":"example.content-generation","runtimes":["node"],"platforms":["server"],"kind":"example","scope":"Package manifest","canonicalRoute":"/docs/packages/example.content-generation/","contextUrl":"/docs/packages/example.content-generation.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}