open-index/open-npm huggingface dataset:
npm package: @mgarlik/datastore
Description: Full DataStoreProvider package extracted from src/dataStore with REST and Socket support.
Latest version: 0.1.1

# @mgarlik/datastore

Standalone DataStore package extracted from `src/dataStore` with its original behavior:

- React DataStore provider and hooks
- REST synchronization helpers
- Socket message handling
- Pluggable persistence storage

## Install

```bash
npm install @mgarlik/datastore
```

Optional Expo SQLite adapter:

```bash
npm install expo-sqlite
```

## Build

```bash
npm run typecheck
npm run build
```

## Exports

- `DataStoreProvider`
- `useDataProvider`
- `useDocument`
- `useProviderActions`
- package types

## Persistence

The main package no longer depends on `expo-sqlite` directly. To enable local persistence, pass a storage adapter to `DataStoreProvider`.

Expo example:

```ts
import { DataStoreProvider } from "@mgarlik/datastore";
import { createExpoSQLiteStorage } from "@mgarlik/datastore/expo-sqlite";

const storage = createExpoSQLiteStorage("modelaz.db");
```

Then:

```tsx
<DataStoreProvider storage={storage} usePersistentStorage>
  {/* app */}
</DataStoreProvider>
```
npm package: @mgarnier11/my-canvas
Description: mgarnier11 personnal fork of node-canvas v2.11.2
Author: mgarnier11
Latest version: 1.0.3

Package initially coming from : https://github.com/Automattic/node-canvas all credits are due to the original authors.

Feel free to use it, but considering i only made the changes for my personnal use only, i wont be updating this package if anything new comes to the original package. (node-canvas version : v2.11.2)

How to build

- Build the dockerfile
- Run the dockerfile and add a bind mount to the repo folder
- Enter the container created and install node 18.11.0
- Go to the mounted folder and run these commands :

```bash
npm install -g node-gyp
npm install --ignore-scripts
apt-get install pax-utils
cp prebuild/Linux/binding.gyp binding.gyp
node-gyp rebuild -j 2
. prebuild/Linux/bundle.sh
```

- You will now have the prebuild binaries in the canvas.tar.gz file