The problem
I trade the NASDAQ open every morning, backtest my setups and keep a journal of every trade. When I started, the tools for that were either hard to find or expensive: good data, a journal worth keeping, and education I could trust.
The club's journal lived in the member portal I built for the Shoreline Investment Club. It needed a browser, a server and a sign-in, and every trade lived on that server. A journal is something you open during the session to log a trade in seconds, and again in the evening for a long review. I wanted it to open like any other app on my Mac, work with the Wi-Fi off, and keep my trades on my own computer.
Why I built it
I build the tools I wished I had when I started learning. I teach the club's members how to trade from zero, and that is why I also made Trace. The portal already had the journal, the analytics, the Risk Lab, backtesting and a prop firm tracker. Writing them again for a desktop app would have meant two versions that slowly drift apart.
So Trace is a port, and I say so plainly: it reuses the website's own code for the journal and its tools, and replaces the storage underneath it. What the Mac version adds is its own: a local database with backups and recovery, reading trades from screenshots, realized R and per-period statistics, the R ruler, a native Mac shell, and an optional sync back to the website.
Design
The first desktop version wore the website's look. A second, a day later, was modelled on another product's trading journal, and it read as generic. I replaced it with a written direction called Bearing, taken from the app's own mark: a white compass rose with one teal needle.
One teal needle, everything else grey
On every screen the needle becomes a 1 px teal line. It marks where you are (the selected page, tab, range or row) and the one series you steer by, your equity. Profit takes the same teal and losses are rose. Apart from an amber kept for warnings, nothing else on the screen has a colour, so a coloured figure always means money won or lost.
Figures in mono, words in sans
Words are set in Public Sans, in sentence case. Every figure is in IBM Plex Mono with tabular numbers, so columns of prices and P&L line up digit under digit. Panels sit darker than the window, like recessed wells, and are separated by thin borders rather than shadows.
A ruler for realized R
The Overview has one element no other screen copies: the R ruler. It plots each recent trade's realized R on one axis, with the stop drawn as a line at minus 1R. It answers the question a risk-based trader asks first: are my losses held at the stop, and are my winners paying for them?
Offline and online, kept apart
The sidebar groups every screen by what it needs. Trading works offline. Connected needs the internet: sync, the club's Public Journal, recaps, videos, Ranked Mode and resources. This Mac holds data, backups and the Trash. The command palette says it at the bottom: everything here is on this Mac.
How it works
Trace is a Tauri 2 app. The interface is React and TypeScript running in the Mac's own WebKit view; underneath it is a Rust backend that owns the data, the files and every network call.
The journal and its tools start from the website's code. A script copies the website files listed in a manifest byte for byte and records their hashes. At build time, module aliases swap the website's server-backed pieces for desktop ones, stand in for the few Next.js imports, and replace the website's screens and components with versions drawn in Trace's look that keep the same exports and props:
{ find: /^@\/context\/TradeJournalContext$/, replacement: at("./src/desktop/data/TradeJournalContext.tsx") },
{ find: /^@\/lib\/supabase\/trades$/, replacement: at("./src/desktop/overrides/supabaseTrades.ts") },
{ find: /^next\/navigation$/, replacement: at("./src/desktop/shims/next-navigation.ts") },
The desktop's trade context talks to Rust, which keeps trades in SQLite (WAL, with full sync on every write) and screenshots as files named by a hash of their contents, both in Application Support. Migrations back up the database first. Backups run daily, on demand and before anything destructive, and the earlier version of each edited trade is kept so it can be put back.
The offline promise is enforced, not just stated. The window's Content Security Policy allows the page to talk to the Rust side and nothing else, so the interface cannot reach the network at all:
"connect-src": "ipc: http://ipc.localhost blob: data:",
The Risk Lab is the website's simulation engine running on the Mac in Web Workers. It resamples the trades in your journal or your backtests, or a strategy described by assumptions, into thousands of possible equity paths. It then reports how often those paths reach the loss limit or the target, the median and spread of final balances, and the worst drawdowns. The same engine runs stress tests, position sizing and prop firm evaluations. Here is the idea in small: set a win rate and a reward to risk, and watch the paths spread.
- Median account after 100 trades
- $13,820
- Paths that end below where they started
- 0%
- Median worst drop from a high
- 7%
Simulated from the numbers you set, with a new random order of wins and losses for each path. Not anyone’s trading results.
A new trade can start from a chart screenshot. A small Swift helper runs Apple's Vision text recognition on the Mac, and plain rules read the instrument, timeframe, prices, size and direction from what is printed. The editor opens as a draft that lists what was not found. P&L is never filled in from an image, and nothing saves until you do. No AI model is involved.
Online mode is optional. It signs in with a club account against the website's Supabase project, and the sign-in token is kept in the macOS Keychain. Sync runs in two steps: a plan that previews what moves each way and asks about trades changed in both places, then an apply that backs up first. Only trades sync; backtests, the prop firm tracker and Risk Lab items stay on the Mac. Sync has been tested against a local stand-in for the website's server, and has not yet been run against the live site.
How I built it
I build with AI coding agents. Every commit in Trace was written with Claude Code, and the repository shows how I work with it: the plan and the rules are written first, and the agent works inside them.
The app started from the vendored website code and a built-in self-test. Test builds of the packaged app log, edit, trash, restore and duplicate trades, check the analytics on screen, confirm the network is blocked, take a backup, relaunch, and then restore a database damaged on purpose. The first version, up to 1.1.0, was built in one day, 19 October 2026: storage, backups and history, the Mac menu bar, screenshot reading, tags and online mode.
Before the screenshot reader existed, I wrote its contract: which fields it may fill, and that it must say which ones it could not read. A review of the data handling came next, and a commit fixed the data-safety issues it found. The sync work went the same way: a second review of online mode, and a fix for each issue it found, each with its own Rust test.
The design went through two redesigns. The one modelled on another journal was dropped because it looked like everything else. Bearing is a written direction, with its tokens, its one accent and its contrast checks set down in the repository, and every screen was redrawn to match it.
What was hard
Reusing a website inside a desktop app without forking it. The website keeps its trades behind a Supabase server and uses Next.js for links and navigation. The answer was to leave those files byte for byte as they are and replace only what they import, which means every swap has to keep the same exports and props as the original.
Making sync safe against a server whose clocks I could not trust. Revision numbers and a hash of the website's copy decide what changed. Each trade is checked again just before it is applied, so an edit made after the preview is not overwritten. New trades carry their id from the first attempt, so a dropped connection never makes a second copy. An empty or partial answer from the website is refused instead of being read as "everything was deleted".
Keeping data safe on disk. A screenshot is written to a temporary file, flushed to the disk and renamed before the database row that points to it is saved. Backups are built in a separate folder and only count once they are complete. A database from a newer version of the app is refused rather than damaged.
Where it stands
Trace is ongoing, as a working prototype. Version 1.1.0 runs on Apple silicon Macs, packaged on my own machine and not notarized, so it is not public and there is nothing to download. The Bearing design, the newest version, is on its own branch and not yet merged or packaged.
Offline, the journal, analytics, Risk Lab, backtesting, prop firm tracker, screenshot reading, backups and recovery all work. Online mode is built and tested against a local stand-in, but its first real sync with the club website has not happened yet.
Before anyone else in the club can use it, Trace needs three things: that first real sync, the Bearing design merged and built, and Developer ID signing and notarization so other Macs open it without a warning. The order I take them in is not decided yet. As of October 2026.
What I learned
I learned to reuse code without copying it into a second life. Copying files unchanged and swapping what they import keeps the desktop app in step with the website, and recording each file's hash shows exactly which version of the website it came from.
I learned that sync is mostly about failure. Two copies that agree are the easy case. The work is in the dropped connection, the edit made after the preview, and the server that answers with nothing.
I learned that "works offline" is a setting you can enforce. Blocking the page from the network in the security policy turned a promise into something a test can check.
I learned that a design taken from another product reads as generic, however polished it is. Starting from the app's own mark gave every screen one rule to follow.






