> For the complete documentation index, see [llms.txt](https://alex-corvi.gitbook.io/tydb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alex-corvi.gitbook.io/tydb/undefined.md).

# TyDB

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

![](https://3422004128-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5x-OYpWMkttcJ8qdHj%2F-M5x2g7uKPAd5qoafQ0G%2F-M5x4DbL79NDygS-rJFE%2Flogo.ts.png?alt=media\&token=23262157-4d1f-4a84-8c36-dd6167225760)

## 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 (45 KB, not gzipped).
* Based on NeDB.

![Different ways of instantiating the database](https://3422004128-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5x-OYpWMkttcJ8qdHj%2F-M671f5rYkuEFmVA0wP5%2F-M676op4rh2RPaqQOiV5%2Fimage.png?alt=media\&token=a6b03142-ea5e-49ba-9160-ddf6b9ddb228)
