mcard-js
Version:
MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers
107 lines • 3.23 kB
JSON
{
"name": "mcard-js",
"version": "2.1.31",
"description": "MCard - Content-addressable storage with cryptographic hashing, handle resolution, and vector search for Node.js and browsers",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"browser": {
"types": "./dist/index.browser.d.ts",
"import": "./dist/index.browser.js",
"default": "./dist/index.browser.js"
},
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./node": {
"types": "./dist/storage/SqliteNodeEngine.d.ts",
"import": "./dist/storage/SqliteNodeEngine.js"
},
"./browser": {
"types": "./dist/storage/SqliteWasmEngine.d.ts",
"import": "./dist/storage/SqliteWasmEngine.js"
}
},
"files": [
"dist",
"schema",
"README.md",
"LICENSE"
],
"scripts": {
"dev": "vite",
"build": "npm run sync:schema && tsup src/index.ts src/index.browser.ts src/storage/SqliteNodeEngine.ts src/storage/SqliteWasmEngine.ts --format esm,cjs --dts",
"build:check": "tsc --noEmit",
"test": "vitest",
"test:run": "vitest run",
"preview": "vite preview",
"demo:clm": "tsx examples/run-clm.ts",
"demo:lambda": "tsx examples/lambda-demo.ts",
"clm:all": "tsx examples/run-all-clms.ts",
"clm:chapter": "tsx examples/run-all-clms.ts",
"clm:lambda": "tsx examples/run-lambda-clms.ts",
"sync:schema": "node scripts/sync-schemas.js"
},
"dependencies": {
"@grafana/faro-web-sdk": "^2.0.2",
"@grafana/faro-web-tracing": "^2.0.2",
"@mlc-ai/web-llm": "^0.2.46",
"idb": "^7.1.1",
"mlly": "^1.8.0",
"sql.js": "^1.13.0",
"ws": "^8.19.0",
"yaml": "^2.8.2"
},
"optionalDependencies": {
"better-sqlite3": "^11.6.0",
"sqlite-vec": "^0.1.7-alpha.2"
},
"devDependencies": {
"@types/better-sqlite3": "^7.6.11",
"@types/node": "^20.0.0",
"@types/ws": "^8.18.1",
"tsup": "^8.5.1",
"tsx": "^4.21.0",
"typescript": "^5.3.0",
"vite": "^5.0.0",
"vitest": "^1.0.0"
},
"keywords": [
"mcard",
"content-addressable",
"hash",
"sha256",
"storage",
"indexeddb",
"sqlite",
"wasm",
"browser",
"nodejs",
"handle",
"vector-search",
"fts",
"monad",
"either",
"maybe",
"ptr",
"polynomial-type-runtime"
],
"author": "Ben Koo <koo0905@gmail.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/xlp0/MCard_TDD.git",
"directory": "mcard-js"
},
"bugs": {
"url": "https://github.com/xlp0/MCard_TDD/issues"
},
"homepage": "https://github.com/xlp0/MCard_TDD/tree/main/mcard-js#readme",
"engines": {
"node": ">=18.0.0"
}
}