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 declaracionesSELECT 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

Arquitectura

  • 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 importación

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
Tu vista

Make room for your context.

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

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

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

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.