Zig Add-ons for JavaScript and TypeScript: Node-API C Layers, Build Scripts, and `.node` Outputs
A practical two-hour session on Zig Add-ons for JavaScript and TypeScript, focused on Node-API C Layers, Build Scripts, and .node Outputs. The session treats Zig as a native component exposed through C-compatible boundaries, with attention to exported symbols, allocators, packaging, host-runtime tests, and failure handling.
Description
section.descriptionA practical two-hour session on Zig Add-ons for JavaScript and TypeScript, focused on Node-API C Layers, Build Scripts, and .node Outputs. The session treats Zig as a native component exposed through C-compatible boundaries, with attention to exported symbols, allocators, packaging, host-runtime tests, and failure handling.
Audience: entry-level and intermediate developers who want a practical engineering session, not a language tour.
Outcomes:
- Explain the practical boundaries of Zig Add-ons for JavaScript and TypeScript
- Apply Node-API C Layers in a small working example
- Apply Build Scripts in a small working example
- Apply and .node Outputs in a small working example
Format: two hours with a short framing walkthrough, a concrete example, discussion of tradeoffs, and a closing checklist for practice.