silvery 0.4.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,11 +33,11 @@ await render(<Counter />).run()
33
33
 
34
34
  - **React 18 + 19** — hooks, refs, effects, suspense — all works
35
35
  - **Flexbox layout** — `Box` with `flexDirection`, `padding`, `gap`, `flexGrow`, just like Ink
36
- - **Ink/Chalk compatible** — same component model, `@silvery/ink` compatibility layer for migration
36
+ - **Ink/Chalk compatible** — same component model, [`@silvery/ink`](https://github.com/beorn/silvery/tree/main/packages/ink) compatibility layer for migrating existing Ink applications
37
37
 
38
38
  ### Better
39
39
 
40
- - **Smaller install** — ~177 KB gzipped all included (Ink 6 pulls 16MB into node_modules)
40
+ - **Smaller install** — <500 KB gzipped (Ink 6 pulls 16MB into node_modules)
41
41
  - **Pure TypeScript, zero native deps** — no WASM, no build steps — works on Alpine, CI, Docker, everywhere
42
42
  - **Incremental rendering** — per-node dirty tracking, [~100x faster interactive updates](tests/perf/render.bench.ts)
43
43
  - **Responsive layout** — `useContentRect()` returns actual dimensions synchronously during render
@@ -51,12 +51,12 @@ await render(<Counter />).run()
51
51
 
52
52
  ## Packages
53
53
 
54
- | Package | Description |
55
- | --------------- | ------------------------------------------------------------------------------------------ |
56
- | `silvery` | Components, hooks, renderer — the one package you need |
57
- | `@silvery/test` | Testing utilities and locators |
58
- | `@silvery/ink` | Ink compatibility layer |
59
- | `@silvery/tea` | Optional [TEA](https://guide.elm-lang.org/architecture/) state management for complex apps |
54
+ | Package | Description |
55
+ | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
56
+ | [`silvery`](https://github.com/beorn/silvery) | Components, hooks, renderer — the one package you need |
57
+ | [`@silvery/test`](https://github.com/beorn/silvery/tree/main/packages/test) | Testing utilities and locators |
58
+ | [`@silvery/ink`](https://github.com/beorn/silvery/tree/main/packages/ink) | Ink compatibility layer — migrate existing Ink apps with minimal changes |
59
+ | [`@silvery/create`](https://github.com/beorn/silvery/tree/main/packages/create) | App composition, state management, and TEA architecture |
60
60
 
61
61
  ## Ecosystem
62
62
 
@@ -65,12 +65,13 @@ await render(<Counter />).run()
65
65
  | [Termless](https://termless.dev) | Headless terminal testing — like Playwright for terminal apps |
66
66
  | [Flexily](https://beorn.github.io/flexily) | Pure JS flexbox layout engine (Yoga-compatible, zero WASM) |
67
67
  | [Loggily](https://beorn.github.io/loggily) | Debug + structured logging + tracing |
68
+ | [terminfo.dev](https://terminfo.dev) | Terminal feature support database, powered by Termless |
68
69
 
69
70
  ## Coming
70
71
 
71
72
  - **Renderers** — Canvas 2D, Web DOM (experimental today, production later)
72
73
  - **Frameworks** — Svelte, Solid.js, Vue adapters
73
- - **@silvery/tea** — Structured state management with commands, keybindings, effects-as-data
74
+ - **@silvery/create** — Structured state management with commands, keybindings, effects-as-data
74
75
 
75
76
  **Runtimes:** Bun >= 1.0 and Node.js >= 18. CLI (`silvery` command) requires Bun.
76
77
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "silvery",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "React terminal UI renderer for complex interactive apps — layout-aware rendering, flexbox, scrolling, and incremental updates",
5
5
  "keywords": [
6
6
  "ansi",
@@ -69,9 +69,6 @@
69
69
  "docs:dev": "vitepress dev docs",
70
70
  "docs:build": "vitepress build docs",
71
71
  "docs:preview": "vitepress preview docs",
72
- "changeset": "changeset",
73
- "version": "changeset version",
74
- "release": "changeset publish",
75
72
  "theme": "bun packages/theme/src/cli.ts",
76
73
  "demo": "bun examples/cli.ts",
77
74
  "compat": "bun packages/ink/scripts/compat-check.ts",
@@ -87,7 +84,6 @@
87
84
  "zustand": "^5.0.11"
88
85
  },
89
86
  "devDependencies": {
90
- "@changesets/cli": "^2.27.0",
91
87
  "@types/bun": "^1.1.0",
92
88
  "@types/react": "^19.0.0",
93
89
  "@xterm/addon-fit": "^0.11.0",
package/src/index.ts CHANGED
@@ -7,8 +7,9 @@ export const VERSION = "0.0.1"
7
7
  export * from "@silvery/ag-react"
8
8
 
9
9
  import type { ReactElement } from "react"
10
- import { render as reactRender, type RenderOptions, type TermDef } from "@silvery/ag-react"
10
+ import { render as reactRender, type RenderOptions } from "@silvery/ag-react"
11
11
  import type { Term } from "@silvery/ag-react"
12
+ import type { TermDef } from "@silvery/ag/types"
12
13
 
13
14
  /**
14
15
  * Render a React element to the terminal.