DataDeck is a native GPUI desktop app for keeping track of your data stories and datasets, saving links you find, and exploring CSV, TSV, Parquet and Excel files. It opens on the Deck: what you own (Mine), what you have captured (Found), and a Post panel to draft a post about either. The table viewer is one click or one file away.
Start the pictured cleaning tutorial · Watch the overview · Watch inspection · Watch cleaning and replay
Mine lists the stories and datasets in your Factory directory, grouped by what needs you: live stories with copy ready but not posted, stories that are stuck, dataset pages that return 404 on DataHub, and datasets by last push. Found lists the links you have captured, newest first, with their thumbnails, data files and notes. One line of counts above both says where things stand.
The same items have three views. List (⌘1) is the ledger above. Wall (⌘2) shows every item with a chart, Mine and Found together, as a contact sheet; press A, M or F to show all, Mine or Found. Triage (⌘3) shows one live story with copy ready at a time, with its chart and caption; Enter opens the compose page, C copies the caption, → skips and ← goes back. DataDeck reopens the last view you used.
Search (⌘K) filters Mine and Found together. Filters are words: mine:, found:, is:review, is:unposted, is:404, is:live. Move with the arrow keys or J and K, switch columns with Tab, and press Enter to open an item.
Post (P) opens a panel beside the list for the selected item: its chart, one tab per channel with the caption from the story's PROMOTION.md (or a draft from a title or note), the X character count and where each channel stands. Copy text, Copy image, Open story and Open in X or Open in Bluesky put the caption in your hands. DataDeck never writes to Factory; see Posting for what it can post.
Factory directory. Mine is read from ~/src/datasets/factory (publications.csv, inventory/datasets-repos.csv and releases/<slug>/PROMOTION.md). Set DATADECK_FACTORY_DIR, or write a path to the factory-dir preference file in ~/Library/Application Support/DataDeck/, to use another directory. Without one, Mine says where it looked. Press ⌘R to read it again.
What posts where:
- Captures and Mine items without a
PROMOTION.mdcan post to Bluesky from the app, once you add a Bluesky account. The Post panel's Bluesky tab then shows Post to Bluesky…. Without an account it shows Open in Bluesky ↗ and an Add Bluesky account link. A capture's post is the first paragraph of its note (or its title) and its link, with the preview attached when it is big enough and the title as alt text. - Factory stories with a
PROMOTION.mdgo through the owner's post tool (datopian/marketingtools/post/post.mjs), never through the app's own posting. See below. This holds for any item whose release directory has aPROMOTION.md, even one that cannot be read or has no channel sections; the panel then says so. The rule is checked again when you press Post now, against Factory as last read and a fresh look on disk. - X stays copy and open: Open in X ↗ fills in X's compose page and you post there.
The confirm step. Post to Bluesky… posts nothing. It opens a step in the panel: "Post as @handle?", the final text with its count (Bluesky allows 300 characters and 3000 bytes; a longer post shows why and has no Post now), the image and its alt text, and Post now and Cancel. Only Post now sends, and only as the handle shown: if the saved account changed in between, nothing is sent. The panel then shows Posted · Open post ↗, or Not posted with the reason and Try again, or, when the post request went out and its result is unknown (a timeout, a lost reply, a server error), May have been posted — check your Bluesky profile. That last case is recorded as "may have posted", and the next attempt asks first, as for an item posted before. The result also stays in the notice line after you move on. A scripted launch (--confirm-post) shows the step but never sends.
Add a Bluesky account in the app. Choose DataDeck → Accounts…, or Add Bluesky account in the Post panel. Enter your handle and an app password, then Save. Create the app password in Bluesky: Settings → Privacy and security → App passwords (bsky.app/settings/app-passwords). Saving checks nothing over the network; the first post shows whether the password works. Remove asks once more, then deletes both.
Add it from the command line. The password is read from an environment variable you name, so it never appears in the command line or in any output:
dotenvx run --quiet --strict -f ~/src/rufuspollock/secrets/.env -- datadeck account bluesky set --handle <handle> --password-env BLUESKY_RUFUSPOLLOCK_APP_PASSWORD
datadeck account bluesky status # the handle and whether a password is stored
datadeck account bluesky removedatadeck post bluesky --text TEXT [--image PATH --alt ALT] prints the exact record it would send and the image size. It sends only with --send. After a successful post it exits 0 even if posts.jsonl cannot be written (it warns on standard error), so nothing retries a post that went out.
Which server. The app logs in at https://bsky.social and then posts to the account's own server (its PDS), read from the didDoc that the login returns (the #atproto_pds service), as the official client does. Set DATADECK_BLUESKY_SERVICE to log in and post at another server instead (https only; plain http only on this machine). A refused login says to check the handle and app password, or this variable for an account hosted elsewhere.
Where things are kept. The handle is the bluesky-handle preference in ~/Library/Application Support/DataDeck/. The app password is in the macOS Keychain as a generic password, service org.datadeck.bluesky, account = the handle. DATADECK_BLUESKY_HANDLE and DATADECK_BLUESKY_APP_PASSWORD, when both are set, take precedence over the saved account; on other systems they are the only way. Each post is added to posts.jsonl beside the preferences, and a capture also gets a posted: entry in its Markdown file (storage). A line can carry a status: may-have-posted, posted-unrecorded or cleared (no status means posted).
Factory stories and the post tool. For a story with a PROMOTION.md, the channels the tool posts itself (its POSTERS: Bluesky and Discord today) get Check with post tool in the Post panel and Triage. It runs the tool's dry run (node post.mjs PROMOTION.md --channel <id> --json; its only network call reads the story link) and shows whether the checks pass, the pack hash, and whether the posting rule clears and why not: no fact-check stamp, no approve: hash, the kill switch, already posted, a missing secrets file. When every gate clears, the primary button becomes Post via post tool…, which asks "Post to Bluesky as the DataHub account via the post tool? It will write the post URL into PROMOTION.md." and shows the tool's own payload: the text, the link card's link and title, the image and its alt text, and the pack hash. If the Deck's caption differs from the tool's text, it says so. Post now first runs the dry run again and stops, posting nothing, if the pack hash or payload changed or a gate no longer clears. Only then does it run dotenvx run --quiet --strict -f <env> -- node post.mjs PROMOTION.md --channel <id> --post and read Factory again. The tool checks its credentials and writes posted: itself; DataDeck never writes PROMOTION.md. When the gates do not clear there is no post action, only the reasons and Copy and Open.
The app reads the tool's result from its exit code and output: exit 0 with posted <channel>: <url> and recorded in is a post; exit 3, or a posted line with any other exit, is a post the tool could not write into PROMOTION.md; exit 2 (refused:), 64 and the parse errors of exit 1 come before anything is sent. Anything else (a poster failure, a crash, the 180-second time limit) may have posted. The tool runs in its own process group, and the time limit kills the whole group, because dotenvx run starts node as a child. A post that may have gone out, or went out unrecorded, is logged in posts.jsonl and blocks posting that story to that channel from the app: the panel says what is known and how to record it (--mark-posted <url>), until you press I have checked: clear. Tool output shown in the app is capped, and lines that name a password, token, secret or bearer are hidden.
The tool is found with two preferences: post-tool (default ~/src/datopian/marketing/tools/post/post.mjs) and post-tool-env (default ~/src/rufuspollock/secrets/.env, passed to dotenvx run -f). If the tool file or node is missing, Check with post tool is not shown.
Press ⌘V anywhere on the Deck, or drop a link from your browser onto the window. The link appears at the top of Found at once and its note opens beside the list, ready for typing or Dictation, while DataDeck reads the page title, preview images and linked CSV, TSV, Excel and Parquet files. Paste a sentence and a link together and the sentence becomes the note. Paste again to capture the next link. A link to a data file is also opened in the viewer as a preview, and copied spreadsheet cells open in the viewer directly. Using macOS Dictation
Notes save automatically. Each capture is a Markdown file under ~/.config/datadeck/inbox/, or $XDG_CONFIG_HOME/datadeck/inbox/ when you set an absolute XDG configuration directory. The YAML frontmatter holds the link and page metadata, and the body contains your note. Cached thumbnails live in assets/. Read the file format, migration details, and parsing example. Finder internet shortcuts (.webloc) work too.
The earlier bookmark library is still there as the detail and notes view: choose View → Bookmark Library (⇧⌘B) or run datadeck --library. It lists every capture with its notes, page preview and discovered links. Capturing a URL again moves that entry to the top and keeps its notes. Choose Deck in its title bar to go back.
The walkthrough uses a local example page with a temperature chart from Our World in Data. Watch the narrated capture walkthrough · Original chart and credits.
From a checkout, with Rust and Xcode installed, build the app and copy it to your own Applications folder. This install runs without administrator privileges.
scripts/package-macos.sh
mkdir -p "$HOME/Applications"
ditto target/release/DataDeck.app "$HOME/Applications/DataDeck.app"
open "$HOME/Applications/DataDeck.app"Open DataDeck from Spotlight or Finder on subsequent launches. To update a local build, quit DataDeck and repeat the commands. Your captured links live separately in your Markdown inbox.
For the optional terminal command, link the installed executable into a directory on your PATH. If you use ~/.local/bin, run the following once.
mkdir -p "$HOME/.local/bin"
ln -s "$HOME/Applications/DataDeck.app/Contents/MacOS/datadeck" "$HOME/.local/bin/datadeck"
export PATH="$HOME/.local/bin:$PATH"
datadeck --helpTo run from a checkout during development, use cargo run --locked or cargo run --locked -- examples/field-notes.csv.
The first public macOS 15+ disk images require Apple signing and notarization. Once published, choose Apple silicon or Intel on the releases page, open the disk image, and drag DataDeck into Applications. The release guide covers signing, tags and GitHub Actions preview builds.
The release build places datadeck in target/release/. Run the commands below from the repository root after building with scripts/package-macos.sh. For the Finder bundle, the same executable is DataDeck.app/Contents/MacOS/datadeck.
./target/release/datadeck # Open the Deck
./target/release/datadeck --library # Open the bookmark library
./target/release/datadeck --inbox-path # Print the Markdown inbox directory
./target/release/datadeck examples/field-survey.csv # Open one file
./target/release/datadeck examples # Browse a folder or checkout
./target/release/datadeck /path/to/datapackage.yml # Open a package
./target/release/datadeck https://datahub.io/core/co2-ppm/_r/-/data/co2-annmean-mlo.csv
./target/release/datadeck run examples/clean-field-survey.sql examples/field-survey.csv > cleaned.csv
./target/release/datadeck --helpFor a datadeck command on your Rust toolchain’s PATH, run cargo install --path . --locked. You can then omit ./target/release/ from these examples.
The Deck also takes --view list|wall|triage, --query TEXT, --select SLUG (or found:ID for a capture), --post, --open, --window-size 1280x800 and --print-window-id; these leave your preferences unchanged and are used by scripts/shoot-app.sh for screenshots. DATADECK_TODAY=YYYY-MM-DD fixes the date used for ages.
Use a single file or direct download URL as the input to run. It writes the full query result as CSV on standard output. The replay options are --sheet NAME, --delimiter comma|tab|semicolon|pipe, and --header yes|no. A folder path opens the resource browser in the desktop app. Filenames containing spaces work inside shell quotes.
Drop a file or directory on the window, choose Open file (⌘O) on the Deck or Open folder (⇧⌘O), or paste a direct HTTP(S) download link into Open data → URL… (⌘L in the viewer). DataHub resource links work directly. The planned dataset-page browser and publishing flow are described in DataHub integration.
CSV and TSV. DataDeck samples the opening records to guess comma, semicolon, tab or pipe delimiters and whether the first record contains headers. Quoted multiline fields, UTF-8 BOMs and Excel-style sep= directives are supported. Short rows have empty trailing cells. Long rows add named columns even when they appear late in a file. The status bar indicates extra fields. Click CSV settings to correct the delimiter or header guess, or choose Detect again. For ambiguous all-text data, check the header setting.
Excel. Each worksheet has a named tab above the grid. Click a tab to inspect or query that sheet. Its first row supplies the headers. Scroll horizontally through the tabs in a workbook with many sheets. See an example workbook with two sheets.
Folders and Data Packages. Open a folder, Git checkout, or a datapackage.json, datapackage.yml or datapackage.yaml file. A descriptor supplies the resource list in package order and can reference local files or HTTP(S) downloads. Without one, DataDeck searches for supported tables and skips hidden, dependency and build directories. Click the folder and resource name above the grid to switch tables. Each file in a multipart resource is available individually.
Live files. Local saves and atomic replacements refresh the selected file after writes settle. The app swaps in the new data after a successful read and reruns a visible query. The selection follows the column name and row position. The query editor retains unsent text. A failed refresh leaves the last successful view available. Live monitoring applies to the selected local file. Reopen the folder to discover newly added resources.
Clipboard. Choose Paste data or press ⌘V with the table focused to open copied CSV, TSV, or spreadsheet cells as a dataset. Pasting into the URL or query field enters text there. To copy data out, select a cell, extend a rectangle with Shift-click or Shift-arrow, and press ⌘C. A range copies as tab-separated cells for pasting back into a spreadsheet.
Choose All columns to compare the profiles of every field in the source or query result. Click a field to inspect its values in the grid. Hide inspector or × closes the detail panel. Show inspector reopens it.
Click a column header to inspect its values. Numeric columns show a histogram and range. Text columns show their most frequent values. The inspector shows distinct and empty counts and identifies its sample, up to the first 1,024 rows. An ordered file can therefore have a different full-file distribution. Use SQL for exact totals across all rows. Select a cell to inspect or copy its contents. Use the arrow keys, Page Up/Down, Home or End to navigate and I to toggle the inspector.
Use − and + next to the text size in the status bar to adjust the table and inspector between 9 and 20 px. The default is 11 px. The View menu has the same controls and a reset command (⌘0). Click Editorial in the status bar, or use View, to switch between colored data marks and Monochrome. DataDeck remembers both settings.
For a worked example with pictures and a runnable recipe, see Clean a field survey and replay it.
Open Query (⌘K) and press Enter to run a single SQLite query against the table data. The first query builds a temporary local database from the loaded rows. Subsequent queries reuse it. The table data always contains the original input, including when Result is visible. Combine cleaning steps in one query, or reopen the exported CSV to use it as the next input. Switch between Source and Result to compare the two. The desktop previews up to 10,000 result rows and reports the total.
For the bundled example, try how many rows per habitat?, which habitat is most common?, or average temp_c by habitat. These questions use a local grammar and turn into editable SQL in the same field. For other questions, enter SQL directly or paste a query written by an AI assistant.
To clean text and keep only the columns you need, run:
SELECT trim(station) AS station, survey_date, individuals
FROM data
ORDER BY survey_date, stationUse Save last query… to freeze the successful query into a script. A SQL comment records the selected sheet and CSV import settings for replay. Replay it on a second file with matching column names and redirect its full result to a new CSV:
cargo run --locked -- run recipe.sql next-survey.csv > cleaned.csv
cargo run --locked -- run recipe.sql workbook.xlsx --sheet Observations > cleaned-sheet.csvThe source viewer retains the displayed strings in memory. SQL projections preserve cell spelling, including padded identifiers, trailing zeros and high-precision decimals. Empty cells become NULL. Canonically spelled integers and decimals become numbers when they round-trip through SQLite’s numeric types. Numeric prompts also recognize decimal and exponent text. Arithmetic uses SQLite integer or floating-point precision. Use double quotes around identifiers with spaces. Excel uses cached cell values. CSV streams into the viewer in batches. Remote Excel and Parquet downloads finish before decoding starts.
To override a recipe’s import settings, add --delimiter comma|tab|semicolon|pipe or --header yes|no.
The grid draws the visible rows and columns. File decoding runs off the UI thread. CSV sends the first 64 data rows to the viewer, then switches to batches of 2,048 so you can start inspecting while the rest loads. The inspector and all-column overview profile up to the first 1,024 rows. SQL builds its temporary database on the first query, reuses it for later queries, and computes over the full dataset. The desktop keeps up to 10,000 query-result rows for display. CLI replay emits the complete result.
We tested the optimized macOS app on an Apple M4 with 32 GB of RAM using the same 1,000,000 station observations in both formats. Both desktop windows reported 1,000,000 rows and four columns. A SQL count, ID range, and observation sum agreed across both files.
| Local input | File size | Desktop resident memory after opening | CLI import plus full-table aggregate |
|---|---|---|---|
| CSV | 25.8 MB | 277 MiB | 0.92 s |
| Snappy Parquet | 6.25 MB | 493 MiB | 1.27 s |
The times are the medians of three warm-file CLI runs and include process startup, decoding, SQLite import and the query. Memory is a post-load process sample, so peak memory can be higher. The desktop retains decoded cells in RAM. Wide tables and long text can consume substantially more memory at the same row count, and compressed Parquet size alone is a poor guide to memory use. Remote Parquet and Excel files download before decoding. These measurements are for local files.
For a parser-only check, run cargo test --locked --release million_row_csv -- --ignored --nocapture. On the same Mac, this separate generated 29.8 MB CSV delivered its first batch to the row callback in 0.44 ms and all one million rows in 337 ms. Window rendering and SQLite are outside that measurement.
cargo test --locked
cargo fmt --checkSee the design rationale for the Deck, viewer, inspector, query and recipe decisions. Project work is tracked in the Ship a fast native tabular data viewer Beads issue (datadeck-pxw).



