open-index/open-npm huggingface dataset:
npm package: @soketi/brain
Description: `@soketi/brain` is an abstraction package that handles the caching of data in memory.
Latest version: 0.1.4

# @soketi/brain

`@soketi/brain` is an abstraction package that handles the caching of data in memory.

## Usage

```ts
import { LocalBrain } from '@soketi/brain';

const brain = new LocalBrain();

await brain.set('key', 'value');
await brain.get('key');
```

### Brains

We are planning to support multiple types of brains.

- [x] `LocalBrain` - stores data in memory, in the same process; it's not shared between processes
- [ ] `RedisBrain` - stores data in Redis
- [ ] `MemcachedBrain` - stores data in Memcached
- [ ] `MongoBrain` - stores data in MongoDB
- [ ] `SqlBrain` - stores data in a SQL database, using Knex

### Custom Brains

You can create your own brain by implementing the `Brain` interface:

```ts
import { Brain } from '@soketi/brain';

class MyBrain implements Brain {
  // ...
}

const brain = new MyBrain();
```

## Development

This library was generated with [Nx](https://nx.dev).

### Building

Run `nx build brain` to build the library.

### Running unit tests

Run `nx test brain` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @soketi/gossiper
Description: > Docs are WIP
Latest version: 0.1.4

# gossiper

> Docs are WIP

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build gossiper` to build the library.

## Running unit tests

Run `nx test gossiper` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @soketi/p2p
Description: > Docs are WIP
Latest version: 0.1.4

# p2p

> Docs are WIP

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build p2p` to build the library.

## Running unit tests

Run `nx test p2p` to execute the unit tests via [Vitest](https://vitest.dev/).