# Introduction

<div align="center"><img src="https://2831894753-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbLzG7u_bt3-zigj5-h%2F-MbbmLfhL0gcS2gEGezg%2F-MbbmXSet4Jg9IVN0BXH%2Fezgif.com-gif-maker.png?alt=media&#x26;token=452d9cb7-f362-4405-bada-1fd40de9d306" alt="Dreamy-db"></div>

* Promise Based API

* Object-oriented

* Persistent storage

* Configurable

* Performant

* [**Adapters**](https://github.com/Dreamyplayer/dreamy-db#usage): By default, data is cached in memory. Optionally, install and utilize a "storage adapter".

* [**Namespaces**](https://github.com/Dreamyplayer/dreamy-db#namespaces): Namespaces isolate elements within the database to enable useful functionalities.

* [**Custom Serializers**](https://github.com/Dreamyplayer/dreamy-db#custom-serializers): Utilizes its own data serialization methods to ensure consistency across various storage backends.

* [**Third-Party Adapters**](https://github.com/Dreamyplayer/dreamy-db#third-party-adapters): You can optionally utilize third-party storage adapters or build your own.

* [**Embeddable**](https://github.com/Dreamyplayer/dreamy-db#embeddable): Designed to be easily embeddable inside modules.

* **Data Types**: Handles all the JSON types including [`Buffer`](https://nodejs.org/api/buffer.html).

* **Error Handling**: Connection errors are transmitted through, from the adapter to the main instance; consequently, connection errors do not exit or kill the process.

![Welcome to Dreamy Database 🎉](https://2831894753-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MbLzG7u_bt3-zigj5-h%2F-MbM5SzkwROXVq9_N15F%2F-MbMLjFR1DNA18uns77p%2Fundraw_welcome_cats_thqn%20\(3\).svg?alt=media\&token=b0f83309-734c-4b97-aaba-53d59b00b086)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dreamyplayer.gitbook.io/dreamy-db/master.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
