Skip to content

Nacre

The shell client for hosting Apps: windows, commands, keys and the App directory.

  • @fungi.computer/nacre
  • v0.1.0
  • MIT

Fastest path

  1. Install

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

    TERMINAL
    npm install @fungi.computer/nacre
  2. Open a window

    Create a window manager over your own mount adapter and open one window.

    home.ts
    import { createWindowManager } from "@fungi.computer/nacre";
    const windows = createWindowManager({
    createContainer: () => ({}),
    mount: () => ({
    setVisibility: () => undefined,
    reconfigure: () => undefined,
    dispose: () => undefined,
    }),
    });
    await windows.open({ windowId: "notes" });
    console.log(windows.read().windows[0]?.status); // ready