@tty-pt/hyle-bud
v1.1.1
Published
Universal Node.js and Browser bindings for libhyle-bud Schema-to-Bud UI Bridge
Maintainers
Readme
@tty-pt/hyle-bud
Universal Node.js and Browser bindings for
libhyle-bud, the schema-to-bud row and filter binding interface.
1. Quickstart
npm install @tty-pt/hyle-budimport { bindSchemaTable } from "@tty-pt/hyle-bud";
const schema = [
{ key: "title", label: "Song Title" },
{ key: "year", label: "Year" }
];
const binding = bindSchemaTable(schema, [{ title: "Ave Maria", year: 1985 }]);
console.log(binding.headers);2. JavaScript / TypeScript API Reference
bindSchemaTable(schemaFields: FieldDescriptor[], rows: Record<string, any>[]): TableBinding
Binds canonical Hyle schema definitions (hyle_schema_desc_t) into tabular presentation data suitable for Bud table rendering.
schemaFields: Array of schema field definitions withkey/nameandlabel.rows: Raw array of record objects.- Returns
{ headers: Array<{ key: string, label: string }>, rows: Array<Record<string, string>> }.
version(): string
Returns the library semantic version string.
3. C Development Headers via NPM
CFLAGS += -I./node_modules/@tty-pt/hyle-bud/include
LDLIBS += -lhyle-budLicense
BSD 2-Clause License. Copyright (c) 2026, tty-pt.
