Draft stage: 99% ready! And there is also more stuff I'd like to write, but it's already long enough…
Promnesia is a browser extension (Chrome/Firefox/Firefox mobile) that serves as a web surfing copilot by enhancing your browsing history, improving your web exploration experience, and integrating with your knowledge base.
The repository contains some demos and the setup guide, this post is more about the motivation and the story of what led me to work on it.
Table of Contents
- 1. I want my singularity!
- 2. Ok, maybe a web assistant at least?
- 3. Browser history is broken
- 4. URLs are broken
- 5. Prior art
- 6. Hello, Promnesia!
- 7. How can you use Promnesia?
- 8. Future of Promnesia
- 9. ---
¶1 I want my singularity!
I was raised on science fiction and grew up dreaming about technology drastically changing our lives. Artificial intelligence, augmenting the brain with a math co-processor, head-up displays, neural interfaces, having perfect reaction and memory – many of you are on the same page and know the drill.
Years passed, I became a software engineer, and realized just how far we are from all these fancy technologies I wanted. So my aspirations have become more modest, and I've chosen a more realistic and plausible target: using my digital trace (such as browser history, webpage annotations and my personal wiki) to make up for my limited memory.
I'm exploring lots of information on the Internet, and it feels wasteful to use my meat resources to keep track of it. Meanwhile, web browsers keep a record automatically, without any manual and conscious effort. Surely we can benefit from the immense computing power and memory capabilities of computers?
So I figured that I wanted:
¶2 Ok, maybe a web assistant at least?
Call it whatever you like, I wish it were a concept with a widely accepted name. Something that will sit in my browser and:
aid me with information processing
Keep track of what I've read, when, on which device, and for how long.
show me my annotations and highlights, within the original page
I don't want to keep wondering whether I have my notes and thoughts stashed in some app, I want the computer to let me know instead.
unify my scattered and siloed bookmarks
Firefox bookmarks; Reddit/Hackernews saves; "Watch later" on Youtube, saved links in my instant messenger.
These are the same damn thing, yet there is no way to oversee and process them through a single interface.
"Queue management for inbound digital content": a post expanding further on this idea.
connect with my online presence: chats and social networks
If I tweeted about a page, surely this should be somehow recorded in the browsing history?
In fact, the page that I bothered to tweet about is much more important than a page I merely visited in the browser.
help me explore new information and prioritize it
There is so much awesome stuff on the Internet! The biggest problem I have is picking the next cool link to dig into.
Imagine if in one click, I could see which of my friends, or the people I follow have read a certain link. What did they think? Have they posted about it, annotated, or something else? Do they follow the author, perhaps I should too?
bridge the gap between the browser and my personal wiki
Whatever product I choose for managing my notes: Google Keep, Evernote, Roam Research, or even org-mode files on my disk, they always end up isolated and disconnected from my web browsing.
After enough failed attempts at finding an existing solution, I figured it was going to be yet another thing I'd have to implement myself.
Note: the next two sections are (somewhat technical) rants. If you prefer a more positive/less boring agenda, feel free to skip them straight to "Existing solutions" , and you can return back later if you feel like it.
¶3 Browser history is broken
To a large extent, URLs express relationships and hierarchy between the bits of information. For example:
blog <-> post <-> comment,
person <-> tweet,
playlist <-> video.
With this information you should be easily able to find everything relevant to the current page and trace your jumps through past websites. Merely by looking at URLs, without "AI" or some dubious machine learning algorithm! Seems like a low hanging fruit to harvest, right?
Web browser history is a rich source of potentially useful information. Just think about it: it's zero effort lifelogging. It contains exact timestamps and links which basically address information.
Now think about the experience you actually have. What was the last time you used the browser history in any nontrivial way, for something other than reopening an accidentally closed tab?
¶it's not just about web browsers
/data/data/app.name. This directory is not accessible to normal users unless your phone is rooted. Just think about how ridiculous this is. It's your own data, yet your OS babysits you, preventing access to it. And yes, I know sandboxing and security are important, but locking my data inside the app is hardly an acceptable tradeoff.
As a specific example, the Reddit Slide app keeps your view history in
Okay, say you root your phone and access the database. Turns out the the app isn't persisting the data forever, it's merely keeping a few weeks' cache.
And I can hardly blame the developer for this: because of the data model, no one expects regular users to access this database.
So if you want your complete history, you have to backup this database regularly, keep the snapshots and somehow reconstruct it.
You may dismiss this as nitpicking and obsession over every last bit of my data. But when all of your phone apps are doing this you're missing out on quite a lot of useful information.
¶it's scattered and siloed
Building on the previous point:
- for the most part, you can't access history in your phone apps
- lots of data which ought to be counted as web history is scattered across silos
- in the cloud: behind APIs (best case), GDPR and manual exports (worst case) It is never easy to get hands on, even if you're an experienced software engineer.
on the filesystem, for example in markdown/org-mode files
A slightly better scenario, but as far as the web browser is concerned, it doesn't make any difference.
Even regular browser history is not easy to get:
- Firefox used to silently 'expire' your browser history
Chrome deletes history older than 90 days
The only way to access older history I'm aware of is Google Activity and Takeout.
- Google Takeout quietly recycles your history
Migration is limited to the most popular browsers
The retention limits the migration as well. E.g. if you migrate from Chrome to Firefox, history older than 90 days is locked and siloed in your Google Account.
You're going to have a hard time if you're not using Google/Mozilla sync
Your history will be scattered across devices and lost on OS reinstalls.
There are ways of self-hosting Firefox sync, and (allegedly) even Chrome sync, but as you can imagine, is quite tedious.
¶it's got varying significance
Not all links in your history are equally important:
- some are clicked on by accident
- some you've just skimmed
- some are on your reading list
- some you've been reading for hours and are full of your highlights and annotations
- some you reference in your knowledge base/personal wiki
- some of them you've shared with others on social media
The current browser history experience makes no distinction between these scenarios.
¶4 URLs are broken
This topic probably deserves a separate post, but I'll keep it section-sized for now.
URLs might seem great because they mostly address content and are semi-descriptive: people try to keep URLs somewhat reasonable, tidy and working. But in the real world:
But there is no way to migrate your browser history, e.g. point old URLs to their respective archive.org entries or a new domain. Similarly if you had the page annotated, your annotations become orphans without an easy way to relink them.
links are obfuscated by shortening and redirectsWhat happens to all the
t.colinks when Twitter as a service dies?
links are obscured
There is no easy way to know what's behind
https://www.instapaper.com/read/1265139707without querying the Instapaper API.
Relations between data are often obscured as well. For example:
https://news.ycombinator.com/item?id=22918980is a submission link
https://news.ycombinator.com/item?id=22919718is a comment to that submission
These links are clearly related, but there is no way to tell it just from id.
Compare this to Reddit links:
https://reddit.com/r/orgmode/comments/g6ejwe/is_there_an_orgmode_workbook_tutorial_that_isis a post link
https://reddit.com/r/orgmode/comments/g6ejwe/is_there_an_orgmode_workbook_tutorial_that_is/fo9qnenis a comment to that post
The ids are obscure, but at least we can clearly see the
post <-> commentrelation merely by looking at the URLs. Alas, browsers are just ignoring this useful information.
links are unstandardized
For example, queries
- typically don't point to anything persistent and are used for querying (duh)
- but other times they are used to address information:
- and in many cases are utter garbage used for tracking
The worst part is that these use cases overlap. For example, take a look at
v=wHrCkyoe72Uis the most important part of this link
feature=shareis just garbage
time_continue=6could be treated as useful information
A similar story applies to fragments:
- on Google groups, they are meaningful and address specific discussions and messages:
- on most websites, they refer to the content within a page:
- links are unnormalized
- just think of all the www., amp., mobile., m. garbage
https://www.youtube.com/watch?v=1TKSfAkWWN0&list=WL&index=11refer to the exact same content, yet your browser has no idea.
<link rel="canonical" ...>element
- often it's not not present
- when present, often used improperly,
- you need to fetch the page first to get the canonical link
- only works one way; you can't easily retrieve all links that have the same canonical page as the current
I want URLs to address information and represent relations. The current URL experience is far from ideal for this.
¶5 Prior art
Sadly, I've seen very few similar projects. Please let me know if I missed anything!
¶Prototypes and mockups
A paper from 2000 (!):
Margin Notes is a system that automatically annotates every webpage you visit with links to other potentially useful documents.
This page has more information and this seems like more of a recommendation system, and I haven't found any source code to check it out.
Goal: use a chrome extension to supplement your browsing experience by introducing a superior browsing history data structure:
- preserve provenance. maintain a detailed account of browsing history
- track interactions with dynamic content
Sadly it's only a concept.
Memacs by Karl Voit
Memacs is a memex software which unifies your data as org-mode, allowing you to query it from within Emacs.
Unfortunately, that means you have to query information actively in your emacs, as opposed to a passive assistant doing it for you.
In addition, keeping everything in org-mode will be inefficient for long browsing histories with hundreds of thousands of entries.
Memex by Andrew Louis
This is a working (but not open-source, at least yet) prototype of a Memex, unifying personal data and exposing an API for it.
I only ran into it a few months ago! Because it's not public, I'm not sure to what extent it can address the browser history problems specifically. Jumping a bit ahead of myself, I expect it to integrate well with Promnesia, so we could potentially benefit from each other's work.
¶'Unlimited history' extensions
There is a family of Chrome extensions similar to History Trends Unlimited which try to make up for Chrome's 90-day retention by keeping the history in IndexDB. Unfortunately, retention is the only problem this solves, and then it it ends up as a yet another silo.
But, thousands of users indicates there is at least demand for such functionality.
Though I covered it already, it's worth another mention as many people use it. I find it problematic because:
- it's a Google-specific silo, and the functionality provided by Google is only useful for deliberate searches
- it doesn't have an API, and can't be integrated in the browser
It's an amazing product: open source, local first, supports tagging, highlights, annotations, and even full-text history search. By all means, try it!
It would be pretty close to my vision of the personal web assistant if not for a problem: it is also a kind of a silo. You can import the data from other services into Memex, but then you have to conform to its model of the data. If for some reason you can't use Memex for annotating and recording your history (e.g. on some of your devices) – you end up using multiple services, or having redundant (and potentially inconsistent) copies of your data scattered across your digital space.
Having privacy focused and open source tools is a very important step towards a better future. However, I want a different model of interacting with my existing data, which doesn't require moving data in between the silos. (see "it's not just about the browser")
And jumping ahead again, Promnesia can be integrated with Memex data. Overall, it seems that our vision is pretty similar, and I expect that both projects can benefit from each other's work, up to the point that Promnesia extension is sharing the extension/backend with Worldbrain Memex.
¶6 Hello, Promnesia!
I've already mentioned what I wanted, but I'll recap:
make history useful: unify scattered and siloed history under a single interface
There should be absolutely no difference between a link you opened yesterday in your Instapaper phone app, and a link you visited in Firefox ten years ago.
- make URLs useful: make use of their hierarchy and relations between them
- assist me in exploring new information
make it possible to easily trace my history
Let me answer when, how, and why did I visit/bookmark the page?
integrate metadata: annotations, highlights, notes, chat messages, tweets, etc.
Release it from walled gardens and display it right within the page when applicable (e.g. highlights)
make it flexible
As long as it's something you can extract URLs from, you should be able to feed it in Promnesia.
A cool thing is that some of these goals weren't clear from the beginning – I discovered them during development, and I think there are many more I haven't discovered yet!
There are also some meta-goals and principles I'm adhering to:
make it open source
This goes without saying: everything I'm doing for this project is shared and open source. Frankly, I'm not even sure such a project can be sustainable any other way.
Your past is sensitive data and you should have control over where you keep it and how you're accessing it. In the simplest setup, promnesia communicates with your browser through a local port.
make it modular
Make sure components can be reused.
For the past several months, I've mostly been removing/moving away the code from Promnesia to make sure that the data processing and normalization code in it can be used for other purposes by other people.
I'm going to take this even further and explore the potential for interoperability and integration with other open source tools, I'll write about it a bit later.
don't build another silo, use existing information
This kind of complements the previous point.
There are many decent services and tools already. They all have their own pros and cons. Different people prefer different tools. Sometimes because they're locked in and don't have much choice, but other times because they genuinely have subtle preferences and opinions.
The cost of switching is too high, both in terms of the time and the cognitive effort. There's always the risk of encountering one small thing that would make the tool a no-go.
We should invest in finding better ways of combining existing tools, not rewriting all over again.
¶7 How can you use Promnesia?
Here I'll describe some specific scenarios for which I find Promnesia extremely useful. README also has screenshots and short screencasts which elaborate on the features.
Finding new information
Example: I run into an article on Twitter. I enjoyed it, and the website looks kind of familiar.
When I jump on https://nautil.us, the Promnesia sidebar shows me that I've visited and even annotated other articles on this site before!
I am repeatedly stumbling upon this site, and it's got high quality content, so I subscribe to it through my RSS reader.
- Exploring people and communities
How often have I engaged with a certain blog in the past?
Which posts have I already seen or read? Did I like them? Should I dive deeper?
- Same questions, but for twitter accounts, subreddits, youtube channels or anything similar
Processing large amounts of information
- Display annotations and highlights from any service (e.g. Instapaper/Pocket), within the webpage
- Personal digital archaeology and external memory
- Why did I bookmark this youtube video? Who sent it to me?
- How did I get on this forgotten tab?
I'm sometimes annoyed by
@<account>tweets. Should I unfollow them?
I.e. why did I follow them in the first place? Are they worth following overall? Do I like their tweets often or bookmark their links?
Integrating with your knowledge base
Promnesia can handle your private wiki whether it's plaintext, or a web service, which would help you instantly find and jump to the relevant information.
Integrating with others' knowledge bases
I find it intriguing to think about this as tapping into each other's brains!
See: demo integrating Promnesia with a Roam Research database.
Unified browser history
I'm listing it last because the benefits of this only become apparent when you start using your data, not while it just sits on your disk.
As you collect more and more detailed history, the whole system becomes more and more useful.
¶8 Future of Promnesia
Promnesia was a lot of work, especially in terms of sharing it with other people and documenting. If fact, most writing on my blog have been slowly building up to this post. On my infrastructure map, Promnesia is a leaf node!
As much as I am proud of my work, and how rewarding it is when other people find it useful… I'm already thinking how to break Promnesia apart and perhaps even sunset it. I would be happy if:
- I can raise the demand and awareness for data liberation and interoperability
- other developers implement something similar (and better!)
As I previously mentioned, one of the meta-goals is modularity, so parts of Promnesia can be plugged in other tools. There is still some unused potential for integrating with other open source projects, so I want to take this even further and to the extreme:
URL indexers/data sources
Promnesia modules are very slim when it comes to the URL extraction, many of them are just 30 lines of code. Most of the boring and tedious stuff (like data normalization) is encapsulated in HPI package, which can be used with other tools.
It would be interesting to see if these data sources can be integrated with Worldbrain Memex. Before I mentioned that at the moment Memex is a silo, but they also realize it! Very recently, WorldBrain announced Storex Hub, which seems like a potential means of integration.
It's likely that Promnesia backend can be rebased on top of it.
URL normalization algorithm
At the moment, Promnesia uses a hacky set of rules, which does the right thing for the most websites I'm using. However, it's not sustainable for one person to maintain, and it feels worthy of extraction to a separate project/public database. I imagine it to be something similar to tzdata, just think how much frustration we all save by using the same library for timezone information.
This would be something many projects could benefit from: Polar Bookshelf, Hypothesis, Worldbrain Memex, and I'm sure there are many more I don't even know of!
Highlighting and anchoring annotations
One the one hand, even a very primitive algorithm for matching annotations against the page works pretty well in 90% of cases. On the other hand, the remaining 10% is the bit which is pretty hard to get right, and not an easy task.
It would be cool to reuse fuzzy anchoring by Hypothesis, compare it with whatever Worldbrain is using, and figure out how much of it is worth sharing. I'd rather help these projects maintain their code, than reinvent my own wheel.
Again, it feels that most of Promnesia's existing (and future!) features make sense to within Worldbrain Memex, or as plugins.
I see the most likely future for Promnesia as a part of Worldbrain Memex, or a plugin on top of it. This is something I'll look at in the near future.
In the meantime, Promnesia is completely usable on its own, and as long as I use it, I'll be supporting it!
I've always expected my gadgets to extend my ability to think and process information. Promnesia is a step I've taken to bring that future closer.
Want to join me? Check out the repository, which contains more screenshots, demos, and the setup manual.
If you think of cool features, useful data sources, or any related thoughts feel free to use github issues or reach me by some other means.
Even better if you want to help and contribute! I'm happy to help you with any Python quirks or web extension specifics.
- IndieWeb wiki on silos
- Cloudflare blog: The History of the URL
- "URLs are terrible permanent identifiers for things"
- HN: WorldBrain's Memex: Bookmarking for the power users of the web
- Human Programming Interface
- The sad state of personal data and infrastructure