bilig

Public APIs

Current state

Stable packages

@bilig/headless is the current external npm adoption path. The other package surfaces listed here are stable repository package boundaries; not every package name is provisioned on npm yet. In particular, @bilig/excel-import is still a repository package until its npm package name is configured.

Workbook DSL

@bilig/renderer keeps the declarative workbook DSL unchanged:

Core engine surface

The canonical engine surface includes:

WorkPaper surface

@bilig/headless exposes WorkPaper, a HyperFormula-style headless workbook API on top of @bilig/core:

WorkPaper is the canonical top-level contract.

Excel Import Surface

@bilig/excel-import exposes the repository CSV/XLSX boundary for WorkPaper consumers. It is not yet published as an npm package:

Use importXlsx(...).snapshot with WorkPaper.buildFromSnapshot() when a consumer needs Excel workbook metadata such as defined names, tables, and translated structured references. WorkPaper.buildFromSheets() remains a metadata-free array/sheet constructor.

Core types added in the current tranche

Binary protocol

@bilig/binary-protocol exposes:

The current frame families are:

The protocol surface is already real for sync and snapshot traffic. The remaining architecture gap is not “do we have binary frames?” but “does the authoritative workbook mutation language fully match what the local engine can represent?”

Worker transport

@bilig/worker-transport exposes:

The first tranche already supports:

Target state

Exit gate

Agent API

@bilig/agent-api exposes:

Today the package defines typed TypeScript request/response/event unions, but the transport payload is still serialized with JSON.stringify(...) inside the binary frame envelope. The target state is a true typed binary schema shared by stdio and remote network usage.