@klastra/ksync
Version:
Real-time sync engine for modern applications with 300k+ ops/sec performance
124 lines (123 loc) • 3.81 kB
JSON
{
"name": "@klastra/ksync",
"version": "0.2.5-internal.test.5",
"description": "Real-time sync engine for modern applications with 300k+ ops/sec performance",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.js"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.js",
"require": "./dist/react/index.js"
},
"./server": {
"types": "./dist/server/index.d.ts",
"import": "./dist/server/index.js",
"require": "./dist/server/index.js"
},
"./storage/*": {
"types": "./dist/storage/*.d.ts",
"import": "./dist/storage/*.js",
"require": "./dist/storage/*.js"
},
"./sync/*": {
"types": "./dist/sync/*.d.ts",
"import": "./dist/sync/*.js",
"require": "./dist/sync/*.js"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"scripts": {
"build": "npm run clean && npm run build:types && npm run build:server",
"build:bun": "echo 'Using TypeScript compiler for ESM compatibility'",
"build:types": "tsc -p tsconfig.build.json --outDir dist",
"build:server": "tsc server/*.ts --outDir dist --rootDir . --declaration --module Node16 --target ES2022 --moduleResolution Node16",
"clean": "rm -rf dist",
"typecheck": "tsc --noEmit",
"test": "node test-runner.js",
"test:watch": "node test-runner.js --watch",
"test:error-only": "npx tsx test-error-only.ts",
"test:package": "npm test && npm run test:connection-mgmt",
"test:real-sync": "npx tsx scripts/test-real-sync.ts",
"test:connection-mgmt": "npx tsx scripts/test-connection-management.ts",
"benchmark": "npx tsx scripts/real-benchmark.ts",
"benchmark:extended": "bun run scripts/extended-benchmark.ts",
"benchmark:quick": "bun run scripts/quick-scale-test.ts",
"benchmark:final": "bun run scripts/final-benchmark.ts",
"benchmark:real": "npx tsx scripts/real-benchmark.ts",
"example:basic": "bun run examples/basic.ts",
"example:sync": "bun run examples/sync.ts",
"example:advanced": "bun run examples/advanced-features.ts",
"example:streaming": "bun run examples/streaming.ts",
"example:working": "bun run examples/working-chat-example.ts",
"example:collaborative": "npx tsx examples/collaborative-editor.ts",
"server": "bun run server/websocket-server.ts",
"dev": "tsc -p tsconfig.build.json --watch",
"prepublishOnly": "npm run clean && npm run build && npm run test:package && npm run benchmark:real",
"prepack": "npm run build",
"prepare": "npm run build"
},
"keywords": [
"sync",
"real-time",
"local-first",
"event-sourcing",
"websocket",
"offline-first",
"typescript",
"bun",
"indexeddb",
"collaboration",
"enterprise",
"performance",
"presence",
"streaming",
"300k-ops",
"scalable"
],
"author": "Klastra Labs",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/klastra-ai/ksync.git"
},
"homepage": "https://github.com/klastra-ai/ksync#readme",
"bugs": {
"url": "https://github.com/klastra-ai/ksync/issues"
},
"dependencies": {
"ws": "^8.14.2",
"zod": "^3.22.4"
},
"devDependencies": {
"@types/jest": "^29.5.14",
"@types/react": "^19.1.7",
"@types/ws": "^8.5.8",
"bun-types": "latest",
"tsx": "^4.19.4",
"typescript": "^5.8.3"
},
"peerDependencies": {
"drizzle-orm": "^0.29.0",
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"drizzle-orm": {
"optional": true
},
"react": {
"optional": true
}
}
}