Skip to content

API Reference

Welcome to the ContextJS API Reference.
This section documents all public APIs, core types, and extension points for every package in the ContextJS ecosystem.

Each package is fully typed and designed for seamless integration in TypeScript projects. Use the links below to view detailed class, interface, function, and type definitions.

Packages

PackageDescriptionAPI Docs
@contextjs/collectionsGeneric data structures such as Dictionary, List, Queue, and Stack.View
@contextjs/configurationConfiguration abstraction, including runtime config loading and providers.View
@contextjs/configuration-jsonJSON configuration provider that loads environment-aware settings with fallback support.View
@contextjs/contextMain entrypoint for CLI, project scaffolding, and extension management.View
@contextjs/diType-safe dependency injection, lifetimes, and service collections.View
@contextjs/ioFile, directory, and path utilities, plus robust exceptions for I/O.View
@contextjs/routingRoute parsing, scoring, and route info structures.View
@contextjs/systemCore utilities: exception hierarchy, console, extensions, and versioning.View
@contextjs/textString manipulation, formatters, and builders.View
@contextjs/webserverHigh-performance HTTP/2 server, context objects, and webserver options.View
@contextjs/webserver-middleware-controllersControllers middleware for the ContextJS webserver.View
@contextjs/webserver-middleware-cookiesMiddleware for ContextJS WebServer that transparently handles HTTP cookies in requests and responses.View
@contextjs/webserver-middleware-staticMiddleware for ContextJS WebServer that serves static files.View

How to Use

  • All APIs are type-safe and fully documented.
  • Classes and interfaces are grouped by package for quick discovery.
  • See the sidebar for direct navigation.

For package installation and getting started guides, see the Guide.


Need more details?
You can also consult the README for each package or review source-level comments for advanced usage.