rescript-poly-core is the foundational library for the Hyperpolymath ReScript Full Stack ecosystem. It provides core utilities for error handling, async operations, logging, configuration, and MCP (Model Context Protocol) infrastructure.
Extended Result type for robust error handling:
open PolyCore
let result = Ok(42)->Result.map(x => x * 2)Promise utilities with retry, timeout, and concurrency control:
let data = await Async.retry(
~config={maxAttempts: 5, initialDelayMs: 1000},
() => fetchData()
)Structured JSON logging:
let logger = Logger.make(~config={minLevel: Logger.Debug})
logger->Logger.info("Server started")src/
├── Core/ # Core utilities
├── MCP/ # MCP infrastructure
├── PolyCore.res # Main entry point
tests/ # Test suite
docs/ # Extended documentationThis project is licensed under: - AGPL-3.0-or-later - MIT - Palimpsest v0.4