+ Ecosystem Integrations +
++ TPMJS is part of a larger AI infrastructure ecosystem. See how it connects with HLLM + for multi-agent orchestration and BlocksAI for domain-driven validation. +
++ The Complete Picture +
++ Three Projects, One Vision +
+HLLM
+Multi-Agent Orchestration
++ A playground for orchestrating multiple AI agents using 13 different topology + patterns. Agents can use TPMJS tools to extend their capabilities. +
+TPMJS
+AI Tool Registry
++ The central registry for AI tools. Automatically discovers tools from npm, + validates them, and provides sandboxed execution. +
+BlocksAI
+Domain-Driven Validation
++ A validation framework that uses AI to ensure code follows domain semantics. TPMJS + tools are validated using BlocksAI patterns. +
++ HLLM Integration +
++ HLLM (Hierarchical Language Learning Model) is a multi-agent orchestration + platform. It integrates with TPMJS to give agents access to the full tool + registry. +
++ How HLLM Uses TPMJS Tools +
+Tool Discovery
+
+ HLLM's Tool Browser fetches available tools from{' '}
+
+ /api/tpmjs/tools
+ {' '}
+ proxy, which forwards to tpmjs.com
+
Agent Configuration
++ Users attach tools to agents in the Agent Studio. Each agent can have + different tools based on its role. +
+Tool Execution
+
+ When an agent calls a tool, HLLM routes the request to{' '}
+
+ executor.tpmjs.com
+ {' '}
+ for sandboxed execution
+
Environment Variables
++ User API keys (e.g., FIRECRAWL_API_KEY) are encrypted and injected at + runtime. Keys never leave the server. +
++ 13 Orchestration Topologies +
++ HLLM supports various multi-agent coordination patterns. Each topology can use + TPMJS tools: +
++ HLLM Tool Execution Code +
++ BlocksAI Validation +
++ BlocksAI provides domain-driven validation for code. TPMJS tools are validated + using BlocksAI's 3-layer pipeline to ensure quality and consistency. +
++ 3-Layer Validation Pipeline +
+Schema Validation
++ Validates blocks.yml structure using Zod schemas. Ensures all required + fields are present with correct types. +
+Shape Validation
++ Validates TypeScript file structure. Checks that files exist, have exports, + and follow expected patterns. +
+Domain Validation
++ AI-powered semantic analysis using GPT-4 or Claude. Checks that code aligns + with domain rules and expresses intent clearly. +
++ TPMJS blocks.yml Configuration +
++ TPMJS tools are defined in blocks.yml with domain rules for validation: +
+Running Validation
++ Shared Technologies +
+Vercel AI SDK v6
++ The foundation for all tool definitions. Both HLLM and TPMJS use the same pattern: +
+D3.js Visualizations
++ Both projects use D3 for interactive diagrams: +
+-
+
- + HLLM: + TopologyGraph, ExecutionTimeline + +
- + TPMJS: + ArchitectureDiagram, SDKFlowDiagram + +
+ Real-time animations, hover tooltips, theme-aware colors +
+Prisma + PostgreSQL
+Shared database patterns:
+-
+
- + HLLM: + Sessions, traces, prompts, user prefs + +
- + TPMJS: + Tools, packages, health checks, metrics + +
+ Both hosted on Neon with connection pooling +
++ Integration APIs +
+ +| Endpoint | +Project | +Purpose | +
|---|---|---|
| /api/tools | +TPMJS | ++ Search and list tools with filters + | +
| + /api/tools/execute + | +TPMJS | ++ Execute tools with SSE streaming + | +
| + /api/tpmjs/tools + | +HLLM | ++ Proxy to TPMJS registry (avoids CORS) + | +
| + /api/tpmjs/execute + | +HLLM | ++ Execute with user's encrypted env vars + | +
| + /api/user/tpmjs-env + | +HLLM | ++ Store/retrieve encrypted API keys + | +
| npx blocks run | +BlocksAI | ++ Validate tools against domain rules + | +
+ Complete Data Flow +
++ Tool Development & Validation +
+
+ Developer creates tool using AI SDK pattern β{' '}
+
+ npx blocks run
+ {' '}
+ validates against domain rules β Tool published to npm
+
Registry Discovery
++ TPMJS changes feed detects new package β Schema extraction & health checks β + Tool indexed with quality score β Available via API +
+Agent Configuration
++ HLLM user browses Tool Browser β Selects tools for agent β Configures topology β + Saves agent configuration +
+Execution
++ Agent decides to use tool β HLLM calls TPMJS executor β Tool runs in Deno + sandbox β Result streamed back β Agent continues reasoning +
++ Explore the Ecosystem +
++ Dive deeper into each project or start building with TPMJS tools. +
+