{"_id":"@cyberstrike-io/tui-core","name":"@cyberstrike-io/tui-core","dist-tags":{"latest":"0.1.75"},"versions":{"0.1.75":{"name":"@cyberstrike-io/tui-core","module":"index.js","main":"index.js","types":"index.d.ts","type":"module","version":"0.1.75","description":"CyberstrikeTUI is a TypeScript library for building terminal user interfaces (TUIs)","author":{"name":"Cyberstrike Team"},"bugs":{"url":"https://github.com/cyberstrike/cyberstrike/issues"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/cyberstrike/cyberstrike.git","directory":"packages/tui-core"},"exports":{".":{"import":"./index.js","require":"./index.js","types":"./index.d.ts"},"./3d":{"import":"./3d.js","require":"./3d.js","types":"./3d.d.ts"},"./testing":{"import":"./testing.js","require":"./testing.js","types":"./testing.d.ts"},"./parser.worker":{"import":"./lib/tree-sitter/parser.worker.js","require":"./lib/tree-sitter/parser.worker.js","types":"./lib/tree-sitter/parser.worker.d.ts"}},"dependencies":{"bun-ffi-structs":"0.1.2","diff":"8.0.2","jimp":"1.6.0","marked":"17.0.1","yoga-layout":"3.2.1"},"devDependencies":{"@types/bun":"latest","@types/node":"^24.0.0","@types/three":"0.177.0","commander":"^13.1.0","typescript":"^5","web-tree-sitter":"0.25.10"},"peerDependencies":{"web-tree-sitter":"0.25.10"},"optionalDependencies":{"@dimforge/rapier2d-simd-compat":"^0.17.3","bun-webgpu":"0.1.4","planck":"^1.4.2","three":"0.177.0","@cyberstrike-io/tui-core-darwin-x64":"0.1.75","@cyberstrike-io/tui-core-darwin-arm64":"0.1.75","@cyberstrike-io/tui-core-linux-x64":"0.1.75","@cyberstrike-io/tui-core-linux-arm64":"0.1.75","@cyberstrike-io/tui-core-win32-x64":"0.1.75","@cyberstrike-io/tui-core-win32-arm64":"0.1.75"},"_id":"@cyberstrike-io/tui-core@0.1.75","gitHead":"221eaf53d58ced28262bc536785b454bd1833bf7","homepage":"https://github.com/cyberstrike/cyberstrike#readme","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-8Ri0qe+EueDfczvVaVFOUZZLkGRY8HLcwLOCo9+YraQhq9Oxw7bg4eVQ5w+4f//bSDZvBr8L8F704A3xYfnMHA==","shasum":"8665ff806af1de79a9399c693b2acef6314abe20","tarball":"https://registry.npmjs.org/@cyberstrike-io/tui-core/-/tui-core-0.1.75.tgz","fileCount":126,"unpackedSize":10035264,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC4cd58dpWmU18U6TeVXQNU6QC0JBjImTiiIXZlw8nQtwIhAJlcjoOEkiDa8Kz98dummSUTBOcx5GJt9JmZDojb+QsM"}]},"_npmUser":{"name":"orhnyldrm","email":"contact@orhanyildirim.us"},"directories":{},"maintainers":[{"name":"orhnyldrm","email":"contact@orhanyildirim.us"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/tui-core_0.1.75_1769916319175_0.025783591708515408"},"_hasShrinkwrap":false}},"time":{"created":"2026-02-01T03:25:19.096Z","0.1.75":"2026-02-01T03:25:19.384Z","modified":"2026-02-01T03:25:19.629Z"},"maintainers":[{"name":"orhnyldrm","email":"contact@orhanyildirim.us"}],"description":"CyberstrikeTUI is a TypeScript library for building terminal user interfaces (TUIs)","homepage":"https://github.com/cyberstrike/cyberstrike#readme","repository":{"type":"git","url":"git+https://github.com/cyberstrike/cyberstrike.git","directory":"packages/tui-core"},"author":{"name":"Cyberstrike Team"},"bugs":{"url":"https://github.com/cyberstrike/cyberstrike/issues"},"license":"MIT","readme":"# @cyberstrike/tui-core\n\nCyberstrike TUI Core is a TypeScript library for building terminal user interfaces (TUIs). It is currently in\ndevelopment and is not ready for production use.\n\n## Documentation\n\n- [Getting Started](docs/getting-started.md) - API and usage guide\n- [Development Guide](docs/development.md) - Building, testing, and contributing\n- [Tree-Sitter](docs/tree-sitter.md) - Syntax highlighting integration\n- [Renderables vs Constructs](docs/renderables-vs-constructs.md) - Understanding the component model\n- [Environment Variables](docs/env-vars.md) - Configuration options\n\n## Install\n\n```bash\nbun install @cyberstrike/tui-core\n```\n\n## Build\n\n```bash\nbun run build\n```\n\nThis creates platform-specific libraries that are automatically loaded by the TypeScript layer.\n\n## Examples\n\n```bash\nbun install\nbun run src/examples/index.ts\n```\n\n## Benchmarks\n\nRun native performance benchmarks:\n\n```bash\nbun run bench:native\n```\n\nSee [src/zig/bench.zig](src/zig/bench.zig) for available options like `--filter` and `--mem`.\n\n## CLI Renderer\n\n### Renderables\n\nRenderables are hierarchical objects that can be positioned, nested, styled and rendered to the terminal:\n\n```typescript\nimport { createCliRenderer, TextRenderable } from \"@cyberstrike/tui-core\"\n\nconst renderer = await createCliRenderer()\n\nconst obj = new TextRenderable(renderer, { id: \"my-obj\", content: \"Hello, world!\" })\n\nrenderer.root.add(obj)\n```\n","readmeFilename":"README.md","_rev":"1-812d5fa8302fb7da9afd8d96045cc0e5"}