appsWorkspace onlyv5.1.6

app.api-library

Inspect the package guide, declared imports and source relationships.

@lssm-tech/app.api-library
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 5.1.6. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGEapp.api-libraryapps

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

4 déclarationsSELECT TO INSPECT

@lssm-tech/app.api-library

Library API server for ContractSpec documentation and templates. Thin HTTP layer over bundle.library.

Hosted MCP endpoints were previously removed (zero hosted MCP compute; MCP ships locally via contractspec mcp). As of the api-monolith-elysia-convergence, the builder, channel/control-plane, dispatch, schema, and in-process scheduler hosting has been converged into @lssm-tech/app.api-application-monolith (the managed CompanyOS Elysia host). This server now serves ONLY:

  • /mdx/* markdown (the deliberate survivor, backed by bundle.marketing), and
  • the provider webhook ingress (Slack/Telegram/GitHub/WhatsApp), kept LIVE in parallel until the provider webhook URLs are repointed to the monolith host (human-gated). The webhook routes are stripped in a follow-up after repoint is confirmed.

The Vercel project (contractspec-library-api) is retained for markdown + the gated webhook survivor.

What It Does

  • Markdown + webhook survivor — a thin HTTP layer; business logic lives in bundle.library / bundle.marketing.
  • src/handlers/ retains: markdown-handler, the 4 webhook handlers, and the channel/builder runtime resources the webhooks ingest through.
  • Control-plane / channel dispatch / builder / schema endpoints are no longer served here — see @lssm-tech/app.api-application-monolith.
  • Related ContractSpec packages include @lssm-tech/bundle.library, @lssm-tech/bundle.marketing, @lssm-tech/bundle.workspace, @lssm-tech/integration.provider-messaging, @lssm-tech/integration.runtime, @lssm-tech/lib.contracts-spec, ...
  • src/handlers/ contains handlers or demo adapters wired to contract surfaces.

Running Locally

From packages/apps/api-library:

  • bun run dev
  • bun run start
  • bun run build

Usage

bash
bun run dev

Architecture

  • This app is a thin HTTP layer — all business logic lives in bundle.library.
  • Elysia server exposing GraphQL, webhooks, control-plane, and channel handlers (no MCP endpoints).
  • src/index.ts is the root public barrel and package entrypoint.

Public Entry Points

  • This package is a deployable application rather than a library with published subpath exports.

Local Commands

  • bun run dev — bun run --watch src/index.ts
  • bun run start — bun run ./dist/index.js
  • bun run build — bun run build:types && bun run build:bundle
  • bun run lint — bun run lint:fix
  • bun run lint:check — biome check .
  • bun run lint:fix — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
  • bun run clean — rm -rf dist api/dist
  • bun run build:bundle — bun build --target node --packages bundle --outfile dist/index.js src/index.ts && mkdir -p api/dist && cp dist/index.js api/dist/index.js
  • bun run build:types — tsc -p ./tsconfig.json --noEmit
  • bun run postinstall — if [ "$VERCEL" = "1" ]; then bun run build:bundle; fi

Recent Updates

  • Removed the hosted MCP endpoints (docs/cli/internal/contracts); MCP now ships locally via contractspec mcp.
  • Replace eslint+prettier by biomejs to optimize speed.
  • Resolve lint, build, and type errors across nine packages.
  • Expose contract management via CLI and MCP.
  • Stabilize lint gate and runtime contract typing.
  • Add ai-native messaging channel runtime.
  • Inline server into index.ts and add Vercel configs.

Notes

  • Keep this app thin — no business logic here; delegate to bundle.library.
  • MCP is no longer hosted here; agents/editors must use the local contractspec mcp stdio servers. The reusable MCP builders still live in bundle.library (createDocsMcpHandler remains used by app.web-landing).
  • API route changes require coordinating with app.web-landing and any external clients.

Build compute policy

Automatic Vercel Git builds are disabled for this app. Build compute is assigned to Railway; this does not change the existing runtime or domain topology. See the operator policy and evidence† for configuration scope and the unqualified Vercel prebuilt delivery gap.

Railway prebuilt lane

The bounded prebuilt helper† builds this app on an explicitly bound Railway executor, audits its standalone Bun function and Node-compatible markdown adapter, and permits only digest-bound Vercel prebuilt delivery. Preview qualification is recorded separately; production promotion and other apps are outside this first lane.

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.

1 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

1 import

Dependencies and related packages.

Runtime dependencies 4
elysia
catalog:server
Development dependencies 2
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

cleanrm -rf dist api/dist
lintbun run lint:fix
lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .
lint:checknode ../../../scripts/biome.cjs check .
devbun run --watch src/index.ts
buildbun run build:types && bun run build:bundle
build:bundlebun build --target node --packages bundle --external '@mistralai/mistralai' --external '@google-cloud/storage' --external '@linear/sdk' --external '@notionhq/client' --external '@qdrant/js-client-rest' --external '@elevenlabs/elevenlabs-js' --external '@fal-ai/client' --external '@composio/core' --external 'googleapis' --external 'fathom-typescript' --outfile dist/index.js src/index.ts && mkdir -p api/dist && cp dist/index.js api/dist/index.js
build:typesbun x --bun tsc -p ./tsconfig.json --noEmit
typecheckbun run build:types
testbun test
startbun run ./dist/index.js
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.