mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:01:08 +02:00
Implement SpiralDB - a novel data storage format that encodes structured data into PNG images using an 8-color palette. Data grows in a spiral pattern from the center outward, enabling infinite expansion. Features: - 8-color palette (3-bit per pixel) for compression robustness - Spiral coordinate system with ring-based organization - Schema-based serialization (int, bool, string, timestamp, arrays) - Record management with CRUD operations and status tracking - PNG export/import with pako compression - Browser support (Canvas, Blob, DataURL) - Todo schema as reference implementation Storage structure: - Ring 0: Magic byte (validation) - Ring 1: Database header (version, flags, counts) - Ring 2: Schema definition - Ring 3+: Master index (spans multiple rings if needed) - Ring 4+: Record data
54 lines
1 KiB
JSON
54 lines
1 KiB
JSON
{
|
|
"name": "@manacore/spiral-db",
|
|
"version": "0.1.0",
|
|
"description": "Pixel-based spiral database - store structured data in images",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"module": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"type-check": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"pako": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^20.19.25",
|
|
"@types/pako": "^2.0.4",
|
|
"tsup": "^8.5.1",
|
|
"tsx": "^4.21.0",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^1.6.1"
|
|
},
|
|
"peerDependencies": {
|
|
"sharp": "^0.33.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"sharp": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"src"
|
|
],
|
|
"keywords": [
|
|
"pixel",
|
|
"database",
|
|
"spiral",
|
|
"image",
|
|
"storage",
|
|
"encoding"
|
|
],
|
|
"license": "MIT"
|
|
}
|