Bionic is a tool to convert data exports from web apps to a single SQLite database. Bionic currently supports data exports from Google, Apple Health, Spotify, Telegram, RescueTime, Instagram, Twitter and Netflix.
Fun: you can use Bionic to explore your own data and discover insights about yourself. Join tables between different sources to create reports like "Songs I listen in different locations" or dive deep into a single source to create "How amount of Telegram messages per week with different people changed over time" report.
Research: if you research human behaviour, subjective metrics could heavily impact your findings. If your respondents are able to run Bionic and send you aggregated results from their data, you can collect new objectives datasets describing important parts of life: transportation, social media, knowledge work and others.
Development: you can use Bionic as a Go package to implement personal data import in your apps.
Education: you can include Bionic exercises in your articles, courses or books. Learning to process data on personal records is much more exciting than processing artificial datasets.
brew install bionic-dev/tap/bionic
brew upgrade bionic-dev/tap/bionic
curl -L https://raw.githubusercontent.com/bionic-dev/bionic/main/install.sh | bash -s -- -b /usr/local/bin
Use the following syntax to convert downloaded data to a SQLite database:
bionic import [provider] [path to downloaded directory or an archive] --db [path to sqlite db]
If the database doesn't exist, Bionic will create a new one. If it already exists, Bionic will create tables if needed and append new rows.
bionic import google /Users/seva/gdpr_exports/Takeout/ --db db.sqlite bionic import health /Users/seva/gdpr_exports/apple-health.zip --db db.sqlite bionic import spotify /Users/seva/gdpr_exports/MyData/ --db db.sqlite
Bionic provides helper tables ("views") to make processing data easier.
google_searches is a view based on original
but filtered only to include search queries and altered to have the search query as a column.
To generate or update views run:
bionic generate-views --db db.sqlite
You can query the database with
$ sqlite3 db.sqlite SQLite version 3.28.0 2019-04-15 14:49:49 Enter ".help" for usage hints. sqlite> select * from netflix_playback_related_events limit 1; 1|2021-01-22 20:46:21.696934+03:00|2021-01-22 20:46:21.696934+03:00||Seva|How I Met Your Mother: Season 1: "Come On"|Apple iPhone XR|RU|2020-12-30 20:14:21+00:00
Alternatively, you can use datasette to build a web UI to view and query data:
$ datasette serve db.sqlite INFO: Started server process  INFO: Waiting for application startup. INFO: Application startup complete. INFO: Uvicorn running on http://127.0.0.1:8001 (Press CTRL+C to quit)
You can also use Python and pandas to process data:
import pandas as pd import sqlite3 DATABASE_PATH = '/Users/seva/db.sqlite' db_connection = sqlite3.connect(DATABASE_PATH) messages_df = pd.read_sql('select * from telegram_messages;', con=db_connection)
|Name||Export link||Created tables||Notes|
||Only Activity and Location data is processed. You should specify the JSON format.|
||Apple Health iOS app settings||
||Telegram Desktop app => Settings||
||OS X: ~/Library/Application Support/Google/Chrome/Default/History
Windows: C:\Users%USERNAME%\AppData\Local\Google\Chrome\User Data\Default\History
As a package
We appreciate contributions a lot! Here are some ways you can contribute:
- Providers. You can create new sources of data. Check out #new-provider issues and an example PR with a new provider. Many existing providers lack some of the data: for example, the Google provider only proccesses a small subset of the Google export. Feel free to change it! We also target to test all providers and adding tests (especially, with unusual corner cases you found in your data) could be a very helpful contribution.
- Views. Views are additional SQL tables based on data from providers. Check out an example PR with new views.
- Ecosystem. Create and release your own tools based on Bionic databases. Think a web UI to visualize life or a custom Spotify Year In Review report generator.
When contributing, feel free to create issues and discussions with any questions. We promise to be helpful and kind!