Skip to content

Instantly share code, notes, and snippets.

@jayrbolton
Created December 13, 2017 01:00
Show Gist options
  • Save jayrbolton/d0ed813dadfa4fd1c6632fe50be370a8 to your computer and use it in GitHub Desktop.
Save jayrbolton/d0ed813dadfa4fd1c6632fe50be370a8 to your computer and use it in GitHub Desktop.
dats dats dats dats

Instead of the model of one dat being one web page / app, you could split it into four dats

  1. Schema: a syntax describing the content format (eg filenames, datatypes, lengths, etc)
  2. Content: the actual content itself (social feeds, videos, map data, etc)
  3. Application code: the javascript code that turns the content into a user interface, and handles updates.
  4. User identity: crypto keys (signing and encryption public keys, with self-signed cetificate, etc) for the user

The advantage here is that there would be some nice decoupling and standardization when making apps:

  • Different application dats can render the same content
  • Apps can be considered compatible when they render and update content using the same schema
  • A single user identity dat can be used across many applications and content

Also of course the user identity is essential for signing posts, verifying signed reposts, etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment