The grammar-tools-core package (available as grammar-tools-core via pnpm --filter) is a framework-agnostic TypeScript package that wraps packages/actionGrammar. It provides a complete service surface for grammar-related tasks, including loading, diagnostics, symbol indexing, formatting, completion previews, match tracing, coverage reporting, and structural diffing.
It is designed to serve as a stable API contract that can be used across various transports, such as VS Code webviews, web applications (via HTTP/WebSocket), shell IPC, or in-process calls.