npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

turtledb-com

v0.0.18

Published

Live data presented everywhere (with history)

Downloads

33

Readme

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

  • The server is a digital ocean droplet running ubuntu.
  • node 22 (https://joshtronic.com/2024/05/26/ubuntu-nodejs-22-install/)
  • yarn and PM2 installed globally
  • nginx and certbot (https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04)
  • the turtledb-com repo (https://github.com/turtledb-com/turtledb-com)