Essential TypeScript abstractions.
@grafctory/core is the foundation module of the Grafctory model-driven knowledge graph framework. It offers clean, minimalist APIs for built-in types, runtime services, functional patterns and web standards.
npm install @grafctory/core
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
| Module | Description |
|---|---|
| @grafctory/core | Core types, guards, and utilities |
| Built-in Types | |
| @grafctory/core/values | General-purpose value operations |
| @grafctory/core/numbers | General-purpose number operations |
| @grafctory/core/strings | General-purpose string operations |
| @grafctory/core/arrays | General-purpose array operations |
| Runtime Services | |
| @grafctory/core/async | Asynchronous execution |
| @grafctory/core/scope | Unique value allocation |
| @grafctory/core/bucket | Bulk content storage |
| Functional Patterns | |
| @grafctory/core/order | Composable comparison functions |
| @grafctory/core/trace | Composable value validators |
| @grafctory/core/relay | Type-safe discriminated union switching |
| @grafctory/core/state | Type-safe immutable state management |
| Web Standards | |
| @grafctory/core/resource | RFC 3987 resource identifiers |
| @grafctory/core/language | BCP 47 tags, RFC 4647 ranges, language detection and language maps |
| @grafctory/core/datatype | XSD 1.1 datatype identifiers |
| @grafctory/core/base64 | RFC 4648 base64 encoders and decoders |
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
Grafctory™ is a trademark of Metreeca srl.