百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

chronicle-etl

> 开发工具
开源

一个 CLI 工具包,用于提取和处理您的数字历史

197 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

一个 CLI 工具包,用于提取和处理您的数字历史

A CLI toolkit for extracting and working with your digital history

Are you trying to archive your digital history or incorporate it into your own projects? You’ve probably discovered how frustrating it is to get machine-readable access to your own data. While building a memex, I learned first-hand what great efforts must be made before you can begin using the data in interesting ways.

If you don’t want to spend all your time writing scrapers, reverse-engineering APIs, or parsing export data, this tool is for you! (If you do enjoy these things, please see the open issues.)

chronicle-etl is a CLI tool that gives you a unified interface to your personal data. It uses the ETL pattern to extract data from a source (e.g. your local browser history, a directory of images, goodreads.com reading history), transform it (into a given schema), and load it to a destination (e.g. a CSV file, JSON, external API).

What does chronicle-etl give you?

  • A CLI tool for working with personal data. You can monitor progress of exports, manipulate the output, set up recurring jobs, manage credentials, and more.
  • Plugins for many third-party sources (see list). This plugin system allows you to access data from dozens of third-party services, all accessible through a common CLI interface.
  • A common, opinionated schema: You can normalize different datasets into a single schema so that, for example, all your iMessages and emails are represented in a common schema. (Don’t want to use this schema? chronicle-etl always allows you to fall back on working with the raw extraction data.)

Chronicle-ETL in action

Longer screencast

Installation

Using homebrew:

bash
$ brew install chronicle-app/etl/chronicle-etl

Using rubygems:

bash
$ gem install chronicle-etl

Confirm it installed successfully:

bash
$ chronicle-etl --version

Basic usage and running jobs

…

Common options

…

Saving a job

You can save details about a job to a local config file (saved by default in ~/.config/chronicle/etl/jobs/JOB_NAME.yml) to save yourself the trouble specifying options each time.

bash
# Save a job named 'sample' to ~/.config/chronicle/etl/jobs/sample.yml
$ chronicle-etl jobs:save sample --extractor pinboard --since 10d

# Run the job
$ chronicle-etl jobs:run sample

# Show details about the job
$ chronicle-etl jobs:show sample

# Edit a job definition with default editor ($EDITOR)
$ chronicle-etl jobs:edit sample

# Show all saved jobs
$ chronicle-etl jobs:list

Connectors and plugins

Connectors let you work with different data formats or third-party sources.

Built-in Connectors

chronicle-etl comes with several built-in connectors for common formats and sources.

bash
# List all available connectors
$ chronicle-etl connectors:list

Extractors

  • csv - Load records from CSV files or stdin
  • json - Load JSON (either line-separated objects or one object)
  • file - load from a single file or directory (with a glob pattern)

Transformers

  • null - (default) Don’t do anything and pass on raw extraction data
  • sampler - Sample percent records from the extraction
  • sort - sort extracted results by key and direction

Loaders

  • json - (default) Load records serialized as JSON
  • table - Output an ascii table of records. Useful for exploring data.
  • csv - Load records to CSV
  • rest - Send JSON to a REST API

Chronicle Plugins for third-party services

Plugins provide access to data from third-party platforms, services, or formats. Plugins are packaged as separate gems and can be installed through the CLI (under the hood, it's a gem install chronicle-PLUGINNAME)

Plugin usage

bash
# List available plugins
$ chronicle-etl plugins:list

# Install a plugin
$ chronicle-etl plugins:install NAME

# Use a plugin
$ chronicle-etl plugins:install imessage
$ chronicle-etl --extractor imessage --limit 10

# Uninstall a plugin
$ chronicle-etl plugins:uninstall NAME

Available plugins and connectors

The following are the officially-supported list of plugins and their available connectors:

Plugin Type Identifier Description
apple-podcasts extractor listens listening history of podcast episodes
apple-podcasts transformer listen a podcast episode listen to Chronicle Schema
email extractor imap emails over an IMAP connection
email extractor mbox emails from an .mbox file
email transformer email email to Chronicle Schema
foursquare extractor checkins Foursqure visits
foursquare transformer checkin checkin to Chronicle Schema
github extractor activity user activity stream
imessage extractor messages imessages from local macOS
imessage transformer message imessage to Chronicle Schema
pinboard extractor bookmarks Pinboard.in bookmarks
pinboard transformer bookmark bookmark to Chronicle Schema
safari extractor browser-history browser history
safari transformer browser-history browser history to Chronicle Schema
shell extractor history shell command history (bash / zsh)
shell transformer command command to Chronicle Schema
spotify extractor liked-tracks liked tracks
spotify extractor saved-albums saved albums
spotify extractor listens recently listened tracks (last 50 tracks)
spotify transformer like like to Chronicle Schema
spotify transformer listen listen to Chronicle Schema
spotify authorizer OAuth authorizer
zulip extractor private-messages private messages
zulip transformer message message to Chronicle Schema

Coming soon

A few dozen importers exist in my Memex project and I'm porting them over to the Chronicle system. The Chronicle Plugin Tracker lets you keep track what's available and what's coming soon.

If you don't see a plugin for a third-party provider or data source that you're interested in using with chronicle-etl, please open an issue. If you want to work together on a plugin, please get in touch!

In summary, the following are coming soon: anki, arc, bear, chrome, facebook, firefox, fitbit, foursquare, git, github, goodreads, google-calendar, images, instagram, lastfm, shazam, slack, strava, timing, things, twitter, whatsapp, youtube.

Writing your own plugin

Additional connectors are packaged as separate ruby gems. You can view the iMessage plugin for an example.

If you want to load a custom connector without creating a gem, you can help by completing this issue.

If you want to work together on a connector, please get in touch!

Sample custom Extractor class

ruby
# TODO

Secrets Management

If your job needs secrets such as access tokens or passwords, chronicle-etl has a built-in secret management system.

Secrets are organized in namespaces. Typically, you use one namespace per plugin (pinboard secrets for the pinboard plugin). When you run a job that uses the pinboard plugin extractor, for example, the secrets from that namespace will automatically be included in the extractor's options. To override which secrets get included, you can use do it in the connector options with secrets: ALT-NAMESPACE.

Under the hood, secrets are stored in ~/.config/chronicle/etl/secrets/NAMESPACE.yml with 0600 permissions on each file.

Using the secret manager

…

Roadmap

  • Keep tackling new plugins. See: Chronicle Plugin Tracker
  • Add support for incremental extractions ([#37](https://github.com/chronicle-app/chronicle-etl/issues/

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rubyarchivingchroniclechronicle-etlcli

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类开发工具
定价开源

> 相关工具

V
VS Code
流行的开源代码编辑器
G
Git
分布式版本控制系统
V
Vite
下一代前端构建工具