Skip to Content
HeronJS v4 is now available.
Knowledge BaseKnowledge Catalog

Knowledge Catalog

This catalog maps the ten HeronJS 4.0.0 packages to their responsibilities, source submodules, and usage guides. Use it to identify which package owns a capability before selecting an API or reading its implementation.

Scope: submodules below are feature directories under packages/<package>/src. They describe source organization, not additional npm packages or supported import paths. Import public APIs from package entrypoints. The documented @heronjs/common/thread entrypoint provides the worker-local DI bridge.

For concepts and lifecycle rules, read Framework Knowledge. For package dependencies and submodule ownership, see the Knowledge Graph.

Package index

PackageResponsibilityGuide
@heronjs/commonShared contracts and dependency injectionUsage guide
@heronjs/coreApplication composition and resource ownershipUsage guide
@heronjs/threadWorker execution and schedulingUsage guide
@heronjs/expressHTTP routing and request handlingUsage guide
@heronjs/gqlGraphQL schemas and resolversUsage guide
@heronjs/ebsMessage publishing and consumptionUsage guide
@heronjs/websocketConnections and event handlersUsage guide
@heronjs/trpcProcedure endpoints and subscriptionsUsage guide
@heronjs/mcpTools, resources, and prompt catalogsUsage guide
@heronjs/acpAgent endpoints and session executionUsage guide

common

@heronjs/common — Shared contracts and dependency injection. Usage guide · Release source .

Source submoduleResponsibility
diContainers, typed tokens, provider registration, scopes, and injection decorators.
metadataTyped metadata keys, reflection access, and metadata decorators.
modulesModule declarations, component metadata, and registry contracts.
lifecycleShared lifecycle and resource-disposal contracts.
protocolsProtocol-neutral extension and HTTP contracts.
securityAuthentication contracts and shared guard evaluation.
servicesService declarations, modes, and lifecycle-hook metadata.
cacheCache configuration, store contracts, and caching metadata.
persistenceDatasource configuration, persistence contracts, and declarations.
messagingCommand, query, event, and messaging contracts.
configurationExplicit environment and configuration access.
collectionsCollection types and data structures.
validationRuntime type predicates and validation helpers.
resilienceRate-limiter and circuit-breaker configuration and metadata.
errorsFramework error types, codes, and error contracts.
loggingLogger configuration, reviewed events, and redaction.
integrationsFramework integration contracts and bridges: datetime, tracing, and thread.

core

@heronjs/core — Application composition and resource ownership. Usage guide · Release source .

Source submoduleResponsibility
applicationApplication creation, context, runtime selection, and configuration.
modulesModule traversal, metadata snapshots, and registration plans.
lifecycleLifecycle execution and owned cleanup.
extensionsProtocol-extension composition and lifecycle coordination.
httpThe shared HTTP host and listener ownership.
servicesExecution of initialization, interval, and daemon services.
cacheCache resource creation and memory, redis, and disk stores.
datasourcesSQL connection ownership and standalone, tenant, and repository implementations.
cqrsApplication-owned command, query, and event execution.
errorsCore-specific error handling.

thread

@heronjs/thread — Worker execution and scheduling. Usage guide · Release source .

Source submoduleResponsibility
executionReactive result normalization and execution utilities.
protocolWorker message contracts, validation, and parent/worker communication.
poolsBounded job queues and worker-pool scheduling.
runtimeWorker bootstrap, task execution, and dedicated worker services.
metadataWorker task and service metadata.
errorsWorker execution and lifecycle errors.

express

@heronjs/express — HTTP routing and request handling. Usage guide · Release source .

Source submoduleResponsibility
routingController routes, HTTP methods, route options, and server registration.
parametersRequest parameter binding and route interceptors.
securityHTTP authentication and authorization integration.
runtimeHTTP adapter execution, native hooks, plugins, and configuration.
metadataHTTP route and controller metadata.

gql

@heronjs/gql — GraphQL schemas and resolvers. Usage guide · Release source .

Source submoduleResponsibility
schemaSchema declarations and schema construction.
resolversResolver discovery, parameter binding, and execution.
securityGraphQL authorization integration.
runtimeGraphQL extension and HTTP adapter lifecycle.
metadataSchema and resolver metadata.
errorsGraphQL-specific errors and response formatting.

ebs

@heronjs/ebs — Message publishing and consumption. Usage guide · Release source .

Source submoduleResponsibility
subscriptionsConsumer and stream declarations, handler discovery, and parameter binding.
publishersMessage publishing and stream publishing.
transportsHeronJS transport implementations: kafka, nats, and amqp.
metadataMessaging declaration metadata.
enumsMessaging-specific enumerations.
errorsMessaging and transport errors.

websocket

@heronjs/websocket — Connections and event handlers. Usage guide · Release source .

Source submoduleResponsibility
handlersEvent and lifecycle decorators, parameter binding, and handler execution.
connectionsConnection state and peer operations.
runtimeWebSocket extension lifecycle, upgrades, and server integration.
metadataNamespace and handler metadata.
errorsWebSocket-specific errors.

trpc

@heronjs/trpc — Procedure endpoints and subscriptions. Usage guide · Release source .

Source submoduleResponsibility
proceduresProcedure declarations, validation, and endpoint grouping.
securityProcedure authorization.
runtimeRouter construction, HTTP integration, and subscription lifecycle.
metadataProcedure and endpoint metadata.
errorsProcedure and transport errors.

mcp

@heronjs/mcp — Tools, resources, and prompt catalogs. Usage guide · Release source .

Source submoduleResponsibility
catalogTool, resource, and prompt declarations and catalog construction.
endpointsIndependent catalog endpoints and endpoint configuration.
transportsHTTP and stdio transport integration.
metadataCatalog and handler metadata.
errorsMCP-specific errors.

acp

@heronjs/acp — Agent endpoints and session execution. Usage guide · Release source .

Source submoduleResponsibility
agentsAgent declarations, session contracts, and agent execution.
endpointsIndependent agent endpoints and endpoint configuration.
transportsHTTP and stdio transport integration.
metadataAgent declaration metadata.
errorsACP-specific errors.

Selecting a capability

RequirementStart with
Compose an application and manage resource cleanupcore and common
Declare modules and inject providerscommon/modules and common/di
Implement an HTTP APIexpress/routing and express/parameters
Add a schema or procedure APIgql/schema, gql/resolvers, or trpc/procedures
Handle realtime connectionswebsocket/handlers and websocket/connections
Publish or consume broker messagesebs/publishers, ebs/subscriptions, and ebs/transports
Expose tools, resources, or promptsmcp/catalog and mcp/endpoints
Implement an agent with sessionsacp/agents and acp/endpoints
Execute work in worker threadsthread/pools, thread/runtime, and the common worker bridge
Configure application data resourcescommon/cache, common/persistence, core/cache, and core/datasources

This inventory is verified against release commit cfb0ea5.

Last updated on