Skip to content

Gills

Plain-text App views shared by browser and terminal hosts.

  • @fungi.computer/gills
  • v0.2.0
  • MIT

Fastest path

  1. Install

    Add it to your project with npm, pnpm, Yarn or Bun.

    TERMINAL
    npm install @fungi.computer/gills
  2. Decode a row page

    Decode a row page and a bounded request through the shared schemas.

    home.ts
    import * as Schema from "effect/Schema";
    import { rowPageSchemaV1, gillRequestSchema } from "@fungi.computer/gills";
    const rows = Schema.decodeUnknownSync(rowPageSchemaV1)([
    { id: "session-a", title: "Review the draft", tone: "attention" },
    ]);
    const request = Schema.decodeUnknownSync(gillRequestSchema, {
    onExcessProperty: "error",
    })({ viewId: "inbox" });
    console.log(rows[0]?.title, request.viewId);