Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkuchta/tabdb
Using browser tabs as a database like only a maniac would
https://github.com/kkuchta/tabdb
Last synced: 23 days ago
JSON representation
Using browser tabs as a database like only a maniac would
- Host: GitHub
- URL: https://github.com/kkuchta/tabdb
- Owner: kkuchta
- Created: 2019-07-29T14:17:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T07:35:17.000Z (about 2 years ago)
- Last Synced: 2024-12-27T07:08:08.309Z (30 days ago)
- Language: TypeScript
- Size: 3.52 MB
- Stars: 236
- Watchers: 4
- Forks: 3
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- my-awesome-github-stars - kkuchta/tabdb - Using browser tabs as a database like only a maniac would (TypeScript)
README
# TabDB
If you feel like you use your browser tabs as a database, why not make it official?
![demo gif](https://media.giphy.com/media/cPl0frYGok7Cr8RA7I/giphy.gif)
This is an in-browser database that uses tab titles for storage.
Every time you run an SQL query, it grabs all the data stored in the neighboring tabs' titles, concatenates it, unzips it, and loads it into an in-memory sqlite database. It then runs the command, dumps the db state to a string, zips it up, and spreads it out across the available tabs.
Play with it live at [tabdb.io](https://tabdb.io).
[![comic about bad ideas](http://www.poorlydrawnlines.com/wp-content/uploads/2017/07/an-idea.png)](http://www.poorlydrawnlines.com/comic/an-idea/)
The code is awful- I hacked together the first version (which was ugly enough), then glued it onto typescript + react for fun. I didn't go so far as to properly integrate the raw JS logic with react (eg via redux or something), so it's a mishmash of global variables, commented-out code, and TODO comments. If this were production code, I'd deserve to be tarred and feathered. Since it's just a silly one-off thing, I hope you won't judge it too harshly.