
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@bilig/workpaper
Advanced tools
Scoped Bilig WorkPaper runtime for Node.js services, agent tools, and server-side spreadsheet formulas.
Scoped Bilig WorkPaper runtime for Node.js services, agent tools, and server-side spreadsheet formulas.
Use this when business logic is easiest to review as workbook cells and formulas, but the calculation needs to run in a backend service, queue worker, serverless route, test, or coding-agent tool.
@bilig/workpaper is the canonical scoped npm entrypoint. The unscoped
bilig-workpaper package remains published as a compatibility and search alias.
npm install @bilig/workpaper
import { WorkPaper } from '@bilig/workpaper'
const workbook = WorkPaper.buildFromSheets({
Inputs: [
['Metric', 'Value'],
['Units', 40],
['Price', 1200],
],
Summary: [
['Metric', 'Value'],
['Revenue', '=Inputs!B2*Inputs!B3'],
],
})
const inputs = workbook.getSheetId('Inputs')
const summary = workbook.getSheetId('Summary')
if (inputs === undefined || summary === undefined) {
throw new Error('Expected sheets to exist')
}
workbook.setCellContents({ sheet: inputs, row: 1, col: 1 }, 48)
workbook.setCellContents({ sheet: inputs, row: 2, col: 1 }, 1500)
console.log(workbook.getCellValue({ sheet: summary, row: 1, col: 1 }))
console.log(workbook.exportSnapshot())
workbook.dispose()
The package ships proof commands for coding agents and service evaluators:
npm exec --package @bilig/workpaper -- bilig-agent-challenge
npm exec --package @bilig/workpaper -- bilig-mcp-challenge
npm exec --package @bilig/workpaper -- bilig-workpaper-mcp --workpaper ./pricing.workpaper.json --init-demo-workpaper --writable
The challenge commands edit one input, recalculate dependent formulas, export
WorkPaper JSON, restore it, and print a verified: true proof object.
import { WorkPaper } from '@bilig/workpaper'
import { exportXlsx, importXlsx } from '@bilig/workpaper/xlsx'
Use @bilig/xlsx-formula-recalc when you only need to edit and recalculate
XLSX files. Use @bilig/exceljs-formula-recalc when you already use ExcelJS
and need recalculated formula results after changing inputs.
The npm tarball exposes the same CLI entrypoints as @bilig/headless, so agents
can install one focused package and still get the MCP stdio server:
import { createWorkPaperMcpServer } from '@bilig/workpaper/mcp'
For a runnable starter project with AGENTS.md, MCP client config, and an
agent:verify script:
npm create @bilig/workpaper@latest pricing-agent -- --agent
Bilig is not a desktop Excel clone. It is a formula workbook runtime for service-owned calculations, JSON persistence, XLSX import/export, and agent-readable readback. Unsupported Excel functions, external workbook links, macros, and volatile functions may need review.
Full docs: https://proompteng.github.io/bilig/
FAQs
Run workbook-shaped business rules in Node services: edit inputs, recalculate formulas, read outputs, and save WorkPaper JSON.
The npm package @bilig/workpaper receives a total of 235 weekly downloads. As such, @bilig/workpaper popularity was classified as not popular.
We found that @bilig/workpaper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.