All Projects → thearkxd → ark.db

thearkxd / ark.db

Licence: other
Small and fast JSON database for Node and browser. 😋

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to ark.db

mongoose-auto-increment-reworked
An auto-incrementing field generator for Mongoose 4 & 5
Stars: ✭ 17 (-73.85%)
Mutual labels:  mongo, mongoose, db, mongo-db
derivejs
DeriveJS is a reactive ODM - Object Document Mapper - framework, a "wrapper" around a database, that removes all the hassle of data-persistence by handling it transparently in the background, in a DRY manner.
Stars: ✭ 54 (-16.92%)
Mutual labels:  mongo, mongoose, db
Kov Blog
A blog platform built with koa,vue and mongoose. 使用 koa ,vue 和 mongo 搭建的博客页面和支持markdown语法的博客编写平台,自动保存草稿。博客地址:https://chuckliu.me
Stars: ✭ 635 (+876.92%)
Mutual labels:  mongo, mongoose
Mean Angular4 Chat App
MEAN stack with Angular 4 Chat App
Stars: ✭ 41 (-36.92%)
Mutual labels:  mongo, mongoose
Node Typescript Mongodb
node js typescript mongodb express generator yo
Stars: ✭ 96 (+47.69%)
Mutual labels:  mongo, mongoose
Android Nosql
Lightweight, simple structured NoSQL database for Android
Stars: ✭ 284 (+336.92%)
Mutual labels:  mongo, db
Mongo Seeding
The ultimate solution for populating your MongoDB database.
Stars: ✭ 375 (+476.92%)
Mutual labels:  mongo, db
Mongoose Fuzzy Searching
Mongoose Fuzzy Searching Plugin
Stars: ✭ 94 (+44.62%)
Mutual labels:  mongo, mongoose
node-express-mongo-passport-jwt-typescript
A Node.js back end web application with REST API, user JWT authentication and MongoDB data storage using TypeScript
Stars: ✭ 51 (-21.54%)
Mutual labels:  mongo, mongoose
Mern Passport
A boilerplate example of using passport.js for authenticating a MERN application
Stars: ✭ 214 (+229.23%)
Mutual labels:  mongo, mongoose
Nest User Auth
A starter build for a back end which implements managing users with MongoDB, Mongoose, NestJS, Passport-JWT, and GraphQL.
Stars: ✭ 145 (+123.08%)
Mutual labels:  mongo, mongoose
LruClockCache
A low-latency LRU approximation cache in C++ using CLOCK second-chance algorithm. Multi level cache too. Up to 2.5 billion lookups per second.
Stars: ✭ 35 (-46.15%)
Mutual labels:  fast, fastest
graceful
Gracefully exit server (Koa), database (Mongo/Mongoose), Redis clients, and job scheduler (Redis/Bull)
Stars: ✭ 37 (-43.08%)
Mutual labels:  mongo, mongoose
Spruce
A social networking platform made using Node.js and MongoDB
Stars: ✭ 399 (+513.85%)
Mutual labels:  mongo, mongoose
authentication boilerplate
A Node based Boilerplate for register, login, request password reset password. Using Sengrid to send emails
Stars: ✭ 19 (-70.77%)
Mutual labels:  mongo, mongoose
Mean Stack Angular6 Crud Example
MEAN Stack Angular 6 CRUD Web Application
Stars: ✭ 69 (+6.15%)
Mutual labels:  mongo, mongoose
Try
Dead simple CLI tool to try Python packages - It's never been easier! 📦
Stars: ✭ 588 (+804.62%)
Mutual labels:  fast, module
nutri.gram
Nutrition is the main source of life and although it has been our secondary instinct to check for nutritional value in the food we eat, the effect any diet has on our body and health is consequential. From the fact which connotes the value of nutrition in our diet, springs the idea of nutri.gram. nutri.gram is a mobile application that scans the…
Stars: ✭ 21 (-67.69%)
Mutual labels:  mongo, mongoose
react-full-stack-starter
🎈Full-stack React boilerplate using `create-react-app`, Babel, Node.js, and express
Stars: ✭ 22 (-66.15%)
Mutual labels:  mongo, mongoose
Intro Mongo Db
[Course] Introduction to MongoDB code
Stars: ✭ 114 (+75.38%)
Mutual labels:  mongo, mongoose

ark.db

Small and fast JSON database for Node and browser.

downloads version

Installation

Warning: ark.db is requires node.js version greater than 12!

npm i ark.db

Or, if you're using yarn

yarn add ark.db

Also, if you want to use ark.db in browser

<script src="https://unpkg.com/[email protected]/dist/LocalStorage.min.js"></script>
<script>
	const db = new LocalStorage();
</script>

Features

  • Fast
  • Lightweight
  • Easy to use
  • Simple
  • Beginner friendly
  • Dot notation
  • Relative path support
  • Browser support
  • MongoDB support

Usage

MongoDB Usage

const { MongoDB } = require("ark.db");
const db = new MongoDB("your mongo connect url", "your schema name");

// To update or set your data;
await db.set("example", "test"); // -> test

// To get your data;
await db.get("example"); // -> test

// To delete your data;
await db.delete("example"); // -> true

// To increase your data;
await db.add("example", 2); // -> 2

// To decrase your data;
await db.subtract("example", 1); // -> 1

// To learn database has the data;
await db.has("example"); // -> true

// To push the data;
await db.push("example", "test"); // -> "test"

// To pull the data;
await db.pull("example", "test"); // -> []

// To get all data;
await db.all();

// To delete all data;
await db.clear();

// To create a collection;
await db.createCollection("collection name");

// To delete collection you've connected;
await db.dropCollection();

// To learn database's uptime;
db.uptime();

// To change your schema name;
db.updateModel("new schema name");

// To create a schema;
db.createSchema("schema name");

JSON Database Usage

const { Database } = require("ark.db");
const db = new Database();
// If you want you specify the file to save the data like; new Database("myDatas");

// To update or set your data;
db.set("example", "test"); // -> test

// To get your data;
db.get("example"); // -> test

// To delete your data;
db.delete("example"); // -> true

// To increase your data;
db.add("example", 2); // -> 2

// To decrase your data;
db.subtract("example", 1); // -> 1

// To learn database has the data;
db.has("example"); // -> true

// To push the data;
db.push("example", "test"); // -> "test"

// To pull the data;
db.pull("example", "test"); // -> []

// To get all data;
db.all();

// To delete all data;
db.clear();

// To get database's ping;
db.ping();

Thanks

Thanks to Stark and hmal for his helpings.

Contact

Discord Server, Theark, Stark

Changelog

### 2.7.0, 2.7.1

  • Some fixes.

2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.6.6, 2.6.7, 2.6.8, 2.6.9

  • Fixed a bug.

2.6.0

  • TypeScript rewrite.

2.4.4, 2.4., 2.4.6, 2.5.0

  • Fixed a bug.

2.4.3

  • Fixed some bugs.
  • Added options parameter while connecting to MongoDB.

2.4.2

  • Added MongoDB adapter.
  • Added MongoDB support.

2.4.1

  • Added LocalStorage adapter.
  • Added browser support.

2.4.0

  • Added pretty and write properties to some methods.
  • Added relative path feature.

2.3.1

  • Fixed multiple bugs.

2.1.1, 2.0.0, 2.3.0

  • Fixed a bug.

2.1.0

  • Added pull method.
  • Get and set methods are accelerated.

2.0.0

  • Large-scale optimizations have been made.
  • All methods are synchronous.

1.1.2

  • A little accelerated.

1.1.1

  • Fixed some bugs.

1.1.0

  • All methods are asynchronous.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].