2017-12-15 17:57:42 +00:00
|
|
|
# Perkeep Overview
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
Perkeep is your **personal storage system for life**.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
## Summary
|
2013-06-12 23:02:56 +00:00
|
|
|
|
|
|
|
The project began because I wanted to...
|
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **store all my stuff forever**, not worrying about deleting, or losing
|
|
|
|
stuff.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **save stuff easily**, and **without categorizing it or choosing a
|
|
|
|
location** whenever I save it. I just want a data dumptruck that I can throw
|
|
|
|
stuff at whenever.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **never lose anything** because nothing can be overwritten (all blobs are
|
|
|
|
content-addressable), and there's no delete support. (optional garbage
|
|
|
|
collection coming later)
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* be able to **search for anything** I once stored.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* be able to **browse and visualize** stuff I've stored.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **not always be forced into a POSIX-y filesystem model**. That involves
|
|
|
|
thinking of where to put stuff, and most the time I don't even want
|
|
|
|
filenames. If I take a bunch of photos, those don't have filenames (or not
|
|
|
|
good ones, and not unique). They just exist. They don't need a directory or a
|
|
|
|
name. Likewise with blog posts, comments, likes, bookmarks, etc. They're just
|
|
|
|
objects.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **have a POSIX-y filesystem when I want one**. And it should all be
|
|
|
|
logically available on my tiny laptop's SSD disk, even if my laptop's disk is
|
2022-04-28 23:04:07 +00:00
|
|
|
minuscule compared to my entire repo. That is, there should actually be a
|
2015-07-26 21:32:30 +00:00
|
|
|
caching virtual filesystem, not a daemon running rsync in the background. If
|
|
|
|
I have to have a complete copy of my data locally, or I have to "choose which
|
|
|
|
folders" to sync, that's broken.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **be able to synthesize POSIX-y filesystems from search queries** over my
|
|
|
|
higher-level objects. e.g. a "recent" directory of recent photos from my
|
|
|
|
Android phone (this all works already in 0.1)
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
* **Not write another CMS system, ever**. Perkeep should be able to store
|
2015-07-26 21:32:30 +00:00
|
|
|
and model any type of content, so it can just be a backend for other apps.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... have **backups of all my social network content** I created daily on
|
|
|
|
other people's servers, to protect myself if my account is hijacked, the
|
|
|
|
company goes evil, changes ownership, or goes out of business.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... have both a **web UI** and **command-line tools**, as well as a **FUSE
|
|
|
|
filesystem**.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **be in control** of my data, but also still be able to utilize big
|
|
|
|
companies' infrastructure cloud products if desired.
|
2013-06-12 23:05:57 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* ... **be able to share content** with both technical and non-technical
|
|
|
|
friends.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
Most of this works as of the 0.1 [release](/download), and the rest and more is
|
|
|
|
in progress.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
## Longer Answer
|
|
|
|
|
|
|
|
Throughout our life, we all continue to generate content, whether
|
2013-06-12 14:22:29 +00:00
|
|
|
that's writing documents, taking photos, writing comments online,
|
|
|
|
liking our friends' posts on social networks, etc. Our content is
|
|
|
|
typically spread between a mix of different companies' servers ("The
|
|
|
|
Cloud") and your own hardware (laptops, phones, etc). All of these
|
|
|
|
things are prone to failure: companies go out of business, change
|
|
|
|
ownership, or kill products. Personal harddrives fail, laptops and
|
2015-07-26 21:32:30 +00:00
|
|
|
phones are dropped.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
It would be nice if we were a bit more in control. At least, it
|
2013-06-12 14:22:29 +00:00
|
|
|
would be nice if we had a reliable backup of all our content. Once we
|
|
|
|
have all our content, it's then nice to search it, view it, and
|
|
|
|
directly serve it or share it out to others (public or with select
|
2015-07-26 21:32:30 +00:00
|
|
|
ACLs), regardless of the original host's policies.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
Perkeep is a system to do all that.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
While Perkeep can store files like a traditional filesystem
|
2017-07-18 13:31:03 +00:00
|
|
|
(think: "directories", "files", "filenames"), it's specialized in
|
2015-07-26 21:32:30 +00:00
|
|
|
storing higher-level objects, which can represent anything.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
In addition to an implementation, Perkeep is also a schema for
|
2015-07-26 21:32:30 +00:00
|
|
|
how to represent many types of content. Much JSON is used.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
Because every type of content in Perkeep is represented using
|
2013-06-12 14:22:29 +00:00
|
|
|
content-addressable blobs (even metadata), it's impossible to
|
2017-12-15 17:57:42 +00:00
|
|
|
"overwrite" things. It also means it's easy for Perkeep to sync in
|
|
|
|
any direction between your devices and Perkeep storage servers, without
|
2015-07-26 21:32:30 +00:00
|
|
|
versioning or conflict resolution issues.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
Perkeep can represent both immutable information (like snapshots
|
2013-06-12 14:22:29 +00:00
|
|
|
of filesystem trees), but can also represent mutable
|
|
|
|
information. Mutable information is represented by storing immutable,
|
|
|
|
timestamped, GPG-signed blobs representing a mutation request. The
|
|
|
|
current state of an object is just the application of all mutation
|
|
|
|
blobs up until that point in time. Thus all history is recorded and
|
|
|
|
you can look at an object as it existed at any point in time, just by
|
2015-07-26 21:32:30 +00:00
|
|
|
ignoring mutations after a certain point.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
Despite using parts of the OpenPGP spec, users don't need to use
|
2013-06-12 14:22:29 +00:00
|
|
|
the GnuPG tools or go to key signing events or anything dorky like
|
2015-07-26 21:32:30 +00:00
|
|
|
that.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
You are in control of your Perkeep server(s), whether you run
|
2013-06-12 14:22:29 +00:00
|
|
|
your own copy or use a hosted version. In the latter case, you're at
|
2022-04-28 23:04:07 +00:00
|
|
|
least logically in control, analogous to how you're in charge of your
|
2013-06-12 14:22:29 +00:00
|
|
|
email (and it's your private repository of all your email), even if a
|
|
|
|
big company runs your email for you. Of course, you can also store all
|
2017-12-15 17:57:42 +00:00
|
|
|
your email in Perkeep too, but Gmail's interface and search is much
|
2015-07-26 21:32:30 +00:00
|
|
|
better.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
Responsible (or paranoid) users would set up their Perkeep
|
2013-06-12 14:22:29 +00:00
|
|
|
servers to cross-replicate and mirror between different big companies'
|
|
|
|
cloud platforms if they're not able to run their own servers between
|
|
|
|
different geographical areas. (e.g. cross-replicating between
|
2015-07-26 21:32:30 +00:00
|
|
|
different big disks stored within a family)
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
A Perkeep server comprises several parts, all of which are
|
2015-07-26 21:32:30 +00:00
|
|
|
optional and can be turn on or off per-instance:
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
* **Storage**: the most basic part of a Perkeep server is
|
2013-06-12 14:22:29 +00:00
|
|
|
storage. This is anything which can Get or Put a blob (named by its
|
|
|
|
content-addressable digest), and enumerate those blobs, sorted by
|
|
|
|
their digest. The only metadata a storage server needs to track
|
|
|
|
per-blob is its size. (No other metadata is permitted, as it's
|
|
|
|
stored elsewhere) Implementations are trivial and exist for local
|
2013-06-12 23:02:56 +00:00
|
|
|
disk, Amazon S3, Google Storage, etc. They're also composable, so
|
|
|
|
there exists "shard", "replica", "remote", "conditional", and
|
|
|
|
"encrypt" (in-progress) storage targets, which layer upon
|
2015-07-26 21:32:30 +00:00
|
|
|
others.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* **Index**: index is implemented in terms of the Storage
|
2013-06-12 14:22:29 +00:00
|
|
|
interface, so can be synchronously or asynchronously replicated to
|
|
|
|
from other storage types. Putting a blob indexes it, enumerating
|
|
|
|
returns what has been indexed, and getting isn't supported. An
|
2017-12-15 17:57:42 +00:00
|
|
|
abstraction within Perkeep similar to the storage abstractions
|
2013-06-12 14:22:29 +00:00
|
|
|
means that any underlying system which can store keys & values and
|
|
|
|
can scan in sorted order from a point can be used to store
|
2017-12-15 17:57:42 +00:00
|
|
|
Perkeep's indexes. Implementations are likewise trivial and exist
|
2013-06-12 14:22:29 +00:00
|
|
|
for memory (for development), SQLite, LevelDB, MySQL, Postgres,
|
2015-07-26 21:32:30 +00:00
|
|
|
MongoDB, App Engine, etc. Dynamo and others would be trivial.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2017-12-15 17:57:42 +00:00
|
|
|
* **Search**: pointing Perkeep's search handlers at an index
|
2015-07-26 21:32:30 +00:00
|
|
|
means you can search for your things. It's worth pointing out that
|
2013-06-12 14:22:29 +00:00
|
|
|
you can lose your index at any time. If your database holding your index
|
|
|
|
goes corrupt, just delete it all and re-replicate from your storage
|
2015-07-26 21:32:30 +00:00
|
|
|
to your index: it'll be re-indexed and search will work again.
|
2013-06-12 14:22:29 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
* **User Interface**: the web user interface lets you click
|
2013-06-12 14:22:29 +00:00
|
|
|
around and view your content, and do searches. Of course, you could
|
2015-07-26 21:32:30 +00:00
|
|
|
also just use the command-line tools or API.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2016-05-02 05:20:16 +00:00
|
|
|
Enough words for now. See [the docs](/doc/) and code for more.
|
2013-06-12 23:02:56 +00:00
|
|
|
|
2015-07-26 21:32:30 +00:00
|
|
|
*Last updated 2013-06-12*
|