0.17.7 • Published 2 months ago

@fireproof/connect v0.17.7

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

@fireproof/connect

The connectors work with Fireproof's encrypted blockstore allowing you to select the best cloud provider for your app. The blockstore itself can be used with any CID-based workload, providing a pluggable alternative to Helia.

Fireproof is an embedded JavaScript document database that runs in the browser (or anywhere with JavaScript) and connects to any cloud. Read on for pointers to connect to PartyKit, S3, IPFS, and more. Learn about the connector architecture in the concept guide.

This is the base module, so you likely won't install it directly, but rather one of the connectors below. They are split into separate modules to keep the bundle size down.

Get started

We assume you already have an app that uses Fireproof in the browser, and you want to setup collaboration among multiple users via the cloud or peer-to-peer. To write your first Fireproof app, see the Fireproof quickstart, othwerwise read on.

Connectors

  • 🎈 PartyKit - best for high-performance, uses websockets and CloudFlare workers to manage a real-time group. Adding Fireproof requires one-line of config, and it syncs in it's own room so you can use it with your existing PartyKit apps.
  • S3 - to self-host your data, deploy this SAM template that provides validating signed S3 upload urls. Because Fireproof is immutable, content-addressed, and end-to-end encrypted, it's safe to run this bucket in public without worrying about unauthorized data corruption or leaks.
  • 🪐 IPFS - free for app developers, the IPFS connector uses UCAN to provide self-soveriegn user auth, and web3.storage to upload to IPFS.
  • REST - simple Node.js backend, we'd love your contributions to the server in scripts/rest-server.js! Take a look at the client in src/store-remote.ts to see two endpoints you'll need to implement.
  • Filesystem & Browser - mentioning for completeness, although these are part of the core package and don't require any additional installation aside from using the node bundle when appropriate.

Contributing

To run the tests, run them from the packages/fireproof directory. See also packages/fireproof/test/www for plain HTML test examples. To build the project:

pnpm install
npm run build

See the root level README for instructions on how file bug reports, pull requests, etc.

0.17.7

2 months ago

0.17.6

2 months ago

0.17.5

3 months ago

0.17.4

3 months ago

0.17.3

3 months ago

0.17.2

3 months ago

0.17.0

4 months ago

0.17.1

4 months ago

0.16.3

4 months ago

0.16.1

4 months ago

0.16.2

4 months ago

0.16.0

4 months ago

0.15.1

5 months ago

0.14.2

5 months ago

0.14.1

7 months ago

0.14.0

7 months ago

0.13.16

7 months ago

0.13.15

7 months ago

0.13.14

7 months ago

0.13.13

7 months ago

0.13.12

7 months ago

0.13.11

7 months ago

0.13.10

7 months ago

0.13.9

7 months ago

0.13.8

8 months ago

0.13.7

8 months ago

0.13.6

8 months ago

0.13.5

8 months ago

0.13.4

8 months ago

0.13.3

8 months ago

0.13.2

8 months ago

0.13.1

8 months ago

0.13.0

8 months ago