0.0.14 • Published 8 months ago

turtledb-com v0.0.14

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
8 months ago

turtledb-com

Live data presented everywhere (with history)

THIS PROJECT IS NOT PRODUCTION READY

Please interpret this README.md as speculative fiction. There are several critical tasks remaining before the example will work.

  • I'm evaluating the cost effectiveness of hosting companies (opening a port to my s3-peer isn't included in digital ocean's "app" concept)
  • service worker crashes (easily remedied with chrome://serviceworker-internals but... yeah, that's not production)
  • memory leaks (were expected and not problematic for development but... need abatement before actual users)

Overview

The name "turtledb-com" is a reference to this "Turtles All the Way Down" idiom.

turtledb-com is a version control database, a protocol, and a service provider. It includes a light-weight built-in display framework.

turtledb-com is a version control database

In this project, a Turtle is an encoded JavaScript value. Turtle encoding isn't compact but it allows us to describe Turtles as combinations of previously encoded Turtles. Turtles are encoded by appending a new head (potentially) referencing the previous Turtles. A Commit special type of Turtle that is signed by the owner of a stream and includes an additional meta-Turtle describing the new Turtle-state.

turtledb-com is a protocol

Turtles can be streamed just by sending their bytes. Because new Turtles are always combinations of previous Turtles we are only sending new/missing sub-Turtles. As more Turtles are streamed our dictionary of sub-Turtles grows. As the dictionary grows, the efficiency of the protocol increases.

turtledb-com is a service provider

turtledb-com as a service provides a file-system for virtual computers described in JavaScript, HTML, and CSS.

turtledb.com is the built-in service provider designed to handle realistic-levels of human-scale usage for free.

Realistic-levels of human-scale usage

Using a keyboard, maximum human-scale data output is around 18 baud (212 wpm). 1MB / 18 baud == 16+ hours. Realistically though... unless we're in data-entry, our data output is a few kB/day of highly-repetetive text.

Usage example

Create and clone your Turtle

  1. Go to turtledb.com and login
  2. open a new folder in a terminal that has node installed
  3. npx --package=turtledb-com fspeer (you'll be prompeted to login)
  4. open your new folder with the IDE of your choice

Modify your Turtle

  1. edit /components/start.js
  2. save
  3. notice that your log-in page includes your change

Deeper dive documentation (TODO)

  • Encoding/decoding
  • The Recaller
  • Uint8ArrayLayerPointer and Committer
  • h`` and render()
  • how the start page works

What's running on the server

0.0.10

8 months ago

0.0.11

8 months ago

0.0.12

8 months ago

0.0.14

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

9 months ago