Skip to content

@kehto/wm

Structural window-management contracts for consumer-owned layout strategies.

Alpha status: These shell-owned contracts are experimental. They are not a NAP and may change as Kehto and other runtime implementations evolve.

Install

bash
pnpm add @kehto/wm

Manifest Facts

FieldValue
Sourcepackages/wm/package.json, packages/wm/src/index.ts
Version0.0.1
Runtime entry./src/index.ts
Types entry./src/index.ts
Filessrc, README.md
Side effectsfalse

Peer Dependencies

None.

Primary APIs

AreaExports
Base typesWindowId, WorkspaceId, Rect
Layout contractsWindowState, WindowPlacement, LayoutStrategy
Host hooksWmHostHooks
ServiceWmService, createWmService

Scope Boundaries

  • Provides contracts and a no-op default strategy so hosts can wire window-management state without choosing an algorithm up front.
  • Does not ship BSP, master-stack, floating, or other concrete layout algorithms.
  • Does not expose a NAP domain; window management is shell-internal state.

API Reference