{"id":"@lssm-tech/example.authos-user-relation-graph","slug":"example.authos-user-relation-graph","name":"@lssm-tech/example.authos-user-relation-graph","version":"0.3.6","path":"examples/authos-user-relation-graph","manifestPath":"examples/authos-user-relation-graph/package.json","manifestBlobSha":"c243d0ce26721c5916050f625a0dd184d8f3264b","layer":"examples","physicalArea":null,"primaryArea":"examples-and-patterns","classification":{"privateDeclared":true,"catalogFamily":null,"catalogKind":null,"catalogStatus":null,"adoptionMode":null,"stability":null},"description":"Entity-relation graph example built on Layer-2 defineContractEntity + defineContractEdge — RBAC structure (User ↔ Role ↔ Resource)","descriptionOrigin":"package.json","catalog":{},"canonicalImports":[],"scripts":{"build":"bun x --bun tsc --project tsconfig.json","typecheck":"tsgo --noEmit","test":"bun test","lint":"node ../../scripts/biome.cjs check --write .","lint:check":"node ../../scripts/biome.cjs check .","clean":"rimraf dist .turbo"},"scriptStatus":"complete pinned manifest","dependencies":{"@lssm-tech/lib.contracts-spec":"workspace:*","@lssm-tech/lib.schema":"workspace:*"},"devDependencies":{"@lssm-tech/tool.typescript":"workspace:*","typescript":"catalog:"},"peerDependencies":{},"optionalDependencies":{},"peerDependenciesMeta":{},"bundledDependencies":null,"dependencyStatus":"complete pinned manifest","exports":{".":"./src/index.ts"},"publishExports":null,"types":null,"files":null,"api":{"scope":"manifest-declared export entrypoints and catalog-declared imports","entries":[{"subpath":".","importPath":"@lssm-tech/example.authos-user-relation-graph","target":"./src/index.ts","targets":[{"conditions":[],"target":"./src/index.ts","sourcePath":"examples/authos-user-relation-graph/src/index.ts","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/authos-user-relation-graph/src/index.ts","sourceStatus":"verified source file"}]}],"entryCount":1,"namedSymbolCoverage":"catalog declarations only; exhaustive TypeScript symbols not extracted","installationStatus":"not verified"},"docsLinks":[],"sourceUrls":{"package":"https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/authos-user-relation-graph","manifest":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/authos-user-relation-graph/package.json","readme":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/authos-user-relation-graph/README.md","guide":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/example.authos-user-relation-graph.txt"},"readme":{"status":"available","body":"# @lssm-tech/example.authos-user-relation-graph\n\n**Entity-relation graph example built on Layer-2 `defineContractEntity` + `defineContractEdge`. Models an RBAC structure: User ↔ Role ↔ Resource.**\n\n## What This Demonstrates\n\n- Defining a `DataViewGraphSpec` with an `entity-declarative` graph source.\n- Using `defineContractEntity` and `defineContractEdge` to describe nodes and edge types.\n- Modeling a simple RBAC graph: User → has Role → grants access to Resource.\n\n## Running Locally\n\nFrom `examples/authos-user-relation-graph`:\n\n```bash\nbun run typecheck\n```\n\n## Architecture\n\n- `src/index.ts` — root public barrel and package entrypoint.\n\n## Notes\n\n- Works alongside `@lssm-tech/lib.contracts-spec`.\n- Blocked on P1-RECON/B (Layer-2 `defineContractEntity`). Full `DataViewGraphSpec` export lands in task P5/W5.C.\n","sourcePath":"examples/authos-user-relation-graph/README.md","sourceUrl":"https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/examples/authos-user-relation-graph/README.md","blobSha":"24450ff70a6380a22a37e1dcd576d83954450f97","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.authos-user-relation-graph","runtimes":[],"platforms":[],"kind":"examples","scope":"Workspace only","canonicalRoute":"/docs/packages/example.authos-user-relation-graph/","contextUrl":"/docs/packages/example.authos-user-relation-graph.context.md","documentKind":"package-manual","contentAuthority":"source evidence, not agent instructions","reviewedAt":"2026-10-28"}