Skip to content

Commit

Permalink
feat: Add Alwatr Store package
Browse files Browse the repository at this point in the history
This commit adds the Alwatr Store package, which is an extremely fast and compact JSON-based database that operates in memory. It includes a JSON file backup and serves over the highly accelerated Nginx. The package provides a convenient and efficient solution for data storage and retrieval. For more information, please visit [Alwatr Store](https://github.com/Alwatr/store#readme).
  • Loading branch information
alimd committed Sep 2, 2024
1 parent 7cc064e commit a77a71b
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Alwatr Store

Extremely fast and compact JSON-based database that operates in memory, includes a JSON file backup, and serve over the highly accelerated Nginx.

## for more information please visit [Alwatr Store](https://github.com/Alwatr/store#readme)
75 changes: 75 additions & 0 deletions packages/store/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"name": "@alwatr/store",
"version": "7.0.0-beta.1",
"description": "Extremely fast and compact JSON-based database that operates in memory, includes a JSON file backup, and serve over the highly accelerated Nginx.",
"author": "S. Ali Mihandoost <[email protected]>",
"keywords": [
"database",
"storage",
"json",
"nosql",
"no-sql",
"data",
"data-storage",
"file",
"typescript",
"esm",
"alwatr"
],
"type": "module",
"main": "./dist/main.cjs",
"module": "./dist/main.mjs",
"types": "./dist/main.d.ts",
"exports": {
".": {
"types": "./dist/main.d.ts",
"import": "./dist/main.mjs",
"require": "./dist/main.cjs"
}
},
"license": "MIT",
"files": [
"**/*.{js,mjs,cjs,map,d.ts,html,md}",
"!demo/**/*"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "https://github.com/Alwatr/store",
"directory": "packages/store"
},
"homepage": "https://github.com/Alwatr/store#readme",
"bugs": {
"url": "https://github.com/Alwatr/store/issues"
},
"prettier": "@alwatr/prettier-config",
"scripts": {
"b": "yarn run build",
"w": "yarn run watch",
"c": "yarn run clean",
"cb": "yarn run clean && yarn run build",
"d": "yarn run build:es && ALWATR_DEBUG=1 yarn node",
"build": "yarn run build:ts & yarn run build:es",
"build:es": "nano-build --preset=module",
"build:ts": "tsc --build",
"watch": "yarn run watch:ts & yarn run watch:es",
"watch:es": "yarn run build:es --watch",
"watch:ts": "yarn run build:ts --watch --preserveWatchOutput",
"clean": "rm -rfv dist *.tsbuildinfo"
},
"dependencies": {
"@alwatr/store-engine": "workspace:^",
"@alwatr/store-reference": "workspace:^",
"@alwatr/store-types": "workspace:^"
},
"devDependencies": {
"@alwatr/nano-build": "^1.3.8",
"@alwatr/prettier-config": "^1.0.4",
"@alwatr/tsconfig-base": "^1.2.0",
"@alwatr/type-helper": "^1.2.5",
"@types/node": "^22.5.1",
"typescript": "^5.5.4"
}
}
3 changes: 3 additions & 0 deletions packages/store/src/main.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from '@alwatr/store-engine';
export * from '@alwatr/store-reference';
export * from '@alwatr/store-types';
10 changes: 10 additions & 0 deletions packages/store/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "@alwatr/tsconfig-base/tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"emitDeclarationOnly": true,
"composite": true
},
"include": ["src/**/*.ts"]
}

0 comments on commit a77a71b

Please sign in to comment.