silvery 0.5.0 → 0.7.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 +7 -8
- package/package.json +2 -1
- package/src/ui/cli.ts +1 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Ink-compatible React renderer for terminals — same `Box`, `Text`, `useInput` API you know. Plus everything you wish Ink had.
|
|
6
6
|
|
|
7
|
-
> **
|
|
7
|
+
> **Work in progress.** APIs may change. Feedback welcome.
|
|
8
8
|
|
|
9
9
|
```console
|
|
10
10
|
$ npm install silvery react
|
|
@@ -46,17 +46,16 @@ await render(<Counter />).run()
|
|
|
46
46
|
- **Theme system** — 38 palettes, semantic design/color tokens (`$primary`, `$error`), auto-detects terminal colors
|
|
47
47
|
- **30+ components** — TextInput, TextArea, SelectList, VirtualList, Table, Tabs, CommandPalette, ModalDialog, Toast, and more
|
|
48
48
|
- **Focus system** — scoped focus, arrow-key directional nav, click-to-focus
|
|
49
|
-
- **Extremely composable** — use as just a renderer (`render`), add a runtime (`run`), or build full apps
|
|
49
|
+
- **Extremely composable** — use as just a renderer (`render`), add a runtime (`run`), or build full apps with any React state library (useState, Zustand, Jotai, Redux). Swap terminal backends (real TTY, headless, xterm.js emulator) for testing. Embed silvery components in existing CLIs. Use the layout engine standalone. Render to terminal, or (experimental) Canvas, or DOM
|
|
50
50
|
- **Most complete terminal protocol support** — 100+ escape sequences, all auto-negotiated: 12 OSC (hyperlinks, clipboard, palette, text sizing, semantic prompts, notifications), 35+ CSI (cursor, mouse modes, paste, focus, sync output, device queries), 50+ SGR (6 underline styles, underline colors, truecolor, 256-color), full Kitty keyboard (5 flags), full SGR mouse (any-event, drag, wheel)
|
|
51
51
|
|
|
52
52
|
## Packages
|
|
53
53
|
|
|
54
|
-
| Package
|
|
55
|
-
|
|
|
56
|
-
| [`silvery`](https://github.com/beorn/silvery)
|
|
57
|
-
| [`@silvery/test`](https://github.com/beorn/silvery/tree/main/packages/test)
|
|
58
|
-
| [`@silvery/ink`](https://github.com/beorn/silvery/tree/main/packages/ink)
|
|
59
|
-
| [`@silvery/create`](https://github.com/beorn/silvery/tree/main/packages/create) | App composition, state management, and TEA architecture |
|
|
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 |
|
|
60
59
|
|
|
61
60
|
## Ecosystem
|
|
62
61
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "silvery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.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",
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
"compat:chalk": "bun packages/ink/scripts/compat-check.ts chalk"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
+
"@silvery/commander": "workspace:*",
|
|
79
80
|
"chalk": "^5.6.2",
|
|
80
81
|
"loggily": "github:beorn/loggily",
|
|
81
82
|
"react-reconciler": "^0.33.0",
|
package/src/ui/cli.ts
CHANGED