Essential TypeScript abstractions.
@metreeca/core is a foundational TypeScript toolkit with clean, minimalist APIs for common operations, web standards and functional patterns.
npm install @metreeca/core
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
| Module | Description |
|---|---|
| @metreeca/core | Utility types and type guards |
| Common Operations | |
| @metreeca/core/deep | Deep operations on objects and arrays |
| @metreeca/core/report | Execution reporting and error handling |
| @metreeca/core/scope | Identity-keyed value allocation |
| @metreeca/core/async | Asynchronous coordination primitives |
| Web Standards | |
| @metreeca/core/resource | RFC 3987 resource identifiers |
| @metreeca/core/language | BCP 47 tags and RFC 4647 basic ranges |
| @metreeca/core/problem | RFC 9457 problem details for HTTP APIs |
| @metreeca/core/base64 | RFC 4648 URL-safe base64 codec |
| Functional Patterns | |
| @metreeca/core/order | Composable comparison functions |
| @metreeca/core/relay | Type-safe relay for discriminated unions |
| @metreeca/core/state | Type-safe immutable state management |
This project is licensed under the Apache 2.0 License – see LICENSE file for details.