Your browser tab
is a node.

SharedProtocol (SP) is a JavaScript library that gives a web page a real filesystem, a database, shared memory and a peer-to-peer network. No server, no account, no install step beyond one script tag.

This page just started SharedProtocol
Status
Loading sharedprotocol.js…
Your address
–
Version
–
Functions
–

Three pieces, one protocol

SP

sharedprotocol.js runs in the browser. Files, key-value store, SQL tables, pub/sub, shared memory, snapshots and peer networking, all stored on the visitor's own device.

SP docs

SPP

The SharedProtocol Protocol: a small binary framing (26-byte header, CRC32) for talking to a host. sharedprotocol.c is a terminal app that speaks it and bridges your page to the machine it runs on.

SPP docs

LE

LocalEnterprise is a single C file for organisations: a tamper-evident audit log, a policy engine, a jailed filesystem, an HTTP server, and the .spce scripting language. Linux only.

LE docs

Downloads

Every file is the real source, served as is. Check the SHA-256 against the table after downloading.

FileWhat it isSizeSHA-256
sharedprotocol.jsSharedProtocol for the browser, v5.0.01103.4 KB6dab43ba9e080cc62ebea3209fe76ac927958b7947f37a47789f84ddf93b07e4
sharedprotocol.cSPP terminal app and bridge host, v1.1.0215.1 KBf39032e2d170a2e8b5e4912c3ba6e31e23ffaae7d0768e33d65ef878e3f45961
localenterprise.cLocalEnterprise server, v1.1.0325.7 KB24e7fc024570cba5ed19b02dcaf1f113ffbc76659d4b3bcbfecedd5c1f5e5565
LOCALENTERPRISE.mdLocalEnterprise reference10.0 KB85bd09883baec48e1c676e886893dfb8d7f3b26f2fb2d13c578eeb496bd02faa
example.spceExample SPCodeE script1.0 KB987dbc4af4e2bcd40959444b50fb2eee7603b2823c4b3d2ae3a70db9802b22d4
LICENSEMIT License1.0 KB682fd197ac74807d7691b9ce1d5bf8b1f5693a5b6a0d2f06947c14f04d69cb84

Download everything (.zip)

Use it

<script src="sharedprotocol.js"></script>
<script>
  sp.ready().then(async () => {
    console.log(sp.identity());
  });
</script>
gcc -O2 -o sharedprotocol sharedprotocol.c -lpthread
./sharedprotocol --site-used this-site.example
gcc -O2 -Wall -Wextra -o localenterprise localenterprise.c -lpthread
./localenterprise --fse-root /srv/enterprise --state-dir /var/lib/le

Build flags beyond these, and every option, are in the docs.

Content and responsibility

SharedProtocol is software. It is not a hosting service, a file-sharing site or a content platform, and the people who wrote it do not run one.

  • Nothing is uploaded to us. Files you create or receive live in your own browser storage or on machines you run. When peers exchange files, they go directly between the peers' devices. The project operates no server that stores, relays for the public or indexes user files, and it has no ability to see them.
  • You are responsible for what you store, share and send. If you upload, distribute or otherwise make available copyrighted material, or anything else you do not have the right to share, that is your act and your responsibility, not the author's. The same goes for anyone who runs a node, a host or an LE server and chooses what it holds or serves.
  • No encouragement. The software is for legitimate use. Do not use it to infringe copyright or anyone else's rights, or to break the law where you live. The author does not endorse such use and is not a party to it.
  • Operators answer for their own deployments. If you run LE or a public SP-based service, you are the operator. Licensing, takedown handling, record-keeping and data-protection duties in your country are yours.
  • No warranty. The software is provided under the MIT License, “as is”, without warranty of any kind. The author is not liable for any claim, damages or other liability arising from its use.

This notice explains how the project works and who does what. It is not legal advice, and laws differ between countries. If you run a service built on this software, ask a lawyer where you are.