0.1.0 • Published 2 years ago

@nostrdocs/tinycollab v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

@nostrdocs/tinycollab

Tinycollab is a minimal, self-contained, test implementation of the Fluid Framework service packaged as a Nostr relay.

What is this for?

Tinycollab is for testing real-time collab experiences and applications built on Fluidframework patterns and distributed over Nostr protocol

Getting Started

You can install, build, and start this service by cloning TinyCollab from source

git clone https://github.com/nostrdocs/tinycollab.git

Build and run it locally:

npm i
npm run build
npm run start

Alternatively, you can run the latest version by

npx @nostrdocs/tinycollab@latest

Now you can test your development experience against this local instance of Tinycollab

Configuration

Port

Tinycollab uses port 7070 by default. You can change the port number by setting an environment variable named TINYCOLLAB_PORT to the desired number. For example:

$env:TINYCOLLAB_PORT=6502
npm run start

Storage

The config.json file can be used to configure the Tinylicious service.

ParameterDescriptionDefault
db.inMemoryBoolean indicating whether ops are stored in memory or to disktrue
db.pathIf db.inMemory is false the folder on disk to store the ops"/var/tmp/db"
storageStorage path for snapshots"/var/tmp/tinylicious"

See config.json for more settings and their defaults.