Skip to content

About

Paper-trade Solana memecoins on the sites you already use. Real prices, fake money, and a record you can actually learn from.

Topics

Resources

Contributing

Stars

80 stars

Watchers

0 watching

Forks

Repository files navigation

PaperTrench

Paper-trade memecoins on Solana, Robinhood Chain, BNB Chain, Ethereum and Base — on the sites you already use. Real prices. Fake money. A record you can actually learn from.

License: MIT Tests Chrome MV3 Trades stay local

PaperTrench launch video preview

(GitHub's file viewer can't stream the 15 MB mp4 — it plays on the site.)


What it is

PaperTrench is a Chrome extension that overlays a paper-trading terminal on 15 supported sites: Axiom, Padre, Photon (TinyAstro), GMGN, BullX, Dexscreener, Birdeye, Jupiter, Pump.fun, Fomo, Hyperliquid, Lute, Kalshi, Polymarket, and Limitless. You trade the real chart, at the real live price, with money that isn't real — then review exactly what you did and why.

Trading is verified on Solana, Robinhood Chain, BNB Chain (BSC), Ethereum and Base — the chains where every fill gets an independent second price check. Dexscreener and Birdeye pages on other chains may show the panel and a price, but fills there are not verified yet.

It exists because the usual way people learn this market is to lose money finding out that they chase, oversize, and round-trip their winners. This tells you that in an afternoon instead.

The PaperTrench overlay on a live chart

Why it's different

It never invents a price. Every fill uses a price validated against a trusted anchor. When no source has a price yet, the panel says so instead of showing a number.

It measures process, not just P&L. Anyone can get lucky. PaperTrench grades how much of each move your exit actually captured, how big your positions were relative to your book, and whether you followed the plan you wrote before entering.

It works on brand-new launches. Dexscreener doesn't index a coin until it has seen a pool — measurably after the coin exists. PaperTrench queries Jupiter in parallel and anchors off whichever resolves first, so a coin seconds old is tradeable.


Features

Trading

Live overlay Quick-buy presets, % sells, and a P&L that updates on the site's own price feed — event-driven, not polled.
Positions bar Every open position pinned to the top of the page with live P&L. Click one to jump to its chart.
Native chart fills On Padre, your paper buys and sells render as real TradingView markers with average fill/exit lines.
Armed buys Click buy before a brand-new coin has a quote and the order arms, then fills the instant the first trusted price lands.
Instant X links Opt-in: clicking an X post or profile on a trading site opens it in a kept-warm viewer tab in ~0.5s instead of a ~3.5s cold tab — and hovering a link first prefetches it, making the click near-instant. Costs one muted background x.com tab while enabled; Ctrl/Cmd/middle-click still opens normal tabs.
Tweet on the buy button Opt-in: where a terminal hides the launch tweet behind a held hotkey, PaperTrench puts it on the control your cursor is already on — hover the site's own quick-buy pill and the tweet appears in about a tenth of a second, no key held. The card is always placed clear of the pill, never over it. Works where the site's pill is a verified one (Axiom, Padre).
X-Ray Opt-in: land on any X profile or post and the intel card is already there — account age, bio / display-name / @handle changes, every contract address the account has posted, and Smart Following (its biggest followers). Built from the X page's own data, on your machine. It states what it cannot know: change history starts the first time your device sees an account, and the card prints that date.

Learning

Trade thesis Write why you're taking a trade while the position is open — before you know the outcome. Tag the setup, set a target and stop.
Exit quality Every round graded excellent / sold early / round-tripped, with the SOL you left on the table quantified.
Position sizing Average and largest trade as a share of your book, flagging anything over 25%.
Setup performance Win rate and average P&L per setup tag — so revenge can be compared honestly against narrative.
Session replay Scrub through any trade: every fill, chart frames, and the screen recording if you made one, all on one timeline.
Shareable P&L cards Turn any closed round into a posting-ready image, with your own picture or GIF behind it.
AI coaching Optional review of a round or a whole session through any OpenAI-compatible endpoint. Judges process against your stated plan.

Verifiable record

Every fill is committed to a hash chain the moment it happens, which makes three things checkable: ordering (no inserting or deleting trades afterwards), pre-commitment (no backdating a winner), and price reality (each fill records mint, price, and timestamp, so it can be re-checked against real history).

The dashboard re-derives your result from the chain and shows it beside the displayed number. If they disagree, the stored state was edited.

Stated plainly: this is evidence, not proof. Anyone can run modified code locally. A leaderboard built on this must recompute standings server-side from the submitted chain — never from the number the app displays. See docs/LEADERBOARD.md for the protocol.


Install

PaperTrench is not on the Chrome Web Store yet. Loading it unpacked takes about thirty seconds.

  1. Download — grab the latest release zip and unzip it, or clone this repo.
  2. Open chrome://extensions and turn on Developer mode (top right).
  3. Click Load unpacked and select the folder that contains manifest.json — the unzipped release folder itself, or the extension/ folder if you cloned the repo.
  4. Pin PaperTrench so the popup is one click away.

Updating: unzip the new release over the same folder, then press Reload on the PaperTrench card at chrome://extensions. Your wallet carries over. Do not click Remove: removing an extension deletes its stored data, wallet included. If you want a safety net first, use Backup wallet in the popup.

Getting "Manifest file is missing or unreadable"? The folder you selected doesn't have manifest.json at its top level. Open the folder you unzipped and select the level where manifest.json sits.

Open any supported token page and the overlay appears within a second or two.

The PaperTrench dashboard

First trade

  1. Go to a token on any supported site, e.g. https://trade.padre.gg/trade/solana/<mint>.
  2. Wait for the panel's status dot to turn green — that means a trusted price is live.
  3. Pick a SOL amount and hit BUY (PAPER). Your balance drops; a position card appears.
  4. Write your thesis while it's open. Why this trade? What's the target?
  5. Sell 25 / 50 / 75 / 100% when you're ready.
  6. Open the dashboard to see the round graded — and what you left on the table.

P&L cards

Every closed round has a Share button that opens a card composer. Drop in any picture or GIF as the background — it's cover-fitted and scrimmed so the numbers stay readable over a busy image — then download a 1200×675 PNG ready to post.

The numbers on the card are read straight from the engine's own round record, so a shared card cannot show a result your journal doesn't contain.

The composer now works like the terminals people know: a background gallery (built-in looks plus your own uploads, saved for next time), a Customize panel for which stats show, and Download / Copy to clipboard for paste-and-go posting. Two things are always drawn and cannot be customized away: the PAPER watermark across the middle, and the full-width PaperTrench brand bar with "paper trading — not financial advice" and the project URL. The branding is drawn by a code path that reads no settings at all — there is no combination of options that removes it. A simulated trade should never be passable as a real one.

Privacy

  • No account required for paper trading. Your wallet, trades and journal stay local unless you manually submit a leaderboard record or explicitly enable Tournament sync after joining.
  • A real off switch. The ⏻ button in the popup turns PaperTrench fully dormant — nothing injected or rendered on any site, live in every open tab — until you turn it back on. Wallet and settings are kept.
  • Your trading data is local. Trades, settings, replays, and recordings live in your browser's own storage.
  • Network calls: our own price service (papertrench-api.onerobby.workers.dev/api/quote, since v3.22) receives token addresses and chain, with no account or cookies, as an independent price source; the public Dexscreener and Jupiter APIs; public Solana RPCs or your configured private RPC; the venue APIs on supported markets; GitHub release checks (switchable); Daily Spark when you play; X oEmbed for opted-in hover previews; and your own configured AI endpoint. Tournament sync is separate and opt-in after joining: while you hold a live seat, the extension sends the same verified fill chain to our API every five minutes and after each cut, with a scoped 30-day Bearer token and no cookies. It is not in backups or debug reports; the dashboard removes the local grant and the tournament page revokes server tokens.
  • Server logs. Our API logs the requests it receives (time, URL including token addresses, and Cloudflare's request metadata such as IP address and approximate location) and keeps them for up to 7 days to fix bugs and stop abuse. The website uses cookieless Cloudflare Web Analytics. Full details: papertrench.com/privacy.
  • Recordings never leave your machine. They're stored in IndexedDB and saved to your downloads folder.
  • Leaderboard submission is opt-in. Manual papertrench.com Sync still requires the Site sync setting and a user click. Tournament auto-sync is a separate join-time consent; it uses a 30-day token scoped to /api/submit and /api/tournament/mine, and the extension sends no record until you grant it. No other origin can request or grant sync.

What the manifest asks for, and why

storage + unlimitedStorage for the wallet, journal and replays · tabs / activeTab for chart frames · offscreen for the optional recorder · scripting to register the opt-in Instant-Links bundle at runtime (all those toggles are off by default).

host_permissions is <all_urls>, and it is worth being plain about why: the service worker has to fetch() endpoints you choose — an OpenAI-compatible AI endpoint on any host, and an optional private Solana RPC — and those hosts cannot be known in advance. Those requests are SSRF-guarded (private ranges need an explicit opt-in; cloud metadata IPs are always blocked).

Broad host permissions are not broad content scripts. The overlay is injected only into the supported trading sites, never anywhere else — a property enforced by scripts/preflight.sh and a manifest test, because an earlier alpha did inject everywhere (DEFECTS.md O-09). The full permission-by-permission audit lives in docs/PERMISSIONS.md.


Tests

cd extension && node --test
cd server   && node --test
cd bot      && node --test
bash scripts/preflight.sh

The GitHub Actions badge above tracks .github/workflows/test.yml. That workflow runs the extension and server suites plus the release preflight, which also runs the bot suite. CI is the source of truth for current pass counts, so they are not duplicated here.

The suite is mutation-tested: fixes were verified by reverting them and confirming the tests fail. The one test that hits a live API skips — rather than fails — when offline.


Architecture

extension/
  manifest.json      MV3 manifest
  sites.js           per-site adapters (URL → token identity)
  quote.js           pure logic: pair selection, tick validation, P&L math
  resolver.js        Dexscreener + Jupiter lookups (raced)
  engine.js          portfolio engine: positions, fees, rounds, thesis, grading
  attest.js          tamper-evident fill chain
  replay.js          session replay model
  recordings.js      IndexedDB store for screen recordings
  price-bridge.js    MAIN-world hook into the site's own price feed
  content.js         Shadow-DOM overlay
  background.js      service worker: AI proxy, recording, frames
  dashboard.html/js  journal, rounds, replay, leaderboard, coach, settings

The decision logic is deliberately kept in pure functions (quote.js, engine.js, attest.js) so it can be tested without a browser — and so the code that runs in the page is the same code the tests exercise.

Details: docs/ARCHITECTURE.md · docs/LEADERBOARD.md · CONTRIBUTING.md

Transparency

Development runs against a public, ranked defect register: DEFECTS.md (200 current findings, severity-weighted so "a number is wrong" outranks everything). ROADMAP.md is the historical v2.0 road-out-of-alpha plan; the current plan is docs/ROADMAP.md. Every release checks off entries with a regression test per fix. If you find a bug, the report form asks for exactly what we need to reproduce it.

Thinking about going from paper to real money? Read docs/GRADUATION.md first — it is the honest version of "am I ready?", and the product considers it a success when the answer is "not yet."


Known limits

  • Price anchoring needs a network call, so on a cold cache the header briefly reads "Fetching live price…". Trading is disabled during that window by design.
  • Ticks that disagree with the anchor by more than ~20x are dropped. During a genuinely violent move the overlay falls back to the periodic anchor refresh.
  • Screen recording requires choosing a tab/window once per session — Chrome cannot do it silently.
  • Some coins have no price on any source for their first moments. PaperTrench waits rather than inventing one.

Contributing

Issues and PRs welcome. The one hard rule: never fabricate a number. If a price, a fill, or a statistic can't be derived from real data, the code says so instead of guessing.


License

MIT — see LICENSE.

Paper money. Real lessons.

About

Paper-trade Solana memecoins on the sites you already use. Real prices, fake money, and a record you can actually learn from.

Topics

Resources

Contributing

Stars

80 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages