Files

136 lines
5.6 KiB
JSON
Raw Permalink Normal View History

2025-08-15 13:03:59 +02:00
{
"name": "@opentui/core",
2026-02-21 17:38:48 +01:00
"description": "OpenTUI is a TypeScript library on a native Zig core for building terminal user interfaces (TUIs)",
2025-08-15 13:03:59 +02:00
"repository": {
"type": "git",
"url": "https://github.com/anomalyco/opentui",
2025-08-19 00:57:18 +02:00
"directory": "packages/core"
2025-08-15 13:03:59 +02:00
},
"types": "src/index.ts",
"module": "src/index.ts",
2025-08-17 23:14:21 +02:00
"main": "src/index.ts",
2026-09-07 10:42:03 +00:00
"version": "0.5.11",
2025-08-15 13:03:59 +02:00
"type": "module",
"imports": {
"#opentui/runtime-assets": {
"bun": "./src/platform/runtime-assets.bun.ts",
"node": "./src/platform/runtime-assets.node.ts",
"default": "./src/platform/runtime-assets.node.ts"
}
},
2025-08-15 13:03:59 +02:00
"scripts": {
"build": "bun run build:native && bun run build:lib",
"build:dev": "bun run build:native:dev && bun run build:lib",
"build:lib": "bun scripts/build.ts --lib",
"prepare:native": "cd ../native && bun run prepare:zig",
"build:native": "bun run prepare:native && bun scripts/build.ts --native",
"build:native:dev": "bun run prepare:native && bun scripts/build.ts --native --dev",
"vendor:update:images": "cd ../native && sh src/vendor/update.sh",
"vendor:update:zig": "cd ../native && sh src/vendor/update-zig-deps.sh",
"test:native": "cd ../native && bun run test",
"bench:native": "cd ../native && bun run bench --",
"bench:native:ffi": "cd ../native && bun run bench:ffi",
"bench:js": "bun src/benchmark/js-benchmark.ts",
"bench:image-pool": "bun src/benchmark/image-pool-benchmark.ts",
"bench:js:node": "bun scripts/bench-js-node.ts",
2026-06-11 09:32:11 +02:00
"bench:layout": "bun src/benchmark/layout-benchmark.ts",
"bench:box-draw": "bun src/benchmark/box-draw-benchmark.ts",
"bench:render-traversal": "bun src/benchmark/render-traversal-benchmark.ts",
"bench:render-runtimes": "bun src/benchmark/render-runtime-benchmark.ts",
"bench:mouse-events": "bun src/benchmark/mouse-event-benchmark.ts",
"bench:render-compare": "bun src/benchmark/render-runtime-compare.ts",
"bench:ffi-fast-path": "bun src/benchmark/ffi-fast-path-benchmark.ts",
"bench:image-import": "bun src/benchmark/image-import-benchmark.ts",
"bench:ffi-fast-path-paired": "bun src/benchmark/ffi-fast-path-paired-benchmark.ts",
"bench:ffi-fast-path-compare": "bun src/benchmark/ffi-fast-path-compare.ts",
"stress:ffi-fast-path": "bun src/benchmark/ffi-fast-path-stress.ts",
"bench:text-table": "bun src/benchmark/text-table-benchmark.ts",
"bench:text-table-width": "bun src/benchmark/text-table-width-benchmark.ts",
"bench:ts": "bun src/benchmark/native-span-feed-benchmark.ts --suite=quick --json=src/benchmark/latest-quick-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=default --json=src/benchmark/latest-default-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=large --json=src/benchmark/latest-large-bench-run.json && bun src/benchmark/native-span-feed-benchmark.ts --suite=all --json=src/benchmark/latest-all-bench-run.json && bun src/benchmark/native-span-feed-async-benchmark.ts --json=src/benchmark/latest-async-bench-run.json",
2025-09-10 08:57:39 +02:00
"publish": "bun scripts/publish.ts",
"test:dist": "bun scripts/dist-test.ts",
"test:standalone": "bun scripts/standalone-test.ts",
"test:js": "bun test --path-ignore-patterns='src/zig/zig-pkg/**'",
"test:js:node": "bun scripts/test-node.ts",
"typecheck": "tsc --noEmit -p tsconfig.build.json",
"test": "bun run test:js"
2025-08-15 13:03:59 +02:00
},
"license": "MIT",
"devDependencies": {
"@opentui/keymap": "workspace:*",
2026-09-04 21:09:49 +02:00
"@types/bun": "1.4.1",
2025-12-11 16:36:48 +01:00
"@types/node": "^24.0.0",
"commander": "^13.1.0",
"typescript": "^5",
"web-tree-sitter": "0.25.10"
2025-08-15 13:03:59 +02:00
},
"dependencies": {
"bun-ffi-structs": "0.3.1",
"diff": "9.0.0",
"marked": "17.0.1",
"string-width": "7.2.0",
2026-06-11 09:32:11 +02:00
"strip-ansi": "7.1.2"
2025-08-15 13:03:59 +02:00
},
"peerDependencies": {
"web-tree-sitter": "0.25.10"
},
2025-08-15 13:03:59 +02:00
"optionalDependencies": {
2026-09-07 10:42:03 +00:00
"@opentui/core-darwin-x64": "0.5.11",
"@opentui/core-darwin-arm64": "0.5.11",
"@opentui/core-linux-x64": "0.5.11",
"@opentui/core-linux-arm64": "0.5.11",
"@opentui/core-win32-x64": "0.5.11",
"@opentui/core-win32-arm64": "0.5.11",
"@opentui/core-linux-x64-musl": "0.5.11",
"@opentui/core-linux-arm64-musl": "0.5.11"
2025-08-15 13:03:59 +02:00
},
2025-09-17 10:10:07 +02:00
"exports": {
".": {
"types": "./src/index.ts",
"bun": "./src/index.ts",
"node": "./src/index.ts",
2025-09-17 10:10:07 +02:00
"import": "./src/index.ts"
},
"./testing": {
"types": "./src/testing.ts",
"bun": "./src/testing.ts",
2025-09-17 10:10:07 +02:00
"import": "./src/testing.ts"
2025-10-01 01:19:23 +02:00
},
2026-03-12 12:03:20 +01:00
"./runtime-plugin": {
"types": "./src/runtime-plugin.ts",
"import": "./src/runtime-plugin.ts"
},
"./runtime-plugin-support": {
"types": "./src/runtime-plugin-support.ts",
"import": "./src/runtime-plugin-support.ts"
},
2026-05-01 21:01:19 +02:00
"./runtime-plugin-support/configure": {
"types": "./src/runtime-plugin-support-configure.ts",
"import": "./src/runtime-plugin-support-configure.ts"
},
2026-06-11 09:32:11 +02:00
"./yoga": {
"types": "./src/yoga.ts",
"bun": "./src/yoga.ts",
2026-06-11 09:32:11 +02:00
"import": "./src/yoga.ts"
},
"./tree-sitter/update-assets": {
"types": "./src/lib/tree-sitter/update-assets.ts",
"import": "./src/lib/tree-sitter/update-assets.ts"
},
2025-10-01 01:19:23 +02:00
"./parser.worker": {
"types": "./src/lib/tree-sitter/parser.worker.ts",
"bun": "./src/lib/tree-sitter/parser.worker.ts",
"node": "./src/lib/tree-sitter/parser.worker.ts",
"import": "./src/lib/tree-sitter/parser.worker.ts"
},
"./node-assets": {
"types": "./src/node-assets.ts",
"import": "./src/node-assets.ts"
2025-09-17 10:10:07 +02:00
}
},
2025-08-15 13:03:59 +02:00
"engines": {
2026-09-04 21:09:49 +02:00
"bun": ">=1.3.0",
"node": ">=26.4.0"
2025-08-15 13:03:59 +02:00
}
}