Socket
Socket
Sign inDemoInstall

tydb

Package Overview
Dependencies
70
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tydb

An Abstraction layer for mongodb for ease of use with TypeScript


Version published
Maintainers
1
Created

Readme

Source



Strongly-typed, fast, light-weight, embedded, Mongo-like database with built-in ODM.

Documentation & Getting started

Introduction

TyDB is a database system written in typescript, its goal is to provide a strongly-typed database experience with an API and a query language similar to MongoDB.

  • It can be in-memory, or persistent (using a persistence adapter).
  • It can be used with NodeJS or in the browser.
  • It can be embedded or served over a network (like MongoDB).
  • The query language and the API is very similar to MongoDB, (except for the dot notation) and the difference is only to provide and experience with maximum type declaration.
  • Persisted in a flat file when in node (using a persistence adapter), persisted in IndexedDB when in the browser (using another adapter), and you can easily write your own adapter too.
  • Can deal with large data sets (tested against 1GB of data) and won't take too much memory.
  • It is fast.
  • It is light-weight (45KB, not gzipped).

Why?

As I was looking through embedded database systems for Nodejs, I found NeDB. however, it is not being maintained. Looking through the source code, I saw some low hanging fruits to improve it, pull requests have been submitted for years without being resolved. And this is how TyDB was conceived, under-the-hood, it is actually NeDB, but with major improvements, and here's a list of few of them:

  • Pluggable persistence layer using persistence adapter.
  • Supports all MongoDB operators.
  • Strongly typed data for all operations.
  • It can deal with large databases, unlike NeDB which had a hard limit of 256 MB.
  • Built-in ODM.
  • Multiple instances can connect on the same database.
  • Can be served over the network.

Keywords

FAQs

Last updated on 27 Apr 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc