Brandon LiandClaude Opus 5 65a1103cda Derive capture scope from host_permissions, drop the target URL setting
The popup's target URL pattern was doing two jobs. As a fallback for locate
requests it is now dead — every step carries its firm's pattern. As the thing
deciding which tab gets scraped it was still load-bearing: without it, capture
falls back to whichever tab is active, which means scraping a banking or mail
tab and storing it in the dashboard's database.

So the setting goes, but the scoping moves to the manifest rather than
disappearing. host_permissions already lists exactly the hosts this extension is
allowed to read; capture now queries those (minus localhost, which is the
dashboard mirroring its own output back). The two cannot drift apart, and adding
a firm — which means adding its host to the manifest anyway — scopes capture
without a second place to remember.

With more than one firm open, capture prefers the active tab over the first
match, so it follows attention rather than tab order. That case could not arise
while a single pattern matched one site.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-30 13:26:07 -05:00
2026-03-07 22:07:02 -06:00
2026-03-09 13:59:25 -05:00

AutoFirmer

Automated futures trading dashboard for prop firm accounts via Tradovate.


VPS Setup (Windows Server 2019 / 2022)

All commands are run in PowerShell (run as Administrator).

1. Install Git

Download and install from https://git-scm.com/download/win, or via winget:

winget install --id Git.Git -e --source winget

Restart PowerShell after installing so git is on the PATH.

2. Install Node.js 22+

winget install --id OpenJS.NodeJS.LTS -e --source winget

Restart PowerShell, then verify:

node --version   # should be v22.x or higher
npm --version

3. Install Windows Build Tools (required for better-sqlite3)

better-sqlite3 compiles a native C++ module and needs the Visual Studio build tools:

npm install -g windows-build-tools

If that fails on newer Node, install manually:

4. Clone the repo

git clone https://github.com/Senofy/autofirmer.git
cd autofirmer

5. Install dependencies

npm install

6. Build

npm run build

7. Run

Development (with hot reload):

npm run dev

Production:

npm start

The app runs on port 3000. Access it at http://<your-vps-ip>:3000.


First-time setup

On first run, the SQLite database (autotrader.sqlite) is created automatically in the project root. No migrations need to be run manually.

Open the app in your browser and add your firms through the UI:

  1. Click + Add Firm on the main page
  2. Enter the firm name, Tradovate username, and password
  3. Go to the firm's Settings page to configure account types (prefix, profit target, consistency %, etc.)
  4. Return to the main page — accounts will populate once the firm connects to Tradovate

Keeping it running (PM2)

Install PM2 globally:

npm install -g pm2
npm install -g pm2-windows-startup

Start the app and save the process list:

cd C:\path\to\autofirmer
pm2 start "npm start" --name autofirmer
pm2 save
pm2-startup install

To restart after pulling updates:

cd C:\path\to\autofirmer
git pull
npm install
npm run build
pm2 restart autofirmer

Firewall

To restrict port 3000 to a specific trusted IP only:

New-NetFirewallRule -DisplayName "AutoFirmer" -Direction Inbound -Protocol TCP -LocalPort 3000 -RemoteAddress <your-ip> -Action Allow

Or open it to all inbound (less secure):

New-NetFirewallRule -DisplayName "AutoFirmer" -Direction Inbound -Protocol TCP -LocalPort 3000 -Action Allow

Updating

cd C:\path\to\autofirmer
git pull
npm install       # only needed if dependencies changed
npm run build
pm2 restart autofirmer
S
Description
No description provided
Readme
705 KiB
Languages
TypeScript 74.2%
Python 12.7%
JavaScript 8.1%
Batchfile 3%
PowerShell 1.6%
Other 0.4%