Skip to content

a multiversal exploration/writing tool for the cyborg collective

Notifications You must be signed in to change notification settings

tel-0s/multiloom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Multiloom

Multiloom is a backend server for sharing Loom trees with a focus on collaborative writing. It is currently in early development and is not yet ready for use.

Server

The server-side code for Multiloom is contained in the server.py file. It defines several routes for handling HTTP requests, including creating, updating, and deleting nodes in a database, as well as retrieving all nodes after a given timestamp.

To use the server, you'll need to have a database set up and running. You'll also need to set the necessary environment variables, including TREE_FILE, SERVER_PASSWORD, and SERVER_PORT. If you want to load an existing tree from a JSON file, you'll also need to set the TREE_JSON environment variable. (This is currently only compatible with trees generated by Loomsidian).

Once you have those set up, you can run the server by running the server.py file. The server will listen for incoming HTTP requests on the specified port.

Routes

The following routes are defined in the server.py file:

  • POST /nodes: Create a new node in the database.
  • PUT /nodes/<node_id>: Update an existing node in the database.
  • DELETE /nodes/<node_id>: Delete a node from the database.
  • GET /nodes/get/<timestamp>: Retrieve all nodes from the database after a given timestamp.

Dependencies

This file requires the following dependencies:

  • flask: A Python web framework for handling HTTP requests.

Please note that Multiloom is currently in early development and is not yet ready for use.

TODO

  • Add support for loading Bonsai & python-Loom trees from JSON files.

About

a multiversal exploration/writing tool for the cyborg collective

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages