{"_id":"@alchemy.run/sigil","_rev":"18-430a076cc1018fe8683aa3566c3b0da7","name":"@alchemy.run/sigil","dist-tags":{"alpha":"0.0.0-alpha.7","next":"0.1.0-alpha.1","latest":"0.1.0-alpha.4"},"versions":{"0.0.0-alpha.1":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.1","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.1","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"a971b4e067a397ee0a7300483e71e0c93a1dd322","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.1.tgz","fileCount":7,"integrity":"sha512-dJ/GWyLsXL85/YLmJRNvWTCzdUtgSRkEjXp3/2kFt75mKxKXSaMq3FnPdQDFVLSuE7Akf96woYhleZuIA19D7g==","signatures":[{"sig":"MEUCIQDtTSLXUBWcWW36X0Fs8IpgYVpLKegramvQkd+3h8/ZuwIgQJtnzgMMJbti9Eh3t9sLxMand2Bk4+DCKW6EXxKB+us=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":555274},"type":"module","engines":{"node":">=22"},"exports":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"scripts":{"dev":"vp pack -w","fuzz":"NODE_NO_WARNINGS=1 node --import=tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","example":"NODE_NO_WARNINGS=1 node --import=tsx","inspect":"vp dlx react-devtools","benchmark":"NODE_NO_WARNINGS=1 node --import=tsx","fuzz:loop":"vp run build:reference && NODE_NO_WARNINGS=1 node --import=tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit","build:reference":"NODE_NO_WARNINGS=1 node --import=tsx scripts/build-reference.ts","fuzz:differential":"vp run build:reference && NODE_NO_WARNINGS=1 node --import=tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ws":"^8.20.0","tsx":"^4.21.0","boxen":"^8.0.1","react":"^19.2.4","vitest":"4.1.10","node-pty":"^1.2.0-beta.12","@types/ws":"^8.18.1","vite-plus":"^0.2.9","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.14","react-router":"^7.14.0","@types/scheduler":"^0.26.0","react-devtools-core":"^7.0.1","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"ws":">=8.20.0","react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"ws":{"optional":true},"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.1_1787330368360_0.8253132175571216","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.2":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.2","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.2","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"9c20a76874cf8d1b2c8a2b5d9e94c83b86e760b0","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.2.tgz","fileCount":121,"integrity":"sha512-5nMpQ01TT+P1/fOlLjUoDatL55I404TJj5+adn9ZGXi3Vl8we0xfUdRXb/hA08cq3SuRozKCu4vEb3w9uqH2YA==","signatures":[{"sig":"MEYCIQDF/EPbl7GudGRvpNdPd4tB8l601glndEaCUvOD/nP/5wIhALhGrWhug9rrWkNWC+Djed8naQXAlwm2AajH6srPAetf","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1200738},"type":"module","engines":{"node":">=22"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","typescript":"./src/index.ts"},"./ansi":{"bun":"./src/ansi/index.ts","types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js","typescript":"./src/ansi/index.ts"},"./yoga":{"bun":"./src/yoga/index.ts","types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js","typescript":"./src/yoga/index.ts"}},"imports":{"#/":"./src"},"scripts":{"dev":"vp pack -w","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ws":"^8.20.0","tsx":"^4.21.0","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","@types/ws":"^8.18.1","vite-plus":"^0.2.9","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","react-router":"^8.3.0","@types/scheduler":"^0.26.0","react-devtools-core":"^7.0.1","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"ws":">=8.20.0","react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"ws":{"optional":true},"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.2_1787401700460_0.13006193497591267","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.3":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.3","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.3","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"3ee99dc4fdc49ea6ffc1508c97d63ad5d49fc4ad","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.3.tgz","fileCount":121,"integrity":"sha512-F+pBZ0B+ekbQzSh+6pGsTHUWQ2BaFeVBiSZd7cNT74M+Bc9AId+YiHzKyZwxHY+zNsgqxa9oBOyCtNHlBDPcRQ==","signatures":[{"sig":"MEYCIQCT+9IuZGemvPyHHC6KjrlRNBqgrBsC87HAlJhZ2+ZxlgIhAIpRZE1oa6Km7G7CWCBi02wMbZ6oqHUHlT0UMrylG6X/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1201338},"type":"module","engines":{"node":">=22"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","typescript":"./src/index.ts"},"./ansi":{"bun":"./src/ansi/index.ts","types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js","typescript":"./src/ansi/index.ts"},"./yoga":{"bun":"./src/yoga/index.ts","types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js","typescript":"./src/yoga/index.ts"}},"imports":{"#/":"./src"},"scripts":{"dev":"vp pack -w","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ws":"^8.20.0","tsx":"^4.21.0","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","@types/ws":"^8.18.1","vite-plus":"^0.2.9","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","react-router":"^8.3.0","@types/scheduler":"^0.26.0","react-devtools-core":"^7.0.1","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"ws":">=8.20.0","react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"ws":{"optional":true},"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.3_1787407021797_0.013285313054830272","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.4":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.4","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.4","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"57e24191a5f8f5c5710f3920bc5bc8be83dbade3","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.4.tgz","fileCount":116,"integrity":"sha512-vfWUwQqeK6RBeWFMXuUzU4v9LPAd1wlY7d580R/btURGT4F3SNw0kLF8SVHWAU04tzvynQWwq4d1tj2ULCqeoQ==","signatures":[{"sig":"MEUCIFflolViVeLJZK66DPEDqRzet6lQAC/yO/+PAbaMBMZFAiEA2ea6Dw+DDv5l/NDc/Vx5opcL3cbJfQG3rhwstZuR/1E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1171124},"type":"module","engines":{"node":">=22"},"exports":{".":{"bun":"./src/index.ts","types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","typescript":"./src/index.ts"},"./ansi":{"bun":"./src/ansi/index.ts","types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js","typescript":"./src/ansi/index.ts"},"./yoga":{"bun":"./src/yoga/index.ts","types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js","typescript":"./src/yoga/index.ts"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","react-router":"^8.3.0","@types/scheduler":"^0.26.0","react-devtools-core":"^7.0.1","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.4_1787430107959_0.2676033381265037","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.5":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.5","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.5","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"df3e9e25dd9754d94b7c67ddf63ee539f6599197","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.5.tgz","fileCount":209,"integrity":"sha512-meY3ccl6PO2Hw4bbhTwmdQHTJJ22b2KXey+U6HDotHGNMeyDi5Vu5d4O44vbqOONNRzpTg8AQCaqXgA5RcuAgw==","signatures":[{"sig":"MEUCIQD3qZLQHSzm2XRnGtuEe3ICF1EyLo71pSbZkqWS55MMJQIgNEDj0qedZXnMCpn04vv3jv4APgT/6Y3HPywSlJ735CY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1597805},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.19.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.5_1787578947912_0.5713738703538158","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.6":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.6","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.6","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"7f079455197c9a3391cd5571b385352f1f39e7f9","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.6.tgz","fileCount":209,"integrity":"sha512-kbFZCNxVv1rIkuJcq23hELB3aF63zZDKMgrBLRzOtVaweAJ2ZCEKfRqC1iWgaUh/J4vERDvFE/tnNiipfwOHyQ==","signatures":[{"sig":"MEUCIQCZ5URSdB/Aq5dyNh0bsgDur+tRzwvVf0gxtXZhEEigQwIgQMvT8f4SY2tapCYqQll+yMZqFFj2M5z5lcyp/GsEZXQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1601911},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.6_1788214474252_0.9594109118320564","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.7":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.7","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.7","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"4dfa887a25a5746c19973ea99b76a13945db5a28","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.7.tgz","fileCount":208,"integrity":"sha512-x/wI/Gtk9yRDsFUlafp50+ya4jdhuFaRHgjGKrf2bg0Mop0yG0n9pbb0CnAkic/B8vwu6oSf1M6W+3DXjAjx9g==","signatures":[{"sig":"MEQCIDRas3VBN6Ljb6E1rPPVHlJCa3QzUjhzQmQGv4Rii0YmAiARxVGtGQXkaOz7Xu0UMhYFOgcd2MgppcuumSoJyQU4Vw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1611526},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.7_1788346363680_0.6292497735253639","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.8":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.8","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.8","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"10fc7bb2cf25293ce6ab6a6757749444fa0640cb","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.8.tgz","fileCount":208,"integrity":"sha512-RFMxcEjgHk9QkUpPhsZTBuV2PnD5vZtVnjHaTiSh4heg/ULSaPx6Lxw4qA/55p4XralAZ3ecXPIzVURcGFPhcw==","signatures":[{"sig":"MEYCIQDfTyNjs5cXkmo8TlkDT8KAlSe0S+KbEriNUJ4mCQ7kWgIhAI0CYF/gKgpho5sFAGaolWe+tLpGCS90+GsJFc1l6Ej3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1611998},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.8_1788377186542_0.24139341623572896","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.9":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.9","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.9","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"34bf164aab455617f590f2fbfa6752a375c01a95","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.9.tgz","fileCount":211,"integrity":"sha512-ws3yQ1WfNxp26S+Dxu/HfZ437gDIO+9aZ8mKhNTyrELIakOL45wfx2swZLnLKNsXqrjk7TNHjNyejIarbjrlNw==","signatures":[{"sig":"MEUCIQDn8Q4HROogQygbrsqVgZtQPRyLYfud2/29TLkHoXLh9AIgSYHKb1kbvj9lccUT5IAIWHgogBNgIMzvHHjmjsgwmZg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1639820},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.9_1788870346056_0.6750629552349934","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.10":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.10","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.10","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"e895cc605ac8653a4038a2924b861007e87622d7","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.10.tgz","fileCount":211,"integrity":"sha512-lsTxOZeJdyJH34leBaECAXomwjtN8fZh2fL8wnkZPOg6dU5gBwkoVZQs8Yd5Gg4X17zbShDq6ctv0VHYrQp3/w==","signatures":[{"sig":"MEUCIDmxn8hWxDEt/R/mhglOcEcueqFR9p4UQRorAQsFXypnAiEAkjQXxLN0ntTPqRo9FUr8F6VAyByuZBTTsRMW3q6SVF8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1644263},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"scheduler":"^0.27.0","react-reconciler":"^0.33.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","react":"^19.2.8","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.2.18","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.26.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^7.0.1","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"react":">=19.2.0","@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.10_1788899222384_0.5846672272848217","host":"s3://npm-registry-packages-npm-production"}},"0.0.0-alpha.11":{"name":"@alchemy.run/sigil","version":"0.0.0-alpha.11","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.0.0-alpha.11","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"a1645c2c46a878fb2dea879199346bd49d4189ef","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.0.0-alpha.11.tgz","fileCount":222,"integrity":"sha512-JzaCBeRu9kY0qWC8JKkrierstImkrK77dl+7l0RvCTR+7uhOJECL2VxmjhJ1blea+mmbYUVob8OXOH5r8Mqfpw==","signatures":[{"sig":"MEYCIQD4b+vfqLAZPyg7yz2yMpYbUVy0OPgcMD+HCqfW8beNnQIhAMvOZz7TwsW1lQXxNqj9TVFNpVyTx68lKh8S/I0te28+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDbxUKgzlDSHzIpeKEH13dplnzN2yeI76n9ujl2g5sP2gIhALySMdIhd89kWf0Bgkf5GlFGk023f4xb0hD0pbkYTs6x","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2761024},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js","default":"./dist/react.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./jsx-runtime":{"types":"./dist/jsx-runtime.d.ts","import":"./dist/jsx-runtime.js","default":"./dist/jsx-runtime.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"},"./jsx-dev-runtime":{"types":"./dist/jsx-dev-runtime.d.ts","import":"./dist/jsx-dev-runtime.js","default":"./dist/jsx-dev-runtime.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"blankparticle","email":"blankparticle@gmail.com"},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"_nodeVersion":"24.21.0","dependencies":{"react":"^19.3.0","scheduler":"^0.28.0","react-reconciler":"^0.34.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vite":"npm:@voidzero-dev/vite-plus-core@^0.2.9","vitest":"4.1.11","zigpty":"^0.2.1","vite-plus":"^0.2.9","@vitest/ui":"^4.1.11","typescript":"^7.0.2","@types/node":"^25.5.2","@types/react":"^19.3.0","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.28.0","@xterm/addon-fit":"^0.11.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^8.0.0","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.0.0-alpha.11_1789385136031_0.534767880556156","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.1":{"name":"@alchemy.run/sigil","version":"0.1.0-alpha.1","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.1.0-alpha.1","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"ea2ee78230344067f9bc249c8bde1457bc0c23a8","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.1.0-alpha.1.tgz","fileCount":223,"integrity":"sha512-RtHELG2w+GluVewRsuKm66idtPzC+4STptMr/61X1Vy5uBkDzcCzjzV8G6jUa4iBv6Il0hHV7UL6wvv//9nD/Q==","signatures":[{"sig":"MEUCIG4DZVj+kvuEo2rMkOjIbsFJrw6AtlJ3gQ6PDLBR96euAiEA7NC+IONOuLfgENGVSLDStB2fml6QIMyu7OoIblUGlrQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDTkdrjvTZYe3F7Awm4C57wGJRssdhd/L1MWcT9TMdAfQIgOBuGHzj+zuYw+TgrLCbjwzKFtTMeJApJXapjQ1oW3hw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alchemy.run%2fsigil@0.1.0-alpha.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2062678},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","default":"./dist/color.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js","default":"./dist/react.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","default":"./dist/terminal.js"},"./jsx-runtime":{"types":"./dist/jsx-runtime.d.ts","import":"./dist/jsx-runtime.js","default":"./dist/jsx-runtime.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","default":"./dist/capabilities.js"},"./jsx-dev-runtime":{"types":"./dist/jsx-dev-runtime.d.ts","import":"./dist/jsx-dev-runtime.js","default":"./dist/jsx-dev-runtime.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test test/e2e.test.ts","fuzz":"tsx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","explorer":"node --import=tsx scripts/explorer.ts","fuzz:loop":"vpr build:reference && tsx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json","bench:terminal":"tsx benchmark/terminal-core.tsx --check","build:reference":"tsx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && tsx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:734c078b-ca15-4a96-9b46-195b6ab8309e"}},"repository":{"url":"alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.23.13","vite":"npm:@voidzero-dev/vite-plus-core@^0.3.2","react":"^19.3.0","vitest":"4.1.11","zigpty":"^0.2.1","scheduler":"^0.28.0","vite-plus":"^0.3.2","@vitest/ui":"^5.0.1","typescript":"^7.0.2","@types/node":"^26.6.1","@types/react":"^19.3.0","@xterm/xterm":"^6.0.0","@xterm/headless":"^6.0.0","@types/scheduler":"^0.28.0","@xterm/addon-fit":"^0.11.0","react-reconciler":"^0.34.0","@xterm/addon-image":"^0.9.0","@xterm/addon-webgl":"^0.19.0","react-devtools-core":"^8.0.0","@slopus/ghostty-wasm":"^1.3.6","@xterm/addon-clipboard":"^0.2.0","@xterm/addon-unicode11":"^0.9.0","@xterm/addon-web-links":"^0.12.0","@types/react-reconciler":"^0.33.0"},"peerDependencies":{"@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.1.0-alpha.1_1789728771152_0.020210594164208784","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.2":{"name":"@alchemy.run/sigil","version":"0.1.0-alpha.2","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.1.0-alpha.2","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"4a377449cd5131c63b64438058ebda33bd4d3f63","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.1.0-alpha.2.tgz","fileCount":211,"integrity":"sha512-FjTWpPr8/61yMFLyylwFfBtNXLkSWOADcS9QA9byZfQRGRif59az2VP9vS6zx4Rp6jayBZtv5KO5OtiraRds0g==","signatures":[{"sig":"MEUCIQDiuxWZ1X1ciMrbLyfgN1OD52UfCK20ji2efW3SxDJVpwIgeRxhEi4tnzneOnwfhza0EZfLf0ACZy5fXJLrB2Ets3o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDzYs/X2NAuhx1tFRyGz/YRqRgvmBxNiZiXxLrtg83zAAIhAMf9Qj2M0YFHsP30FzRrjsa38lQaMxgSWhDdP2WZosgC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alchemy.run%2fsigil@0.1.0-alpha.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2117815},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","source":"./src/ansi/index.ts","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","source":"./src/yoga/index.ts","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","source":"./src/color/index.ts","default":"./dist/color.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js","source":"./src/react.ts","default":"./dist/react.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","source":"./src/router/index.ts","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","source":"./src/screen/index.ts","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","source":"./src/terminal/index.ts","default":"./dist/terminal.js"},"./jsx-runtime":{"types":"./dist/jsx-runtime.d.ts","import":"./dist/jsx-runtime.js","source":"./src/jsx-runtime.ts","default":"./dist/jsx-runtime.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","source":"./src/capabilities/index.ts","default":"./dist/capabilities.js"},"./jsx-dev-runtime":{"types":"./dist/jsx-dev-runtime.d.ts","import":"./dist/jsx-dev-runtime.js","source":"./src/jsx-dev-runtime.ts","default":"./dist/jsx-dev-runtime.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test integration/test/e2e.test.ts","fuzz":"vpx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && vpx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json && tsc --noEmit -p integration/tsconfig.json && tsc --noEmit -p integration/test/tsconfig.json","bench:terminal":"vpx benchmark/terminal-core.tsx --check","build:reference":"vpx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && vpx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"734c078b-ca15-4a96-9b46-195b6ab8309e"}},"repository":{"url":"https://github.com/alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"npm:@voidzero-dev/vite-plus-core@^1.4.0","react":"^19.3.1","vitest":"5.0.5","scheduler":"^0.28.0","vite-plus":"^1.4.0","@vitest/ui":"^5.0.5","typescript":"^7.0.2","@types/node":"^26.6.6","@types/react":"^19.3.0","@types/scheduler":"^0.28.0","react-reconciler":"^0.34.0","react-devtools-core":"^8.0.0","@types/react-reconciler":"^0.34.1"},"peerDependencies":{"@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.1.0-alpha.2_1793454204289_0.8141123122568054","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.3":{"name":"@alchemy.run/sigil","version":"0.1.0-alpha.3","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","_id":"@alchemy.run/sigil@0.1.0-alpha.3","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"dist":{"shasum":"8b851602e4dfebd08b63dbca74501dcf55ad31e5","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.1.0-alpha.3.tgz","fileCount":211,"integrity":"sha512-NBhQRjbeFp4jPYDGqlXSoUlT45QyNc/6DGQWmkXUnS9nHKjHa5eIRZChdnCDYHYvmgFJWNaRfPFGwxrCWmlLzw==","signatures":[{"sig":"MEYCIQD1C6Dv1PfHXOcgpmvsBq/+T4tNUg732G3Z5lIxoa/6sAIhAJU6G9vSrRAhTU9vUTxab8cNhuO1bjgXjkSlHu5fC2Pi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIQDIbTj5M/eyi43cFQ/3twPyLG8Y1xSbja+xYCHTErHE0AIgFywqQtm/rSMil9BUNoDPOfON4/v0ux2RFQM3KQa0QVc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alchemy.run%2fsigil@0.1.0-alpha.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2118396},"type":"module","engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","source":"./src/ansi/index.ts","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","source":"./src/yoga/index.ts","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","source":"./src/color/index.ts","default":"./dist/color.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js","source":"./src/react.ts","default":"./dist/react.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","source":"./src/router/index.ts","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","source":"./src/screen/index.ts","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","source":"./src/terminal/index.ts","default":"./dist/terminal.js"},"./jsx-runtime":{"types":"./dist/jsx-runtime.d.ts","import":"./dist/jsx-runtime.js","source":"./src/jsx-runtime.ts","default":"./dist/jsx-runtime.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","source":"./src/capabilities/index.ts","default":"./dist/capabilities.js"},"./jsx-dev-runtime":{"types":"./dist/jsx-dev-runtime.d.ts","import":"./dist/jsx-dev-runtime.js","source":"./src/jsx-dev-runtime.ts","default":"./dist/jsx-dev-runtime.js"}},"imports":{"#/*":"./src/*"},"scripts":{"dev":"vp pack -w","e2e":"vp test integration/test/e2e.test.ts","fuzz":"vpx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && vpx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json && tsc --noEmit -p integration/tsconfig.json && tsc --noEmit -p integration/test/tsconfig.json","bench:terminal":"vpx benchmark/terminal-core.tsx --check","build:reference":"vpx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && vpx test/yoga/fuzz/differential.ts"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"734c078b-ca15-4a96-9b46-195b6ab8309e"}},"repository":{"url":"https://github.com/alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"npm:@voidzero-dev/vite-plus-core@^1.4.0","react":"^19.3.1","vitest":"5.0.5","scheduler":"^0.28.0","vite-plus":"^1.4.0","@vitest/ui":"^5.0.5","typescript":"^7.0.2","@types/node":"^26.6.6","@types/react":"^19.3.0","@types/scheduler":"^0.28.0","react-reconciler":"^0.34.0","react-devtools-core":"^8.0.0","@types/react-reconciler":"^0.34.1"},"peerDependencies":{"@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sigil_0.1.0-alpha.3_1793457061557_0.688428716064033","host":"s3://npm-registry-packages-npm-production"}},"0.1.0-alpha.4":{"_id":"@alchemy.run/sigil@0.1.0-alpha.4","dist":{"shasum":"2fd609d2ab7a85c20bf10903bb1179e74d7f2e9d","tarball":"https://registry.npmjs.org/@alchemy.run/sigil/-/sigil-0.1.0-alpha.4.tgz","fileCount":211,"integrity":"sha512-d6Uo16C2P6Wk7TNoYt4qzjjNGyjsrJLjq8bBotl86Nmcp/U6+R34/n4CZomqFERF2wMinut2DBqWNeUQPTBtFQ==","signatures":[{"sig":"MEUCIE93QS1F0FuiGw6AahKz4hNMHaftOe8mIzmF7MnjBFn/AiEAhedffhkmTTiD8JLhlmMS7wiU51gN2vLsUDVS5f+gC1g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFwsXxEqa9Bo77wcCR+quEL43/1iJhBQftAcRnjVxZshAiEAskaNSL7HPjWDn9Jbi745T8xCwSMfIIXe0LyzTJIYVj4="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@alchemy.run%2fsigil@0.1.0-alpha.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":2118667},"name":"@alchemy.run/sigil","type":"module","author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"engines":{"node":">=22"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","source":"./src/index.ts","default":"./dist/index.js"},"./ansi":{"types":"./dist/ansi.d.ts","import":"./dist/ansi.js","source":"./src/ansi/index.ts","default":"./dist/ansi.js"},"./yoga":{"types":"./dist/yoga.d.ts","import":"./dist/yoga.js","source":"./src/yoga/index.ts","default":"./dist/yoga.js"},"./color":{"types":"./dist/color.d.ts","import":"./dist/color.js","source":"./src/color/index.ts","default":"./dist/color.js"},"./react":{"types":"./dist/react.d.ts","import":"./dist/react.js","source":"./src/react.ts","default":"./dist/react.js"},"./router":{"types":"./dist/router.d.ts","import":"./dist/router.js","source":"./src/router/index.ts","default":"./dist/router.js"},"./screen":{"types":"./dist/screen.d.ts","import":"./dist/screen.js","source":"./src/screen/index.ts","default":"./dist/screen.js"},"./terminal":{"types":"./dist/terminal.d.ts","import":"./dist/terminal.js","source":"./src/terminal/index.ts","default":"./dist/terminal.js"},"./jsx-runtime":{"types":"./dist/jsx-runtime.d.ts","import":"./dist/jsx-runtime.js","source":"./src/jsx-runtime.ts","default":"./dist/jsx-runtime.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js","source":"./src/capabilities/index.ts","default":"./dist/capabilities.js"},"./jsx-dev-runtime":{"types":"./dist/jsx-dev-runtime.d.ts","import":"./dist/jsx-dev-runtime.js","source":"./src/jsx-dev-runtime.ts","default":"./dist/jsx-dev-runtime.js"}},"imports":{"#/*":"./src/*"},"license":"MIT","scripts":{"dev":"vp pack -w","e2e":"vp test integration/test/e2e.test.ts","fuzz":"vpx test/yoga/fuzz/typescript.ts","lint":"vp lint","test":"vp test","build":"vp pack","check":"vp check","format":"vp fmt .","inspect":"vpx react-devtools","fuzz:loop":"vpr build:reference && vpx test/yoga/fuzz/loop.ts","typecheck":"tsc --noEmit && tsc --noEmit -p test/contracts/tsconfig.json && tsc --noEmit -p integration/tsconfig.json && tsc --noEmit -p integration/test/tsconfig.json","bench:terminal":"vpx benchmark/terminal-core.tsx --check","build:reference":"vpx scripts/build-reference.ts","fuzz:differential":"vpr build:reference && vpx test/yoga/fuzz/differential.ts"},"version":"0.1.0-alpha.4","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"734c078b-ca15-4a96-9b46-195b6ab8309e"}},"keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"repository":{"url":"https://github.com/alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","directories":{},"maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vite":"npm:@voidzero-dev/vite-plus-core@^1.4.0","react":"^19.3.1","vitest":"5.0.5","scheduler":"^0.28.0","vite-plus":"^1.4.0","@vitest/ui":"^5.0.5","typescript":"^7.0.2","@types/node":"^26.6.6","@types/react":"^19.3.0","@types/scheduler":"^0.28.0","react-reconciler":"^0.34.0","react-devtools-core":"^8.0.0","@types/react-reconciler":"^0.34.1"},"peerDependencies":{"@types/react":">=19.2.0","react-devtools-core":">=6.1.2"},"peerDependenciesMeta":{"@types/react":{"optional":true},"react-devtools-core":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sigil_0.1.0-alpha.4_1794506985572_0.8854362315926846"}}},"time":{"created":"2026-08-21T16:39:28.118Z","modified":"2026-11-12T18:09:46.139Z","0.0.0-alpha.1":"2026-08-21T16:39:28.505Z","0.0.0-alpha.2":"2026-08-22T12:28:20.677Z","0.0.0-alpha.3":"2026-08-22T13:57:01.956Z","0.0.0-alpha.4":"2026-08-22T20:21:48.133Z","0.0.0-alpha.5":"2026-08-24T13:42:28.060Z","0.0.0-alpha.6":"2026-08-31T22:14:34.455Z","0.0.0-alpha.7":"2026-09-02T10:52:43.853Z","0.0.0-alpha.8":"2026-09-02T19:26:26.698Z","0.0.0-alpha.9":"2026-09-08T12:25:46.202Z","0.0.0-alpha.10":"2026-09-08T20:27:02.542Z","0.0.0-alpha.11":"2026-09-14T11:25:36.139Z","0.1.0-alpha.1":"2026-09-18T10:52:51.270Z","0.1.0-alpha.2":"2026-10-31T13:43:24.381Z","0.1.0-alpha.3":"2026-10-31T14:31:01.663Z","0.1.0-alpha.4":"2026-11-12T18:09:45.702Z"},"author":{"url":"https://blankparticle.com","name":"BlankParticle","email":"blank@alchemy.run"},"license":"MIT","keywords":["cli","colors","command-line","components","jsx","preact","print","react","redux","render","stdout","text"],"repository":{"url":"https://github.com/alchemy-run/sigil","type":"git"},"description":"React for CLIs. A self-contained fork of Ink with an integrated TypeScript Yoga layout engine.","maintainers":[{"name":"pear-alchemy","email":"michael@alchemy.run"},{"name":"blankparticle","email":"blankparticle@gmail.com"},{"name":"sam-goodwin","email":"sam@alchemy.run"}],"readme":"<div align=\"center\">\n\t<br>\n\t<h1>Sigil</h1>\n\t<br>\n</div>\n\n> React for CLIs. Build and test your CLI output using components.\n\n**Sigil is a fork of [Ink](https://github.com/vadimdemedes/ink)** by [Vadym Demedes](https://github.com/vadimdemedes), maintained by [Functionless Corp.](https://alchemy.run) and published as [`@alchemy.run/sigil`](https://npmjs.com/package/@alchemy.run/sigil). It differs from upstream Ink in a few deliberate ways:\n\n- **Self-contained**: the only runtime dependencies are `react-reconciler` and `scheduler`. Everything else — the ANSI/terminal subsystem (`src/ansi/`), styling, width measurement, wrapping — is first-class TypeScript in this repository.\n- **Integrated layout engine**: layout is computed by a TypeScript port of [Yoga](https://github.com/facebook/yoga) (`src/yoga/`) instead of the Yoga WASM binary, continuously verified against an f64-patched reference Yoga build via differential fuzzing. Percentage `minWidth`/`maxWidth` resolve against the parent ([yoga#872](https://github.com/react/yoga/issues/872) is fixed); see the [Yoga notes](docs/yoga.md).\n- **Modern toolchain**: built with [Vite+](https://viteplus.dev) (Vitest, Oxlint, Oxfmt, tsdown) and TypeScript 7.\n- **Structured terminal core**: cells retain semantic colors, gradients, links, and graphemes through layout and composition, then serialize for the target terminal profile.\n\nLow-level integrations are available through focused `ansi`, `capabilities`, `color`, `router`, `screen`, `terminal`, and `yoga` subpaths. See the [architecture guide](docs/architecture.md), [API stability policy](docs/api-stability.md), [color semantics](docs/color-semantics.md), [performance notes](docs/performance.md), and [Yoga notes](docs/yoga.md).\n\nUpstream Ink and Yoga are tracked as submodules in `.vendor/` — upstream's test suites run against this codebase as part of the regular test run. See `THIRD_PARTY_NOTICES.md` for attribution.\n\nThe familiar Ink component and hook surface remains available from the package root. Sigil also adds terminal-aware APIs described below. The longer API reference is inherited from Ink and uses Sigil imports where applicable.\n\n## Sigil extensions\n\n- **Structured rendering** — layout produces a semantic `Screen` of grapheme-aware cells before terminal-specific ANSI serialization. Import low-level primitives from `@alchemy.run/sigil/screen`, `@alchemy.run/sigil/color`, and `@alchemy.run/sigil/terminal`.\n- **Terminal capabilities** — `getCapabilities()` returns the current snapshot, while `capabilities.subscribe()` and `useCapabilitiesChange()` observe live terminal reports. The framework-free API is available from `@alchemy.run/sigil/capabilities`.\n- **Terminal integrations** — `<Hyperlink>` provides OSC 8 links with a fallback. `useTitle`, `useWorkingDirectory`, `useProgress`, `useProgramStatus` (OSC 7501), `useNotification`, `useClipboard`, and `usePointerShape` manage session-scoped OSC state.\n- **ANSI-aware text** — `<AnsiText>` interprets ANSI-styled input without flattening its semantic colors before rendering.\n- **Routing** — `@alchemy.run/sigil/router` provides an in-memory router designed for terminal applications. See the [routing recipe](recipes/routing.md).\n- **Testing** — the repository includes an internal emulator-backed E2E harness and interactive explorer (`vpr explorer` in `integration/`), kept with the PTY-driven tests in the private `integration/` workspace package. `vp test` at the root runs both. These utilities are not part of the public API while their design is evolving.\n\nSigil requires Node.js 22 or newer and React 19.2 or newer.\n\n---\n\n[![](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)\n\nInk provides the same component-based UI building experience that React offers in the browser, but for command-line apps.\nIt uses [Yoga](https://github.com/facebook/yoga) to build Flexbox layouts in the terminal, so most CSS-like properties are available in Ink as well.\nIf you are already familiar with React, you already know Ink.\n\nSince Ink is a React renderer, all features of React are supported.\nHead over to the [React](https://reactjs.org) website for documentation on how to use it.\nOnly Ink's methods are documented in this readme.\n\n**Fully AI-generated pull requests are not accepted. You can use AI, but should be verified and cleaned up by a human. Only Opus 4.6+ (high-effort) and Codex 5.4+ (extra high) are accepted models. Preferably created with Opus and verified by Codex.**\n\n---\n\n<div align=\"center\">\n\t<p>\n\t\t<p>\n\t\t\t<sup>\n\t\t\t\t<a href=\"https://opencollective.com/vadimdemedes\">Vadym Demedes' open source work is supported by the community ❤️</a>\n\t\t\t</sup>\n\t\t</p>\n\t</p>\n</div>\n\n## Install\n\n```sh\npnpm add @alchemy.run/sigil react\n```\n\n> [!NOTE]\n> This readme documents the upcoming version of Ink. For the latest stable release, see [Ink on npm](https://www.npmjs.com/package/ink).\n\n## Usage\n\n```jsx\nimport { render, Text } from \"@alchemy.run/sigil\";\nimport React, { useState, useEffect } from \"react\";\n\nconst Counter = () => {\n  const [counter, setCounter] = useState(0);\n\n  useEffect(() => {\n    const timer = setInterval(() => {\n      setCounter((previousCounter) => previousCounter + 1);\n    }, 100);\n\n    return () => {\n      clearInterval(timer);\n    };\n  }, []);\n\n  return <Text color=\"green\">{counter} tests passed</Text>;\n};\n\nrender(<Counter />);\n```\n\n<img src=\"media/demo.svg\" width=\"600\">\n\n## Who's Using Ink?\n\n- [Claude Code](https://github.com/anthropics/claude-code) - An agentic coding tool made by Anthropic.\n- [Gemini CLI](https://github.com/google-gemini/gemini-cli) - An agentic coding tool made by Google.\n- [GitHub Copilot CLI](https://github.com/features/copilot/cli) - Just say what you want the shell to do.\n- [Canva CLI](https://www.canva.dev/docs/apps/canva-cli/) - CLI for creating and managing Canva Apps.\n- [Cloudflare's Wrangler](https://github.com/cloudflare/wrangler2) - The CLI for Cloudflare Workers.\n- [Linear](https://linear.app) - Linear built an internal CLI for managing deployments, configs, and other housekeeping tasks.\n- [Gatsby](https://www.gatsbyjs.org) - Gatsby is a modern web framework for blazing-fast websites.\n- [tap](https://node-tap.org) - A Test-Anything-Protocol library for JavaScript.\n- [Terraform CDK](https://github.com/hashicorp/terraform-cdk) - Cloud Development Kit (CDK) for HashiCorp Terraform.\n- [Specify CLI](https://specifyapp.com) - Automate the distribution of your design tokens.\n- [Twilio's SIGNAL](https://github.com/twilio-labs/plugin-signal2020) - CLI for Twilio's SIGNAL conference. [Blog post](https://www.twilio.com/blog/building-conference-cli-in-react).\n- [Typewriter](https://github.com/segmentio/typewriter) - Generates strongly-typed [Segment](https://segment.com) analytics clients from arbitrary JSON Schema.\n- [Prisma](https://www.prisma.io) - The unified data layer for modern applications.\n- [Blitz](https://blitzjs.com) - The Fullstack React Framework.\n- [New York Times](https://github.com/nytimes/kyt) - NYT uses Ink's `kyt` - a toolkit that encapsulates and manages the configuration for web apps.\n- [tink](https://github.com/npm/tink) - A next-generation runtime and package manager.\n- [Inkle](https://github.com/jrr/inkle) - A Wordle game.\n- [loki](https://github.com/oblador/loki) - Visual regression testing tool for Storybook.\n- [Bit](https://github.com/teambit/bit) - Build, distribute, and collaborate on components.\n- [Remirror](https://github.com/remirror/remirror) - Your friendly, world-class editor toolkit.\n- [Prime](https://github.com/birkir/prime) - Open-source GraphQL CMS.\n- [emoj](https://github.com/sindresorhus/emoj) - Find relevant emojis.\n- [emma](https://github.com/maticzav/emma-cli) - Find and install npm packages easily.\n- [npm-check-extras](https://github.com/akgondber/npm-check-extras) - Check for outdated and unused dependencies, and run update/delete actions on selected ones.\n- [swiff](https://github.com/simple-integrated-marketing/swiff) - Multi-environment command-line tools for time-saving web developers.\n- [share](https://github.com/marionebl/share-cli) - Share files quickly.\n- [Kubelive](https://github.com/ameerthehacker/kubelive) - A CLI for Kubernetes that provides live data about the cluster and its resources.\n- [changelog-view](https://github.com/jdeniau/changelog-view) - View changelogs.\n- [cfpush](https://github.com/mamachanko/cfpush) - Interactive Cloud Foundry tutorial.\n- [startd](https://github.com/mgrip/startd) - Turn your React component into a web app.\n- [wiki-cli](https://github.com/hexrcs/wiki-cli) - Search Wikipedia and read article summaries.\n- [garson](https://github.com/goliney/garson) - Build interactive, config-based command-line interfaces.\n- [git-contrib-calendar](https://github.com/giannisp/git-contrib-calendar) - Display a contributions calendar for any Git repository.\n- [gitgud](https://github.com/GitGud-org/GitGud) - Interactive command-line GUI for Git.\n- [Autarky](https://github.com/pranshuchittora/autarky) - Find and delete old `node_modules` directories to free up disk space.\n- [fast-cli](https://github.com/sindresorhus/fast-cli) - Test your download and upload speeds.\n- [tasuku](https://github.com/privatenumber/tasuku) - Minimal task runner.\n- [mnswpr](https://github.com/mordv/mnswpr) - A Minesweeper game.\n- [lrn](https://github.com/krychu/lrn) - Learning by repetition.\n- [turdle](https://github.com/mynameisankit/turdle) - A Wordle game.\n- [Shopify CLI](https://github.com/Shopify/cli) - Build apps, themes, and storefronts for the Shopify platform.\n- [ToDesktop CLI](https://www.todesktop.com/electron) - All-in-one platform for building Electron apps.\n- [Walle](https://github.com/Pobepto/walle) - A full-featured crypto wallet for EVM networks.\n- [Sudoku](https://github.com/mrozio13pl/sudoku-in-terminal) - A Sudoku game.\n- [Sea Trader](https://github.com/zyishai/sea-trader) - A Taipan!-inspired trading simulator game.\n- [srtd](https://github.com/t1mmen/srtd) - Live-reloading SQL templates for Supabase projects.\n- [tweakcc](https://github.com/Piebald-AI/tweakcc) - Customize your Claude Code styling.\n- [argonaut](https://github.com/darksworm/argonaut) - Manage Argo CD resources.\n- [Qodo Command](https://github.com/qodo-ai/command) - Build, run, and manage AI agents.\n- [Nanocoder](https://github.com/nano-collective/nanocoder) - A community-built, local-first AI coding agent with multi-provider support.\n- [dev3000](https://github.com/vercel-labs/dev3000) - An AI agent MCP orchestrator and developer browser.\n- [Neovate Code](https://github.com/neovateai/neovate-code) - An agentic coding tool made by AntGroup.\n- [instagram-cli](https://github.com/supreme-gg-gg/instagram-cli) - Instagram client.\n- [ElevenLabs CLI](https://github.com/elevenlabs/cli) - ElevenLabs agents client.\n- [SSH AI Chat](https://github.com/miantiao-me/ssh-ai-chat) - Chat with AI over SSH.\n- [Deep Code CLI](https://github.com/lessweb/deepcode-cli) - AI coding assistant optimized for the DeepSeek model.\n\n_(PRs welcome. Append new entries at the end. Repos must have 100+ stars and showcase Ink beyond a basic list picker.)_\n\n## Contents\n\n- [Getting Started](#getting-started)\n- [App Lifecycle](#app-lifecycle)\n- [Components](#components)\n  - [`<Text>`](#text)\n  - [`<Box>`](#box)\n  - [`<Newline>`](#newline)\n  - [`<Spacer>`](#spacer)\n  - [`<Static>`](#static)\n  - [`<Transform>`](#transform)\n  - [`<VirtualList>`](#virtuallist)\n- [Hooks](#hooks)\n  - [`useInput`](#useinputinputhandler-options)\n  - [`usePaste`](#usepastehandler-options)\n  - [`useApp`](#useapp)\n  - [`useStdin`](#usestdin)\n  - [`useStdout`](#usestdout)\n  - [`useBoxMetrics`](#useboxmetricsref)\n  - [`useVirtualScroll`](#usevirtualscrolloptions)\n  - [`useStderr`](#usestderr)\n  - [`useWindowSize`](#usewindowsize)\n  - [`useFocus`](#usefocusoptions)\n  - [`useFocusManager`](#usefocusmanager)\n  - [`useCursor`](#usecursor)\n  - [`useAnimation`](#useanimationoptions)\n- [API](#api)\n- [Testing](#testing)\n- [Using React Devtools](#using-react-devtools)\n- [Screen Reader Support](#screen-reader-support)\n- [Useful Components](#useful-components)\n- [Useful Hooks](#useful-hooks)\n- [Recipes](#recipes)\n- [Examples](#examples)\n- [Continuous Integration](#continuous-integration)\n\n## Getting Started\n\nUse [create-ink-app](https://github.com/vadimdemedes/create-ink-app) to quickly scaffold a new Ink-based CLI.\n\n```sh\nnpx create-ink-app my-ink-cli\n```\n\nAlternatively, create a TypeScript project:\n\n```sh\nnpx create-ink-app --typescript my-ink-cli\n```\n\n<details><summary>Manual JavaScript setup</summary>\n<p>\nInk requires the same Babel setup as you would do for regular React-based apps in the browser.\n\nSet up Babel with a React preset to ensure all examples in this readme work as expected.\nAfter [installing Babel](https://babeljs.io/docs/en/usage), install `@babel/preset-react` and insert the following configuration in `babel.config.json`:\n\n```sh\nnpm install --save-dev @babel/preset-react\n```\n\n```json\n{\n  \"presets\": [\"@babel/preset-react\"]\n}\n```\n\nNext, create a file `source.js`, where you'll type code that uses Ink:\n\n```jsx\nimport { render, Text } from \"@alchemy.run/sigil\";\nimport React from \"react\";\n\nconst Demo = () => <Text>Hello World</Text>;\n\nrender(<Demo />);\n```\n\nThen, transpile this file with Babel:\n\n```sh\nnpx babel source.js -o cli.js\n```\n\nNow you can run `cli.js` with Node.js:\n\n```sh\nnode cli\n```\n\nIf you don't like transpiling files during development, you can use [import-jsx](https://github.com/vadimdemedes/import-jsx) or [@esbuild-kit/esm-loader](https://github.com/esbuild-kit/esm-loader) to `import` a JSX file and transpile it on the fly.\n\n</p>\n</details>\n\nInk uses [Yoga](https://github.com/facebook/yoga), a Flexbox layout engine, to build great user interfaces for your CLIs using familiar CSS-like properties you've used when building apps for the browser.\nIt's important to remember that each element is a Flexbox container.\nThink of it as if every `<div>` in the browser had `display: flex`.\nSee [`<Box>`](#box) built-in component below for documentation on how to use Flexbox layouts in Ink.\nNote that all text must be wrapped in a [`<Text>`](#text) component.\n\n## App Lifecycle\n\nAn Ink app is a Node.js process, so it stays alive only while there is active work in the event loop (timers, pending promises, [`useInput`](#useinputinputhandler-options) listening on `stdin`, etc.). If your component tree has no async work, the app will render once and exit immediately.\n\nTo exit the app, press **Ctrl+C** (enabled by default via [`exitOnCtrlC`](#exitonctrlc)), call [`exit()`](#exiterrororresult) from [`useApp`](#useapp) inside a component, or call [`unmount()`](#unmount) on the object returned by [`render()`](#rendertree-options).\n\nUse [`waitUntilExit()`](#waituntilexit) to run code after the app is unmounted:\n\n```jsx\nconst { waitUntilExit } = render(<MyApp />);\n\nawait waitUntilExit();\n\nconsole.log(\"App exited\");\n```\n\n## Components\n\n### `<Text>`\n\nThis component can display text and change its style to make it bold, underlined, italic, or strikethrough.\n\n```jsx\nimport { render, Text } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <>\n    <Text color=\"green\">I am green</Text>\n    <Text color=\"black\" backgroundColor=\"white\">\n      I am black on white\n    </Text>\n    <Text color=\"#ffffff\">I am white</Text>\n    <Text bold>I am bold</Text>\n    <Text italic>I am italic</Text>\n    <Text underline>I am underline</Text>\n    <Text strikethrough>I am strikethrough</Text>\n    <Text inverse>I am inversed</Text>\n  </>\n);\n\nrender(<Example />);\n```\n\n> [!NOTE]\n> `<Text>` allows only text nodes and nested `<Text>` components inside of it. For example, `<Box>` component can't be used inside `<Text>`.\n\n#### color\n\nType: `string`\n\nChange text color.\nColors accept the same formats as [chalk](https://github.com/chalk/chalk).\n\nFor styled strings outside the renderer (logs, piped output), `@alchemy.run/sigil/ansi` exports a chainable `chalk` and `createChalk()`, which gives each output its own color level instead of sharing a global one:\n\n```js\nimport { createChalk } from \"@alchemy.run/sigil/ansi\";\n\nconst style = createChalk({ stream: process.stderr }); // or { level: \"truecolor\" }\nprocess.stderr.write(style.bold.hex(\"#e28a5b\")(\"error:\") + \" something failed\\n\");\n```\n\n```jsx\n<Text color=\"green\">Green</Text>\n<Text color=\"#005cc5\">Blue</Text>\n<Text color=\"rgb(232, 131, 136)\">Red</Text>\n```\n\n<img src=\"media/text-color.jpg\" width=\"247\">\n\n#### backgroundColor\n\nType: `string`\n\nSame as `color` above, but for background.\n\n```jsx\n<Text backgroundColor=\"green\" color=\"white\">Green</Text>\n<Text backgroundColor=\"#005cc5\" color=\"white\">Blue</Text>\n<Text backgroundColor=\"rgb(232, 131, 136)\" color=\"white\">Red</Text>\n```\n\n<img src=\"media/text-backgroundColor.jpg\" width=\"226\">\n\n#### dimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the color (make it less bright).\n\n```jsx\n<Text color=\"red\" dimColor>\n  Dimmed Red\n</Text>\n```\n\n<img src=\"media/text-dimColor.jpg\" width=\"138\">\n\n#### bold\n\nType: `boolean`\\\nDefault: `false`\n\nMake the text bold.\n\n#### italic\n\nType: `boolean`\\\nDefault: `false`\n\nMake the text italic.\n\n#### underline\n\nType: `boolean`\\\nDefault: `false`\n\nMake the text underlined.\n\n#### strikethrough\n\nType: `boolean`\\\nDefault: `false`\n\nMake the text crossed with a line.\n\n#### inverse\n\nType: `boolean`\\\nDefault: `false`\n\nInvert background and foreground colors.\n\n```jsx\n<Text inverse color=\"yellow\">\n  Inversed Yellow\n</Text>\n```\n\n<img src=\"media/text-inverse.jpg\" width=\"138\">\n\n#### wrap\n\nType: `string`\\\nAllowed values: `wrap` `hard` `truncate` `truncate-start` `truncate-middle` `truncate-end`\\\nDefault: `wrap`\n\nThis property tells Ink to wrap or truncate text if its width is larger than the container.\nIf `wrap` is passed (the default), Ink will wrap text and split it into multiple lines.\nIf `hard` is passed, Ink will fill each line to the full column width, breaking words as necessary.\nIf `truncate-*` is passed, Ink will truncate text instead, resulting in one line of text with the rest cut off.\n\n```jsx\n<Box width={7}>\n\t<Text>Hello World</Text>\n</Box>\n//=> 'Hello\\nWorld'\n\n<Box width={7}>\n\t<Text wrap=\"hard\">Hello World</Text>\n</Box>\n//=> 'Hello W\\norld'\n\n// `truncate` is an alias to `truncate-end`\n<Box width={7}>\n\t<Text wrap=\"truncate\">Hello World</Text>\n</Box>\n//=> 'Hello…'\n\n<Box width={7}>\n\t<Text wrap=\"truncate-middle\">Hello World</Text>\n</Box>\n//=> 'He…ld'\n\n<Box width={7}>\n\t<Text wrap=\"truncate-start\">Hello World</Text>\n</Box>\n//=> '…World'\n```\n\n### `<Box>`\n\n`<Box>` is an essential Ink component to build your layout.\nIt's like `<div style=\"display: flex\">` in the browser.\n\n```jsx\nimport { render, Box, Text } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <Box margin={2}>\n    <Text>This is a box with margin</Text>\n  </Box>\n);\n\nrender(<Example />);\n```\n\n#### Dimensions\n\n##### width\n\nType: `number` `string`\n\nWidth of the element in spaces.\nYou can also set it as a percentage, which will calculate the width based on the width of the parent element.\n\n```jsx\n<Box width={4}>\n  <Text>X</Text>\n</Box>\n//=> 'X   '\n```\n\n```jsx\n<Box width={10}>\n  <Box width=\"50%\">\n    <Text>X</Text>\n  </Box>\n  <Text>Y</Text>\n</Box>\n//=> 'X    Y'\n```\n\n##### height\n\nType: `number` `string`\n\nHeight of the element in lines (rows).\nYou can also set it as a percentage, which will calculate the height based on the height of the parent element.\n\n```jsx\n<Box height={4}>\n  <Text>X</Text>\n</Box>\n//=> 'X\\n\\n\\n'\n```\n\n```jsx\n<Box height={6} flexDirection=\"column\">\n  <Box height=\"50%\">\n    <Text>X</Text>\n  </Box>\n  <Text>Y</Text>\n</Box>\n//=> 'X\\n\\n\\nY\\n\\n'\n```\n\n##### minWidth\n\nType: `number` `string`\n\nSets a minimum width of the element in spaces.\nYou can also set it as a percentage, which will calculate the minimum width based on the width of the parent element.\n\n##### minHeight\n\nType: `number` `string`\n\nSets a minimum height of the element in lines (rows).\nYou can also set it as a percentage, which will calculate the minimum height based on the height of the parent element.\n\n##### maxWidth\n\nType: `number` `string`\n\nSets a maximum width of the element in spaces.\nYou can also set it as a percentage, which will calculate the maximum width based on the width of the parent element.\n\n##### maxHeight\n\nType: `number` `string`\n\nSets a maximum height of the element in lines (rows).\nYou can also set it as a percentage, which will calculate the maximum height based on the height of the parent element.\n\n##### aspectRatio\n\nType: `number`\n\nDefines the aspect ratio (width/height) for the element.\n\nUse it with at least one size constraint (`width`, `height`, `minHeight`, or `maxHeight`) so Ink can derive the missing dimension.\n\n#### Padding\n\n##### paddingTop\n\nType: `number`\\\nDefault: `0`\n\nTop padding.\n\n##### paddingBottom\n\nType: `number`\\\nDefault: `0`\n\nBottom padding.\n\n##### paddingLeft\n\nType: `number`\\\nDefault: `0`\n\nLeft padding.\n\n##### paddingRight\n\nType: `number`\\\nDefault: `0`\n\nRight padding.\n\n##### paddingX\n\nType: `number`\\\nDefault: `0`\n\nHorizontal padding. Equivalent to setting `paddingLeft` and `paddingRight`.\n\n##### paddingY\n\nType: `number`\\\nDefault: `0`\n\nVertical padding. Equivalent to setting `paddingTop` and `paddingBottom`.\n\n##### padding\n\nType: `number`\\\nDefault: `0`\n\nPadding on all sides. Equivalent to setting `paddingTop`, `paddingBottom`, `paddingLeft` and `paddingRight`.\n\n```jsx\n<Box paddingTop={2}><Text>Top</Text></Box>\n<Box paddingBottom={2}><Text>Bottom</Text></Box>\n<Box paddingLeft={2}><Text>Left</Text></Box>\n<Box paddingRight={2}><Text>Right</Text></Box>\n<Box paddingX={2}><Text>Left and right</Text></Box>\n<Box paddingY={2}><Text>Top and bottom</Text></Box>\n<Box padding={2}><Text>Top, bottom, left and right</Text></Box>\n```\n\n#### Margin\n\n##### marginTop\n\nType: `number`\\\nDefault: `0`\n\nTop margin.\n\n##### marginBottom\n\nType: `number`\\\nDefault: `0`\n\nBottom margin.\n\n##### marginLeft\n\nType: `number`\\\nDefault: `0`\n\nLeft margin.\n\n##### marginRight\n\nType: `number`\\\nDefault: `0`\n\nRight margin.\n\n##### marginX\n\nType: `number`\\\nDefault: `0`\n\nHorizontal margin. Equivalent to setting `marginLeft` and `marginRight`.\n\n##### marginY\n\nType: `number`\\\nDefault: `0`\n\nVertical margin. Equivalent to setting `marginTop` and `marginBottom`.\n\n##### margin\n\nType: `number`\\\nDefault: `0`\n\nMargin on all sides. Equivalent to setting `marginTop`, `marginBottom`, `marginLeft` and `marginRight`.\n\n```jsx\n<Box marginTop={2}><Text>Top</Text></Box>\n<Box marginBottom={2}><Text>Bottom</Text></Box>\n<Box marginLeft={2}><Text>Left</Text></Box>\n<Box marginRight={2}><Text>Right</Text></Box>\n<Box marginX={2}><Text>Left and right</Text></Box>\n<Box marginY={2}><Text>Top and bottom</Text></Box>\n<Box margin={2}><Text>Top, bottom, left and right</Text></Box>\n```\n\n#### Gap\n\n#### gap\n\nType: `number`\\\nDefault: `0`\n\nSize of the gap between an element's columns and rows. A shorthand for `columnGap` and `rowGap`.\n\n```jsx\n<Box gap={1} width={3} flexWrap=\"wrap\">\n  <Text>A</Text>\n  <Text>B</Text>\n  <Text>C</Text>\n</Box>\n// A B\n//\n// C\n```\n\n#### columnGap\n\nType: `number`\\\nDefault: `0`\n\nSize of the gap between an element's columns.\n\n```jsx\n<Box columnGap={1}>\n  <Text>A</Text>\n  <Text>B</Text>\n</Box>\n// A B\n```\n\n#### rowGap\n\nType: `number`\\\nDefault: `0`\n\nSize of the gap between an element's rows.\n\n```jsx\n<Box flexDirection=\"column\" rowGap={1}>\n  <Text>A</Text>\n  <Text>B</Text>\n</Box>\n// A\n//\n// B\n```\n\n#### Flex\n\n##### flexGrow\n\nType: `number`\\\nDefault: `0`\n\nSee [flex-grow](https://css-tricks.com/almanac/properties/f/flex-grow/).\n\n```jsx\n<Box>\n  <Text>Label:</Text>\n  <Box flexGrow={1}>\n    <Text>Fills all remaining space</Text>\n  </Box>\n</Box>\n```\n\n##### flexShrink\n\nType: `number`\\\nDefault: `1`\n\nSee [flex-shrink](https://css-tricks.com/almanac/properties/f/flex-shrink/).\n\n```jsx\n<Box width={20}>\n  <Box flexShrink={2} width={10}>\n    <Text>Will be 1/4</Text>\n  </Box>\n  <Box width={10}>\n    <Text>Will be 3/4</Text>\n  </Box>\n</Box>\n```\n\n##### flexBasis\n\nType: `number` `string`\n\nSee [flex-basis](https://css-tricks.com/almanac/properties/f/flex-basis/).\n\n```jsx\n<Box width={6}>\n  <Box flexBasis={3}>\n    <Text>X</Text>\n  </Box>\n  <Text>Y</Text>\n</Box>\n//=> 'X  Y'\n```\n\n```jsx\n<Box width={6}>\n  <Box flexBasis=\"50%\">\n    <Text>X</Text>\n  </Box>\n  <Text>Y</Text>\n</Box>\n//=> 'X  Y'\n```\n\n##### flexDirection\n\nType: `string`\\\nAllowed values: `row` `row-reverse` `column` `column-reverse`\n\nSee [flex-direction](https://css-tricks.com/almanac/properties/f/flex-direction/).\n\n```jsx\n<Box>\n\t<Box marginRight={1}>\n\t\t<Text>X</Text>\n\t</Box>\n\t<Text>Y</Text>\n</Box>\n// X Y\n\n<Box flexDirection=\"row-reverse\">\n\t<Text>X</Text>\n\t<Box marginRight={1}>\n\t\t<Text>Y</Text>\n\t</Box>\n</Box>\n// Y X\n\n<Box flexDirection=\"column\">\n\t<Text>X</Text>\n\t<Text>Y</Text>\n</Box>\n// X\n// Y\n\n<Box flexDirection=\"column-reverse\">\n\t<Text>X</Text>\n\t<Text>Y</Text>\n</Box>\n// Y\n// X\n```\n\n##### flexWrap\n\nType: `string`\\\nAllowed values: `nowrap` `wrap` `wrap-reverse`\n\nSee [flex-wrap](https://css-tricks.com/almanac/properties/f/flex-wrap/).\n\n```jsx\n<Box width={2} flexWrap=\"wrap\">\n  <Text>A</Text>\n  <Text>BC</Text>\n</Box>\n// A\n// B C\n```\n\n```jsx\n<Box flexDirection=\"column\" height={2} flexWrap=\"wrap\">\n  <Text>A</Text>\n  <Text>B</Text>\n  <Text>C</Text>\n</Box>\n// A C\n// B\n```\n\n##### alignItems\n\nType: `string`\\\nAllowed values: `flex-start` `center` `flex-end` `stretch` `baseline`\n\nSee [align-items](https://css-tricks.com/almanac/properties/a/align-items/).\n\n```jsx\n<Box alignItems=\"flex-start\">\n\t<Box marginRight={1}>\n\t\t<Text>X</Text>\n\t</Box>\n\t<Text>\n\t\tA\n\t\t<Newline/>\n\t\tB\n\t\t<Newline/>\n\t\tC\n\t</Text>\n</Box>\n// X A\n//   B\n//   C\n\n<Box alignItems=\"center\">\n\t<Box marginRight={1}>\n\t\t<Text>X</Text>\n\t</Box>\n\t<Text>\n\t\tA\n\t\t<Newline/>\n\t\tB\n\t\t<Newline/>\n\t\tC\n\t</Text>\n</Box>\n//   A\n// X B\n//   C\n\n<Box alignItems=\"flex-end\">\n\t<Box marginRight={1}>\n\t\t<Text>X</Text>\n\t</Box>\n\t<Text>\n\t\tA\n\t\t<Newline/>\n\t\tB\n\t\t<Newline/>\n\t\tC\n\t</Text>\n</Box>\n//   A\n//   B\n// X C\n```\n\n##### alignSelf\n\nType: `string`\\\nDefault: `auto`\\\nAllowed values: `auto` `flex-start` `center` `flex-end` `stretch` `baseline`\n\nSee [align-self](https://css-tricks.com/almanac/properties/a/align-self/).\n\n```jsx\n<Box height={3}>\n\t<Box alignSelf=\"flex-start\">\n\t\t<Text>X</Text>\n\t</Box>\n</Box>\n// X\n//\n//\n\n<Box height={3}>\n\t<Box alignSelf=\"center\">\n\t\t<Text>X</Text>\n\t</Box>\n</Box>\n//\n// X\n//\n\n<Box height={3}>\n\t<Box alignSelf=\"flex-end\">\n\t\t<Text>X</Text>\n\t</Box>\n</Box>\n//\n//\n// X\n```\n\n##### alignContent\n\nType: `string`\\\nDefault: `flex-start`\\\nAllowed values: `flex-start` `flex-end` `center` `stretch` `space-between` `space-around` `space-evenly`\n\nDefines alignment between flex lines on the cross axis when `flexWrap` creates multiple lines.\nSee [align-content](https://css-tricks.com/almanac/properties/a/align-content/).\nUnlike CSS (`stretch`), Ink defaults to `flex-start` so wrapped lines stay compact and fixed-height boxes don't gain unexpected empty rows unless you opt in to stretching.\n\n##### justifyContent\n\nType: `string`\\\nAllowed values: `flex-start` `center` `flex-end` `space-between` `space-around` `space-evenly`\n\nSee [justify-content](https://css-tricks.com/almanac/properties/j/justify-content/).\n\n```jsx\n<Box justifyContent=\"flex-start\">\n\t<Text>X</Text>\n</Box>\n// [X      ]\n\n<Box justifyContent=\"center\">\n\t<Text>X</Text>\n</Box>\n// [   X   ]\n\n<Box justifyContent=\"flex-end\">\n\t<Text>X</Text>\n</Box>\n// [      X]\n\n<Box justifyContent=\"space-between\">\n\t<Text>X</Text>\n\t<Text>Y</Text>\n</Box>\n// [X      Y]\n\n<Box justifyContent=\"space-around\">\n\t<Text>X</Text>\n\t<Text>Y</Text>\n</Box>\n// [  X   Y  ]\n\n<Box justifyContent=\"space-evenly\">\n\t<Text>X</Text>\n\t<Text>Y</Text>\n</Box>\n// [   X   Y   ]\n```\n\n#### Position\n\n##### position\n\nType: `string`\\\nAllowed values: `relative` `absolute` `static`\\\nDefault: `relative`\n\nControls how the element is positioned.\n\nWhen `position` is `static`, `top`, `right`, `bottom`, and `left` are ignored.\n\n##### top\n\nType: `number` `string`\n\nTop offset for positioned elements.\nYou can also set it as a percentage of the parent size.\n\n##### right\n\nType: `number` `string`\n\nRight offset for positioned elements.\nYou can also set it as a percentage of the parent size.\n\n##### bottom\n\nType: `number` `string`\n\nBottom offset for positioned elements.\nYou can also set it as a percentage of the parent size.\n\n##### left\n\nType: `number` `string`\n\nLeft offset for positioned elements.\nYou can also set it as a percentage of the parent size.\n\n#### Visibility\n\n##### display\n\nType: `string`\\\nAllowed values: `flex` `none`\\\nDefault: `flex`\n\nSet this property to `none` to hide the element.\n\n##### overflowX\n\nType: `string`\\\nAllowed values: `visible` `hidden`\\\nDefault: `visible`\n\nBehavior for an element's overflow in the horizontal direction.\n\n##### overflowY\n\nType: `string`\\\nAllowed values: `visible` `hidden`\\\nDefault: `visible`\n\nBehavior for an element's overflow in the vertical direction.\n\n##### overflow\n\nType: `string`\\\nAllowed values: `visible` `hidden`\\\nDefault: `visible`\n\nA shortcut for setting `overflowX` and `overflowY` at the same time.\n\n##### contentOffsetX\n\nType: `number`\\\nDefault: `0`\n\nHorizontal offset applied to the element's children, in columns. Children are shifted left by this amount. Combine with `overflow=\"hidden\"` to build scrollable views.\n\nOffsets are terminal cell coordinates, so fractional values are truncated toward zero and non-finite values are treated as `0`.\n\n##### contentOffsetY\n\nType: `number`\\\nDefault: `0`\n\nVertical offset applied to the element's children, in rows. Children are shifted up by this amount. Combine with `overflow=\"hidden\"` to build scrollable views.\n\nOffsets are terminal cell coordinates, so fractional values are truncated toward zero and non-finite values are treated as `0`.\n\nWhen an offset splits a wide character, such as CJK, its visible half is rendered as a blank that keeps the character's style, so the columns after it stay aligned.\n\n```jsx\nimport { Box, useInput, useBoxMetrics } from \"@alchemy.run/sigil\";\nimport { useState, useRef } from \"react\";\n\nconst ScrollView = ({ height, children }) => {\n  const ref = useRef(null);\n  const contentRef = useRef(null);\n  const { clientHeight } = useBoxMetrics(ref);\n  const content = useBoxMetrics(contentRef);\n  const [requestedScrollTop, setRequestedScrollTop] = useState(0);\n  const maxScrollTop = Math.max(0, content.height - clientHeight);\n  // Clamp on every render, since the maximum shrinks when the content gets\n  // shorter or the terminal gets taller.\n  const scrollTop = Math.min(requestedScrollTop, maxScrollTop);\n\n  useInput((input, key) => {\n    if (key.upArrow) {\n      setRequestedScrollTop(Math.max(0, scrollTop - 1));\n    }\n\n    if (key.downArrow) {\n      setRequestedScrollTop(Math.min(maxScrollTop, scrollTop + 1));\n    }\n  });\n\n  return (\n    <Box\n      ref={ref}\n      height={height}\n      overflow=\"hidden\"\n      contentOffsetY={scrollTop}\n      flexDirection=\"column\"\n    >\n      <Box ref={contentRef} flexDirection=\"column\" flexShrink={0}>\n        {children}\n      </Box>\n    </Box>\n  );\n};\n```\n\nNote: put any padding on the content wrapper rather than the viewport. `clientHeight` excludes borders but not padding, so a padded viewport reports more room than its content actually gets.\n\nNote: wrap the content in a `flexShrink={0}` container so it keeps its natural height. Without it, Yoga squeezes the children into the fixed-height viewport, leaving nothing to scroll.\n\n#### Borders\n\n##### borderStyle\n\nType: `string`\\\nAllowed values: `single` `double` `round` `bold` `singleDouble` `doubleSingle` `classic` | `BoxStyle`\n\nAdd a border with a specified style.\nIf `borderStyle` is `undefined` (the default), no border will be added.\nInk uses border styles from the [`cli-boxes`](https://github.com/sindresorhus/cli-boxes) module.\n\n```jsx\n<Box flexDirection=\"column\">\n  <Box>\n    <Box borderStyle=\"single\" marginRight={2}>\n      <Text>single</Text>\n    </Box>\n\n    <Box borderStyle=\"double\" marginRight={2}>\n      <Text>double</Text>\n    </Box>\n\n    <Box borderStyle=\"round\" marginRight={2}>\n      <Text>round</Text>\n    </Box>\n\n    <Box borderStyle=\"bold\">\n      <Text>bold</Text>\n    </Box>\n  </Box>\n\n  <Box marginTop={1}>\n    <Box borderStyle=\"singleDouble\" marginRight={2}>\n      <Text>singleDouble</Text>\n    </Box>\n\n    <Box borderStyle=\"doubleSingle\" marginRight={2}>\n      <Text>doubleSingle</Text>\n    </Box>\n\n    <Box borderStyle=\"classic\">\n      <Text>classic</Text>\n    </Box>\n  </Box>\n</Box>\n```\n\n<img src=\"media/box-borderStyle.jpg\" width=\"521\">\n\nAlternatively, pass a custom border style like so:\n\n```jsx\n<Box\n  borderStyle={{\n    topLeft: \"↘\",\n    top: \"↓\",\n    topRight: \"↙\",\n    left: \"→\",\n    bottomLeft: \"↗\",\n    bottom: \"↑\",\n    bottomRight: \"↖\",\n    right: \"←\",\n  }}\n>\n  <Text>Custom</Text>\n</Box>\n```\n\nSee example in [examples/borders](examples/borders/borders.tsx).\n\n##### borderColor\n\nType: `string`\n\nChange border color.\nA shorthand for setting `borderTopColor`, `borderRightColor`, `borderBottomColor`, and `borderLeftColor`.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"green\">\n  <Text>Green Rounded Box</Text>\n</Box>\n```\n\n<img src=\"media/box-borderColor.jpg\" width=\"228\">\n\n##### borderTopColor\n\nType: `string`\n\nChange top border color.\nAccepts the same values as [`color`](#color) in `<Text>` component.\n\n```jsx\n<Box borderStyle=\"round\" borderTopColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderRightColor\n\nType: `string`\n\nChange the right border color.\nAccepts the same values as [`color`](#color) in `<Text>` component.\n\n```jsx\n<Box borderStyle=\"round\" borderRightColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderBottomColor\n\nType: `string`\n\nChange the bottom border color.\nAccepts the same values as [`color`](#color) in `<Text>` component.\n\n```jsx\n<Box borderStyle=\"round\" borderBottomColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderLeftColor\n\nType: `string`\n\nChange the left border color.\nAccepts the same values as [`color`](#color) in `<Text>` component.\n\n```jsx\n<Box borderStyle=\"round\" borderLeftColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderDimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the border color.\nA shorthand for setting `borderTopDimColor`, `borderBottomDimColor`, `borderLeftDimColor`, and `borderRightDimColor`.\n\n```jsx\n<Box borderStyle=\"round\" borderDimColor>\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderTopDimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the top border color.\n\n```jsx\n<Box borderStyle=\"round\" borderTopDimColor>\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderBottomDimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the bottom border color.\n\n```jsx\n<Box borderStyle=\"round\" borderBottomDimColor>\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderLeftDimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the left border color.\n\n```jsx\n<Box borderStyle=\"round\" borderLeftDimColor>\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderRightDimColor\n\nType: `boolean`\\\nDefault: `false`\n\nDim the right border color.\n\n```jsx\n<Box borderStyle=\"round\" borderRightDimColor>\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderBackgroundColor\n\nType: `string`\n\nChange border background color.\nAccepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.\nA shorthand for setting `borderTopBackgroundColor`, `borderRightBackgroundColor`, `borderBottomBackgroundColor`, and `borderLeftBackgroundColor`.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"white\" borderBackgroundColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderTopBackgroundColor\n\nType: `string`\n\nChange top border background color.\nAccepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.\nFalls back to `borderBackgroundColor` if not specified.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"white\" borderTopBackgroundColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderBottomBackgroundColor\n\nType: `string`\n\nChange bottom border background color.\nAccepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.\nFalls back to `borderBackgroundColor` if not specified.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"white\" borderBottomBackgroundColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderRightBackgroundColor\n\nType: `string`\n\nChange right border background color.\nAccepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.\nFalls back to `borderBackgroundColor` if not specified.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"white\" borderRightBackgroundColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderLeftBackgroundColor\n\nType: `string`\n\nChange left border background color.\nAccepts the same values as [`backgroundColor`](#backgroundcolor) in `<Text>` component.\nFalls back to `borderBackgroundColor` if not specified.\n\n```jsx\n<Box borderStyle=\"round\" borderColor=\"white\" borderLeftBackgroundColor=\"green\">\n  <Text>Hello world</Text>\n</Box>\n```\n\n##### borderTop\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines whether the top border is visible.\n\n##### borderRight\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines whether the right border is visible.\n\n##### borderBottom\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines whether the bottom border is visible.\n\n##### borderLeft\n\nType: `boolean`\\\nDefault: `true`\n\nDetermines whether the left border is visible.\n\n#### Background\n\n##### backgroundColor\n\nType: `string`\n\nBackground color for the element.\n\nAccepts the same values as [`color`](#color) in the `<Text>` component.\n\n```jsx\n<Box flexDirection=\"column\">\n  <Box backgroundColor=\"red\" width={20} height={5} alignSelf=\"flex-start\">\n    <Text>Red background</Text>\n  </Box>\n\n  <Box backgroundColor=\"#FF8800\" width={20} height={3} marginTop={1} alignSelf=\"flex-start\">\n    <Text>Orange background</Text>\n  </Box>\n\n  <Box backgroundColor=\"rgb(0, 255, 0)\" width={20} height={3} marginTop={1} alignSelf=\"flex-start\">\n    <Text>Green background</Text>\n  </Box>\n</Box>\n```\n\nThe background color fills the entire `<Box>` area and is inherited by child `<Text>` components unless they specify their own `backgroundColor`.\n\nUse `backgroundColor=\"\"` to paint the box with explicit blank cells on the terminal's default background. This is useful for opaque compositor layers: lower-layer glyphs are erased without assuming what color the user's terminal background is. Omitting `backgroundColor` keeps the box transparent.\n\n```jsx\n<Box backgroundColor=\"blue\" alignSelf=\"flex-start\">\n  <Text>Blue inherited </Text>\n  <Text backgroundColor=\"yellow\">Yellow override </Text>\n  <Text>Blue inherited again</Text>\n</Box>\n```\n\nBackground colors work with borders and padding:\n\n```jsx\n<Box backgroundColor=\"cyan\" borderStyle=\"round\" padding={1} alignSelf=\"flex-start\">\n  <Text>Background with border and padding</Text>\n</Box>\n```\n\nSee example in [examples/box-backgrounds](examples/box-backgrounds/box-backgrounds.tsx).\n\n### `<Newline>`\n\nAdds one or more newline (`\\n`) characters.\nMust be used within `<Text>` components.\n\n#### count\n\nType: `number`\\\nDefault: `1`\n\nNumber of newlines to insert.\n\n```jsx\nimport { render, Text, Newline } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <Text>\n    <Text color=\"green\">Hello</Text>\n    <Newline />\n    <Text color=\"red\">World</Text>\n  </Text>\n);\n\nrender(<Example />);\n```\n\nOutput:\n\n```\nHello\nWorld\n```\n\n### `<Spacer>`\n\nA flexible space that expands along the major axis of its containing layout.\nIt's useful as a shortcut for filling all the available space between elements.\n\nFor example, using `<Spacer>` in a `<Box>` with default flex direction (`row`) will position \"Left\" on the left side and will push \"Right\" to the right side.\n\n```jsx\nimport { render, Box, Text, Spacer } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <Box>\n    <Text>Left</Text>\n    <Spacer />\n    <Text>Right</Text>\n  </Box>\n);\n\nrender(<Example />);\n```\n\nIn a vertical flex direction (`column`), it will position \"Top\" at the top of the container and push \"Bottom\" to the bottom.\nNote that the container needs to be tall enough to see this in effect.\n\n```jsx\nimport { render, Box, Text, Spacer } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <Box flexDirection=\"column\" height={10}>\n    <Text>Top</Text>\n    <Spacer />\n    <Text>Bottom</Text>\n  </Box>\n);\n\nrender(<Example />);\n```\n\n### `<Static>`\n\n`<Static>` component permanently renders its output above everything else.\nIt's useful for displaying activity like completed tasks or logs - things that\ndon't change after they're rendered (hence the name \"Static\").\n\nIt's preferred to use `<Static>` for use cases like these when you can't know\nor control the number of items that need to be rendered.\n\nFor example, [Tap](https://github.com/tapjs/node-tap) uses `<Static>` to display\na list of completed tests. [Gatsby](https://github.com/gatsbyjs/gatsby) uses it\nto display a list of generated pages while still displaying a live progress bar.\n\n```jsx\nimport { render, Static, Box, Text } from \"@alchemy.run/sigil\";\nimport React, { useState, useEffect } from \"react\";\n\nconst Example = () => {\n  const [tests, setTests] = useState([]);\n\n  useEffect(() => {\n    let completedTests = 0;\n    let timer;\n\n    const run = () => {\n      // Fake 10 completed tests\n      if (completedTests++ < 10) {\n        setTests((previousTests) => [\n          ...previousTests,\n          {\n            id: previousTests.length,\n            title: `Test #${previousTests.length + 1}`,\n          },\n        ]);\n\n        timer = setTimeout(run, 100);\n      }\n    };\n\n    run();\n\n    return () => {\n      clearTimeout(timer);\n    };\n  }, []);\n\n  return (\n    <>\n      {/* This part will be rendered once to the terminal */}\n      <Static items={tests}>\n        {(test) => (\n          <Box key={test.id}>\n            <Text color=\"green\">✔ {test.title}</Text>\n          </Box>\n        )}\n      </Static>\n\n      {/* This part keeps updating as state changes */}\n      <Box marginTop={1}>\n        <Text dimColor>Completed tests: {tests.length}</Text>\n      </Box>\n    </>\n  );\n};\n\nrender(<Example />);\n```\n\n> [!NOTE]\n> `<Static>` only renders new items in the `items` prop and ignores items that were previously rendered. This means that when you add new items to the `items` array, changes you make to previous items will not trigger a rerender.\n\nSee [examples/static](examples/static/static.tsx) for an example usage of `<Static>` component.\n\n#### items\n\nType: `Array`\n\nArray of items of any type to render using the function you pass as a component child.\n\n#### style\n\nType: `object`\n\nStyles to apply to a container of child elements.\nSee [`<Box>`](#box) for supported properties.\n\n```jsx\n<Static items={...} style={{padding: 1}}>\n\t{...}\n</Static>\n```\n\n#### children(item)\n\nType: `Function`\n\nFunction that is called to render every item in the `items` array.\nThe first argument is the item itself, and the second argument is the index of that item in the\n`items` array.\n\nNote that a `key` must be assigned to the root component.\n\n```jsx\n<Static items={[\"a\", \"b\", \"c\"]}>\n  {(item, index) => {\n    // This function is called for every item in ['a', 'b', 'c']\n    // `item` is 'a', 'b', 'c'\n    // `index` is 0, 1, 2\n    return (\n      <Box key={index}>\n        <Text>Item: {item}</Text>\n      </Box>\n    );\n  }}\n</Static>\n```\n\n### `<Transform>`\n\nTransform a string representation of React components before they're written to output.\nFor example, you might want to apply a [gradient to text](https://github.com/sindresorhus/ink-gradient), [add a clickable link](https://github.com/sindresorhus/ink-link), or [create some text effects](https://github.com/sindresorhus/ink-big-text).\nThese use cases can't accept React nodes as input; they expect a string.\nThat's what the `<Transform>` component does: it gives you an output string of its child components and lets you transform it in any way.\n\n> [!NOTE]\n> `<Transform>` must be applied only to `<Text>` children components and shouldn't change the dimensions of the output; otherwise, the layout will be incorrect.\n\n> [!IMPORTANT]\n> When children use `<Text>` styling props (e.g. `color`, `bold`), the string passed to `transform` will contain [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code). If your transform manipulates whitespace or does string operations like `.trim()`, you may need to use ANSI-aware methods (e.g. from [`slice-ansi`](https://github.com/chalk/slice-ansi) or [`strip-ansi`](https://github.com/chalk/strip-ansi)).\n\n```jsx\nimport { render, Transform } from \"@alchemy.run/sigil\";\n\nconst Example = () => (\n  <Transform transform={(output) => output.toUpperCase()}>\n    <Text>Hello World</Text>\n  </Transform>\n);\n\nrender(<Example />);\n```\n\nSince the `transform` function converts all characters to uppercase, the final output rendered to the terminal will be \"HELLO WORLD\", not \"Hello World\".\n\nWhen the output wraps to multiple lines, it can be helpful to know which line is being processed.\n\nFor example, to implement a hanging indent component, you can indent all the lines except for the first.\n\n```jsx\nimport { render, Transform } from \"@alchemy.run/sigil\";\n\nconst HangingIndent = ({ indent = 4, children }) => (\n  <Transform transform={(line, index) => (index === 0 ? line : \" \".repeat(indent) + line)}>\n    {children}\n  </Transform>\n);\n\nconst text =\n  \"WHEN I WROTE the following pages, or rather the bulk of them, \" +\n  \"I lived alone, in the woods, a mile from any neighbor, in a \" +\n  \"house which I had built myself, on the shore of Walden Pond, \" +\n  \"in Concord, Massachusetts, and earned my living by the labor \" +\n  \"of my hands only. I lived there two years and two months. At \" +\n  \"present I am a sojourner in civilized life again.\";\n\nrender(<HangingIndent indent={4}>{text}</HangingIndent>);\n```\n\n#### transform(outputLine, index)\n\nType: `Function`\n\nFunction that transforms children output.\nIt accepts children and must return transformed children as well.\n\n##### children\n\nType: `string`\n\nOutput of child components.\n\n##### index\n\nType: `number`\n\nThe zero-indexed line number of the line that's currently being transformed.\n\n### `<VirtualList>`\n\nA vertically windowed list. Only the items that intersect the viewport are rendered, inside a clipped box that scrolls by whole rows. Items may have different heights, and the item at the top edge may be partially visible.\n\nGive it a fixed `height`, or omit it and bound an ancestor instead: the list then takes the height of its content and shrinks to whatever rows the container leaves over. Siblings that must keep their size need `flexShrink={0}`, because every `<Box>` shrinks by default.\n\n```jsx\nimport { render, Box, Text, VirtualList, useInput, useWindowSize } from \"@alchemy.run/sigil\";\nimport { useState } from \"react\";\n\nconst entries = Array.from({ length: 200 }, (_, index) => `entry ${index}`);\n\nconst Example = () => {\n  const { rows } = useWindowSize();\n  const [cursor, setCursor] = useState(0);\n\n  useInput((_, key) => {\n    if (key.upArrow) setCursor((index) => Math.max(0, index - 1));\n    if (key.downArrow) setCursor((index) => Math.min(entries.length - 1, index + 1));\n  });\n\n  return (\n    <Box flexDirection=\"column\" maxHeight={rows}>\n      <Box flexShrink={0}>\n        <Text bold>Entries</Text>\n      </Box>\n      <VirtualList\n        items={entries}\n        itemHeight={() => 1}\n        focusedIndex={cursor}\n        renderItem={(entry, index) => <Text inverse={index === cursor}>{entry}</Text>}\n      />\n      <Box flexShrink={0}>\n        <Text dimColor>↑/↓ move</Text>\n      </Box>\n    </Box>\n  );\n};\n\nrender(<Example />);\n```\n\n#### items\n\nType: `ReadonlyArray<Item>`\n\nItems to window over.\n\n#### itemHeight\n\nType: `(item: Item, index: number) => number`\n\nHeight of an item in rows. It must match what `renderItem` produces for it: the window is computed from these numbers, never from the rendered output.\n\n#### renderItem\n\nType: `(item: Item, index: number) => ReactNode`\n\nRender one item. Only items intersecting the viewport are rendered.\n\n#### getKey\n\nType: `(item: Item, index: number) => React.Key`\n\nReact key for an item. Defaults to its index.\n\n#### focusedIndex\n\nType: `number`\n\nItem to keep fully visible. When it changes, the list scrolls as little as necessary to show it. An item taller than the viewport is aligned to its top.\n\n#### height\n\nType: `number`\n\nViewport height in rows. When omitted the list shrinks to the space its container leaves over, as described above.\n\n> [!NOTE]\n> Until the first layout pass has measured the viewport, every item is rendered inside the clipped box so the first frame already looks right.\n\n## Hooks\n\n### useInput(inputHandler, options?)\n\nA React hook that returns `void` and handles user input.\nIt's a more convenient alternative to using `useStdin` and listening for `data` events.\nThe callback you pass to `useInput` is called for each character when the user enters any input.\nHowever, if the user pastes text and it's more than one character, the callback will be called only once, and the whole string will be passed as `input`.\nYou can find a full example of using `useInput` at [examples/use-input](examples/use-input/use-input.tsx).\n\n```jsx\nimport {useInput} from '@alchemy.run/sigil';\n\nconst UserInput = () => {\n\tuseInput((input, key) => {\n\t\tif (input === 'q') {\n\t\t\t// Exit program\n\t\t}\n\n\t\tif (key.leftArrow) {\n\t\t\t// Left arrow key pressed\n\t\t}\n\t});\n\n\treturn …\n};\n```\n\n#### inputHandler(input, key)\n\nType: `Function`\n\nThe handler function that you pass to `useInput` receives two arguments:\n\n##### input\n\nType: `string`\n\nThe input that the program received.\n\n##### key\n\nType: `object`\n\nHandy information about a key that was pressed.\n\n###### key.leftArrow\n\n###### key.rightArrow\n\n###### key.upArrow\n\n###### key.downArrow\n\nType: `boolean`\\\nDefault: `false`\n\nIf an arrow key was pressed, the corresponding property will be `true`.\nFor example, if the user presses the left arrow key, `key.leftArrow` equals `true`.\n\n###### key.return\n\nType: `boolean`\\\nDefault: `false`\n\nReturn (Enter) key was pressed.\n\n###### key.escape\n\nType: `boolean`\\\nDefault: `false`\n\nEscape key was pressed.\n\n###### key.ctrl\n\nType: `boolean`\\\nDefault: `false`\n\nCtrl key was pressed.\n\n###### key.shift\n\nType: `boolean`\\\nDefault: `false`\n\nShift key was pressed.\n\n###### key.tab\n\nType: `boolean`\\\nDefault: `false`\n\nTab key was pressed.\n\n###### key.backspace\n\nType: `boolean`\\\nDefault: `false`\n\nBackspace key was pressed.\n\n###### key.delete\n\nType: `boolean`\\\nDefault: `false`\n\nDelete key was pressed.\n\n###### key.pageDown\n\n###### key.pageUp\n\nType: `boolean`\\\nDefault: `false`\n\nIf the Page Up or Page Down key was pressed, the corresponding property will be `true`.\nFor example, if the user presses Page Down, `key.pageDown` equals `true`.\n\n###### key.home\n\n###### key.end\n\nType: `boolean`\\\nDefault: `false`\n\nIf the Home or End key was pressed, the corresponding property will be `true`.\nFor example, if the user presses End, `key.end` equals `true`.\n\n###### key.meta\n\nType: `boolean`\\\nDefault: `false`\n\n[Meta key](https://en.wikipedia.org/wiki/Meta_key) was pressed.\n\n###### key.super\n\nType: `boolean`\\\nDefault: `false`\n\nSuper key (Cmd on macOS, Win on Windows) was pressed. Requires [kitty keyboard protocol](#kittykeyboard).\n\n###### key.hyper\n\nType: `boolean`\\\nDefault: `false`\n\nHyper key was pressed. Requires [kitty keyboard protocol](#kittykeyboard).\n\n###### key.capsLock\n\nType: `boolean`\\\nDefault: `false`\n\nCaps Lock was active. Requires [kitty keyboard protocol](#kittykeyboard).\n\n###### key.numLock\n\nType: `boolean`\\\nDefault: `false`\n\nNum Lock was active. Requires [kitty keyboard protocol](#kittykeyboard).\n\n###### key.eventType\n\nType: `'press' | 'repeat' | 'release'`\\\nDefault: `undefined`\n\nThe type of key event. Only available with [kitty keyboard protocol](#kittykeyboard). Without the protocol, this property is `undefined`.\n\n#### options\n\nType: `object`\n\n##### isActive\n\nType: `boolean`\\\nDefault: `true`\n\nEnable or disable capturing of user input.\nUseful when there are multiple `useInput` hooks used at once to avoid handling the same input several times.\n\n### usePaste(handler, options?)\n\nA React hook that calls `handler` whenever the user pastes text. Bracketed paste mode (`\\x1b[?2004h`) is automatically enabled while the hook is active, so pasted text arrives as a single string rather than being misinterpreted as individual key presses.\n\n`usePaste` and `useInput` can be used together in the same component. They operate on separate event channels, so paste content is never forwarded to `useInput` handlers when `usePaste` is active.\n\n```jsx\nimport {useInput, usePaste} from '@alchemy.run/sigil';\n\nconst MyInput = () => {\n\tuseInput((input, key) => {\n\t\t// Only receives typed characters and key events, not pasted text.\n\t\tif (key.return) {\n\t\t\t// Submit\n\t\t}\n\t});\n\n\tusePaste((text) => {\n\t\t// Receives the full pasted string, including newlines.\n\t\tconsole.log('Pasted:', text);\n\t});\n\n\treturn …\n};\n```\n\n#### handler(text)\n\nType: `Function`\n\nCalled with the full pasted string whenever the user pastes text. The string is delivered verbatim — newlines, escape sequences, and other special characters are preserved exactly as pasted.\n\n##### text\n\nType: `string`\n\nThe pasted text.\n\n#### options\n\nType: `object`\n\n##### isActive\n\nType: `boolean`\\\nDefault: `true`\n\nEnable or disable the paste handler. Useful when multiple components use `usePaste` and only one should be active at a time.\n\n### useApp()\n\nA React hook that returns app lifecycle methods.\n\n#### exit(errorOrResult?)\n\nType: `Function`\n\nExit (unmount) the whole Ink app.\n\n##### errorOrResult\n\nType: `Error | unknown`\n\nOptional value that controls how [`waitUntilExit`](#waituntilexit) settles:\n\n- `exit()` resolves with `undefined`.\n- `exit(error)` rejects when `error` is an `Error`.\n- `exit(value)` resolves with `value`.\n\n```js\nimport {useEffect} from 'react';\nimport {useApp} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {exit} = useApp();\n\n\t// Exit the app after 5 seconds\n\tuseEffect(() => {\n\t\tsetTimeout(() => {\n\t\t\texit();\n\t\t}, 5000);\n\t}, [exit]);\n\n\treturn …\n};\n```\n\n#### waitUntilRenderFlush()\n\nType: `Function`\n\nReturns a promise that settles after pending render output is flushed to stdout.\n\n```js\nimport {useEffect} from 'react';\nimport {useApp} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {waitUntilRenderFlush} = useApp();\n\n\tuseEffect(() => {\n\t\tvoid (async () => {\n\t\t\tawait waitUntilRenderFlush();\n\t\t\trunNextCommand();\n\t\t})();\n\t}, [waitUntilRenderFlush]);\n\n\treturn …;\n};\n```\n\n#### suspendTerminal(callback?)\n\nType: `Function`\n\nTemporarily hands the terminal over to a child process (such as `$EDITOR`, `less`, or `fzf`), then restores Ink's terminal state and forces a full redraw.\n\nWhile suspended, Ink stops writing output, stops consuming input, and restores the terminal modes the child expects (raw mode off, cursor visible, bracketed paste off, alternate screen exited, kitty keyboard protocol off). When the suspension ends, Ink reapplies its own terminal state and repaints from scratch.\n\n##### callback\n\nType: `Function`\n\nWhen a callback is provided, Ink suspends, runs the callback, and restores the terminal once it settles, even if the callback throws.\n\n```js\nimport { useApp } from \"@alchemy.run/sigil\";\n\nconst { suspendTerminal } = useApp();\n\nawait suspendTerminal(async () => {\n  await runEditor();\n});\n```\n\nWhen called without a callback, it returns a suspension you resume yourself. `resume()` is async because restoring the terminal may need to wait for ordered writes and a full redraw.\n\n```js\nconst suspension = await suspendTerminal();\n\ntry {\n  await runEditor();\n} finally {\n  await suspension.resume();\n}\n```\n\nThe suspension is also a disposable, so it can be resumed automatically with `await using`:\n\n```js\nawait using suspension = await suspendTerminal();\nawait runEditor();\n```\n\nSuspending while a suspension is already active throws. This is supported only in interactive TTY mode; in non-interactive output the callback still runs but Ink performs no terminal handoff.\n\n### useStdin()\n\nA React hook that returns the stdin stream and stdin-related utilities.\n\n#### stdin\n\nType: `stream.Readable`\\\nDefault: `process.stdin`\n\nThe stdin stream passed to `render()` in `options.stdin`, or `process.stdin` by default.\nUseful if your app needs to handle user input.\n\n```js\nimport {useStdin} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {stdin} = useStdin();\n\n\treturn …\n};\n```\n\n#### isRawModeSupported\n\nType: `boolean`\n\nA boolean flag determining if the current `stdin` supports `setRawMode`.\nA component using `setRawMode` might want to use `isRawModeSupported` to nicely fall back in environments where raw mode is not supported.\n\n```jsx\nimport { useStdin } from \"@alchemy.run/sigil\";\n\nconst Example = () => {\n  const { isRawModeSupported } = useStdin();\n\n  return isRawModeSupported ? <MyInputComponent /> : <MyComponentThatDoesntUseInput />;\n};\n```\n\n#### setRawMode(isRawModeEnabled)\n\nType: `function`\n\n##### isRawModeEnabled\n\nType: `boolean`\n\nSee [`setRawMode`](https://nodejs.org/api/tty.html#tty_readstream_setrawmode_mode).\nInk exposes this function to be able to handle <kbd>Ctrl</kbd>+<kbd>C</kbd>, that's why you should use Ink's `setRawMode` instead of `process.stdin.setRawMode`.\n\n**Warning:** This function will throw unless the current `stdin` supports `setRawMode`. Use [`isRawModeSupported`](#israwmodesupported) to detect `setRawMode` support.\n\n```js\nimport {useStdin} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {setRawMode} = useStdin();\n\n\tuseEffect(() => {\n\t\tsetRawMode(true);\n\n\t\treturn () => {\n\t\t\tsetRawMode(false);\n\t\t};\n\t});\n\n\treturn …\n};\n```\n\n### useStdout()\n\nA React hook that returns the stdout stream where Ink renders your app and stdout-related utilities.\n\n#### stdout\n\nType: `stream.Writable`\\\nDefault: `process.stdout`\n\n```js\nimport {useStdout} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {stdout} = useStdout();\n\n\treturn …\n};\n```\n\n#### write(data)\n\nWrite any string to stdout while preserving Ink's output.\nIt's useful when you want to display external information outside of Ink's rendering and ensure there's no conflict between the two.\nIt's similar to `<Static>`, except it can't accept components; it only works with strings.\n\n##### data\n\nType: `string`\n\nData to write to stdout.\n\n```js\nimport {useStdout} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {write} = useStdout();\n\n\tuseEffect(() => {\n\t\t// Write a single message to stdout, above Ink's output\n\t\twrite('Hello from Ink to stdout\\n');\n\t}, []);\n\n\treturn …\n};\n```\n\nSee additional usage example in [examples/use-stdout](examples/use-stdout/use-stdout.tsx).\n\n### useBoxMetrics(ref)\n\nA React hook that returns the current layout metrics for a tracked box element.\nIt updates when layout changes (for example terminal resize, sibling/content changes, or position changes).\n\nUse `hasMeasured` to detect when the currently tracked element has been measured.\n\n#### ref\n\nType: `React.RefObject<DOMElement | null>`\n\nA ref to the `<Box>` element to track.\n\n```jsx\nimport { Box, Text, useBoxMetrics } from \"@alchemy.run/sigil\";\nimport { useRef } from \"react\";\n\nconst Example = () => {\n  const ref = useRef(null);\n  const { width, height, left, top, hasMeasured } = useBoxMetrics(ref);\n\n  return (\n    <Box ref={ref}>\n      <Text>{hasMeasured ? `${width}x${height} at ${left},${top}` : \"Measuring...\"}</Text>\n    </Box>\n  );\n};\n```\n\n#### width\n\nType: `number`\n\nElement width.\n\n#### height\n\nType: `number`\n\nElement height.\n\n#### left\n\nType: `number`\n\nDistance from the left edge of the parent. These are layout coordinates and do not include any `contentOffsetX`/`contentOffsetY` applied by an ancestor, so hit-testing inside a scrolled container has to subtract those offsets too.\n\n#### top\n\nType: `number`\n\nDistance from the top edge of the parent. These are layout coordinates and do not include any `contentOffsetX`/`contentOffsetY` applied by an ancestor, so hit-testing inside a scrolled container has to subtract those offsets too.\n\n#### clientWidth\n\nType: `number`\n\nElement width excluding borders.\n\n#### clientHeight\n\nType: `number`\n\nElement height excluding borders.\n\n#### hasMeasured\n\nType: `boolean`\n\nWhether the currently tracked element has been measured.\n\n> [!NOTE]\n> The hook returns zeros for all metrics until the first layout pass completes. It also returns zeros when the tracked ref is detached.\n\n### useVirtualScroll(options)\n\nA React hook that owns the scroll position of a windowed list and returns which items to render for it. The position is clamped to the scrollable range and, while `focusedIndex` is set, moved as little as necessary to keep that item fully visible.\n\n[`<VirtualList>`](#virtuallist) wraps this hook. Use it directly to draw your own chrome around the window, such as overflow markers or a scrollbar.\n\n```jsx\nimport { Box, Text, useVirtualScroll } from \"@alchemy.run/sigil\";\n\nconst Example = ({ lines, cursor }) => {\n  const { start, end, offset, hiddenAbove, hiddenBelow } = useVirtualScroll({\n    count: lines.length,\n    itemHeight: () => 1,\n    viewportHeight: 10,\n    focusedIndex: cursor,\n  });\n\n  return (\n    <Box flexDirection=\"column\">\n      <Text dimColor>{hiddenAbove > 0 ? `↑ ${hiddenAbove} more` : \"\"}</Text>\n      <Box flexDirection=\"column\" height={10} overflowY=\"hidden\">\n        <Box flexDirection=\"column\" flexShrink={0} marginTop={offset}>\n          {lines.slice(start, end).map((line, index) => (\n            <Text key={start + index} inverse={start + index === cursor}>\n              {line}\n            </Text>\n          ))}\n        </Box>\n      </Box>\n      <Text dimColor>{hiddenBelow > 0 ? `↓ ${hiddenBelow} more` : \"\"}</Text>\n    </Box>\n  );\n};\n```\n\n#### options\n\n##### count\n\nType: `number`\n\nNumber of items in the list.\n\n##### itemHeight\n\nType: `(index: number) => number`\n\nHeight of the item at `index` in rows. It must match what the item renders.\n\n##### viewportHeight\n\nType: `number`\n\nRows available to show items.\n\n##### focusedIndex\n\nType: `number`\n\nItem that must stay fully visible. An item taller than the viewport is aligned to the top. Out-of-range values are ignored.\n\n#### Result\n\n##### start, end\n\nType: `number`\n\nThe items intersecting the viewport are `[start, end)`.\n\n##### offset\n\nType: `number`\n\nPosition of the `start` item relative to the top of the viewport. Zero or negative: a negative value means the item is partially scrolled out above. Apply it as `marginTop` on the box holding the rendered items.\n\n##### scrollTop, maxScrollTop, totalHeight\n\nType: `number`\n\nThe effective position, the largest position that still fills the viewport, and the height of every item combined, all in rows.\n\n##### hiddenAbove, hiddenBelow\n\nType: `number`\n\nRows scrolled out above the viewport and rows left below it.\n\n##### scrollTo(top), scrollBy(delta)\n\nType: `(rows: number) => void`\n\nMove the viewport. While `focusedIndex` is set, a position that would hide it is corrected on the next render.\n\n### useStderr()\n\nA React hook that returns the stderr stream and stderr-related utilities.\n\n#### stderr\n\nType: `stream.Writable`\\\nDefault: `process.stderr`\n\nStderr stream.\n\n```js\nimport {useStderr} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {stderr} = useStderr();\n\n\treturn …\n};\n```\n\n#### write(data)\n\nWrite any string to stderr while preserving Ink's output.\n\nIt's useful when you want to display external information outside of Ink's rendering and ensure there's no conflict between the two.\nIt's similar to `<Static>`, except it can't accept components; it only works with strings.\n\n##### data\n\nType: `string`\n\nData to write to stderr.\n\n```js\nimport {useStderr} from '@alchemy.run/sigil';\n\nconst Example = () => {\n\tconst {write} = useStderr();\n\n\tuseEffect(() => {\n\t\t// Write a single message to stderr, above Ink's output\n\t\twrite('Hello from Ink to stderr\\n');\n\t}, []);\n\n\treturn …\n};\n```\n\n### useWindowSize()\n\nA React hook that returns the current terminal dimensions and re-renders the component whenever the terminal is resized.\n\n```js\nimport { Text, useWindowSize } from \"@alchemy.run/sigil\";\n\nconst Example = () => {\n  const { columns, rows } = useWindowSize();\n\n  return (\n    <Text>\n      {columns}x{rows}\n    </Text>\n  );\n};\n```\n\n#### columns\n\nType: `number`\n\nNumber of columns (horizontal character cells).\n\n#### rows\n\nType: `number`\n\nNumber of rows (vertical character cells).\n\n> [!NOTE]\n> On terminals that send in-band size reports (mode 2048, e.g. Ghostty, kitty, foot) the frame is repainted as soon as the report arrives, since the emulator has already rewrapped by then. Elsewhere the size comes from the PTY, which can run ahead of or behind the emulator, so resize events are coalesced: the frame is erased and repainted about 50 ms after the size stops changing and is briefly absent during a window drag. Painting mid-rewrap is what leaves ghost rows behind.\n\n### useFocus(options?)\n\nA React hook that returns focus state and focus controls for the current component.\nA component that uses the `useFocus` hook becomes \"focusable\" to Ink, so when the user presses <kbd>Tab</kbd>, Ink will switch focus to this component.\nIf there are multiple components that execute the `useFocus` hook, focus will be given to them in registration order. Reordering keyed components does not change their registration order.\nThis hook returns an object with an `isFocused` boolean property, which determines whether this component is focused.\n\n#### options\n\n##### autoFocus\n\nType: `boolean`\\\nDefault: `false`\n\nAuto-focus this component if there's no active (focused) component right now.\n\n##### isActive\n\nType: `boole","readmeFilename":""}