lib.graphql-core
Shared GraphQL core: Pothos builder factory, scalars, tracing & complexity
@lssm-tech/lib.graphql-corebun add @lssm-tech/lib.graphql-coreManifest declarations describe the current workspace; they do not verify registry publication or runtime execution.
Package guide
Website: https://contractspec.io
Shared GraphQL core: Pothos builder factory, scalars, tracing & complexity.
What It Provides
- Layer: lib.
- Consumers: graphql-federation, graphql-prisma, contracts-runtime-server-graphql, bundles.
- Related ContractSpec packages include
@lssm-tech/tool.bun,@lssm-tech/tool.typescript. - Related ContractSpec packages include
@lssm-tech/tool.bun,@lssm-tech/tool.typescript.
Installation
npm install @lssm-tech/lib.graphql-core
or
bun add @lssm-tech/lib.graphql-core
Usage
Import the root entrypoint from @lssm-tech/lib.graphql-core, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Export
.resolves through./src/index.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— contractspec-bun-build buildbun run typecheck— tsgo --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rm -rf distbun run prebuild— contractspec-bun-build prebuildbun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build types
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
Notes
- Builder factory is consumed by all GraphQL packages — interface changes have high blast radius.
- Scalar definitions must stay aligned with the schema lib.
- Tracing and complexity plugins must not introduce runtime overhead in production without opt-in.
Relationships
Arrows point from a package to its direct dependency. Counts are derived from captured workspace manifests.
8 declarations
@pothos/corecatalog:graphql
@pothos/plugin-complexitycatalog:graphql
@pothos/plugin-dataloadercatalog:graphql
@pothos/plugin-relaycatalog:graphql
@pothos/plugin-tracingcatalog:graphql
graphqlcatalog:graphql
Declared capabilities
Shared GraphQL core: Pothos builder factory, scalars, tracing & complexity
Scripts
publish:pkgbun publish --tolerate-republish --ignore-scripts --verbosepublish:pkg:canarybun publish:pkg --tag canarybuildcontractspec-bun-build builddevcontractspec-bun-build devcleanrm -rf distprebuildcontractspec-bun-build prebuildbuild:bundlecontractspec-bun-build transpilebuild:typescontractspec-bun-build typestypechecktsgo --noEmit