Essential TypeScript abstractions.
@metreeca/core is a foundational TypeScript toolkit with clean, minimalist APIs for value operations, runtime services, functional patterns and web standards.
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 | Core types, guards, and utilities |
| Value Operations | |
| @metreeca/core/strings | General-purpose string operations |
| @metreeca/core/numbers | General-purpose number operations |
| @metreeca/core/arrays | General-purpose array operations |
| @metreeca/core/structures | General-purpose structural operations |
| Runtime Services | |
| @metreeca/core/async | Asynchronous execution utilities |
| @metreeca/core/scope | Unique value allocation |
| @metreeca/core/bucket | Bulk content storage |
| Functional Patterns | |
| @metreeca/core/order | Composable comparison functions |
| @metreeca/core/trace | Composable value validators |
| @metreeca/core/relay | Type-safe discriminated union switching |
| @metreeca/core/state | Type-safe immutable state management |
| Web Standards | |
| @metreeca/core/resource | RFC 3987 resource identifiers |
| @metreeca/core/language | BCP 47 tags and RFC 4647 basic ranges |
| @metreeca/core/datatype | XSD 1.1 datatype identifiers |
| @metreeca/core/base64 | RFC 4648 base64 encoders and decoders |
This project is licensed under the Apache 2.0 License – see LICENSE file for details.