Overview
@gloocan/cat-inspector helps you expose selected TypeScript functions and Express handlers to QA tools over a versioned wire protocol. Integrators register units (fnKey + handler), optionally enrich types from source via an AST pass, then serve a catalog and execute RPC—for Gloocan QA web, that path is attachCatRPC on Socket.IO next to your HTTP server.
Pillars
- Registry — Each registered unit has a stable string key (
ClassName.methodName), parameter metadata, declared return, return/error labels, and optional JSON Schemas for validation. - RPC —
executeRPCinvokes a registered handler with positional arguments and returns a structuredRpcResponse. - Host transport —
attachCatRPC(import@gloocan/cat-inspector/socket-io) is the primary integration: catalog, invoke, uploads, and sessions over Socket.IO. Optional embedded WebSocket:startInspectorWebSocketfor standalone tooling. - Catalog build —
attachCatRPCtakesscanRootsand a nestedbootstrapobject (AST scan, file-wire hints, Minio, timeouts, and so on); the SDK builds the registry and emitscatalog:bootstrapto clients.
Where to go next
- Installation — package, peers, TypeScript flags for
@Cat. - Quick start — copy-paste minimal
attachCatRPCserver example. - attachCatRPC — Socket.IO host options,
secretApiKey, nested catalog fields, validation helpers. - API index — every public export with links.