4 Running
Nate edited this page 2026-11-22 17:57:19 -08:00

Running

cp .env.example .env   # fill in EVE_CLIENT_ID / EVE_CLIENT_SECRET
make run               # or: go build -o bin/evesynapse ./cmd/evesynapse && ./bin/evesynapse

The release build needs a PostgreSQL 16 or newer database to point DATABASE_URL at; for a fresh local database the setup script (see Installation) provisions one, or create role+database yourself and put the URL in .env. A fresh database gets every schema step on first boot.

make run runs the release build (cmd/evesynapse). If you fork this project, that's the build you get by default: it has no dev-login route at all. make build produces bin/evesynapse, make build-arm64 cross-compiles bin/evesynapse-arm64. For local development there is also a dev build (make build-dev, binary bin/evesynapse-dev, entrypoint cmd/evesynapse-dev) that additionally registers /dev-login when started with DEV_LOGIN=1; see Dev Login. Never deploy the dev build.

For local testing there is a simpler option that does all of the above in one command: from a checkout, sudo bash deploy/setup.sh --build-dev installs Go and PostgreSQL when they are missing, provisions the database, writes a dev .env (with DEV_LOGIN=1), builds the dev server and runs it. Local testing only.

The app auto-loads ./.env at startup (keys already set in the real environment win). Then open http://localhost:8080:

  • /: home; signed out it shows the public landing page (what the app does, sign-up, a demo with sample characters to look around with, and the public tools), signed in it shows your home: a customizable overview of widgets over every linked character (the briefing, your pilots at a glance, net worth, market, industry and more), in the layout the account chooses for itself

  • /map/: the map of New Eden: systems and their connections, jump routes, your characters' locations, and the intel your channels carry laid over it (requires login)

  • /character/: character live state for one character: online status and login history, location, active ship, jump fatigue, active implants, home/jump clones with their implants (requires login; esi-location.*, esi-clones.*, esi-characters.read_fatigue.v1)

  • /characters/: every character linked to the account in one list, with the way into each one's pages (requires login)

  • /fittings/: the Ship Workbench: the fitting simulator. Build a fit on any hull and the dogma engine works out its statistics (requires login)

  • /fittings/saved/: My Loadouts: your saved fittings, from the game and from the workbench (requires login; esi-fittings.read_fittings.v1)

  • /fittings/public/: the Public Loadouts Browser: fits other players have published, with ratings

  • /killmails/: the 50 most recent kills/losses with KILL/LOSS badges, final-blow attacker, involved count and an estimated destroyed+dropped value (requires login; esi-killmails.read_killmails.v1; details warmed by the worker)

  • /mail/: EVE mail: read and search your characters' mail and compose from the page (sending takes esi-mail.send_mail.v1; requires login)

  • /calendar/: the calendar: upcoming events for your characters and corporations, and the op calendar (requires login)

  • /contacts/: contacts and their standings across your characters (requires login)

  • /corporations/: public corporation overviews for the user's characters' corporations (name, CEO, alliance, tax, home station; public ESI, cached per CCP's Expires header)

  • /corporations/members/: member roster with, when member tracking is available, join date, last login, current ship and location (roster: no role; tracking requires the Director role in-game)

  • /corporations/wallets/: the seven wallet divisions with balances, plus the selected division's recent journal and transactions (requires the Accountant or Junior Accountant role in-game)

  • /corporations/orders/: open corporation orders with item, location and region names, price, volume remaining and expiry (requires the Accountant or Trader role in-game)

  • /corporations/assets/: corporation assets grouped by location, with player-given singleton names (named ships, renamed containers) resolved by the worker via the assets/names endpoint (requires the Director role in-game)

  • /corporations/structures/: Upwell structures: type, system, state, fuel expiry, reinforce timers and service states (requires the Station Manager role in-game)

  • /corporations/killmails/: the corporation's recent kills and losses, sharing the killmail store and page rendering with /killmails/ (a victim in the corp is a LOSS; requires the Director role in-game)

    All corporation subpages follow the selected character's corporation (switch characters with ?character=, like Assets), render from worker-warmed snapshots only, and show a plain "needs the role" state when ESI refused the dataset for want of an in-game role: see Token Refresh and Caching.

  • /fleets/: Fleets: upcoming fleets, with sign-ups. Open to anyone at the level each fleet allows

  • /fleets/plan: plan a fleet

  • /fleets/<id>/: one fleet, with its composition, report and ship replacement pages under it

  • /fleets/history/: past fleets

  • /fleets/leaderboard/: Fleet Leaderboards (public)

  • /fleets/permissions/: who else plans fleets and keeps doctrines for an alliance or community

  • /fleets/communities/: Communities: the public directory and each community's page

  • /f/<token>/: a fleet's share link

  • /doctrines/: the corporation's doctrines: the fleet compositions it flies (requires a character in the corporation)

  • /doctrines/fits/: Corporate Loadouts: the fittings behind the doctrines (requires login)

  • /srp/: Ship Replacement (SRP): replacement requests and their handling (requires login)

  • /groups/: Groups: the lists of characters a corporation's or alliance's directors keep by hand, used by the Discord role rules and more (see Discord; requires login)

  • /corporations/settings/: the corporation's own settings: its Discord servers and related housekeeping (requires login)

  • /auth/eve: starts EVE SSO login (also "Link another character")

  • /auth/callback: OAuth2 callback (see EVE SSO Flow)

  • /auth/logout: destroys the session (POST; the sidebar's Sign out button)

  • /admin/: the admin page: an analytics tab of read-only site statistics and charts, an accounts tab (accounts and the characters linked to them: totals, the newest accounts, and one account looked up by any of its characters, a search box that suggests as you type, with each character's sign-in state and what it granted), and a notices tab. Nothing about data freshness: that is the Sync tab (requires an admin account; see EVE_ADMIN_CHARACTER_IDS)

  • /assets/: asset browser: every stack grouped by location for the signed-in user's characters (requires login; esi-assets.read_assets.v1)

  • /wallet/: the character wallet: balance, journal and transactions, with the balance over time as a chart (requires login; esi-wallet.read_character_wallet.v1)

  • /orders/: your characters' market orders, open and finished (requires login)

  • /contracts/: your characters' contracts and what is inside them (requires login)

  • /contracts/search/: search public contracts across New Eden (requires login)

  • /profit/: profit: per-item trading profit and loss on a pooled FIFO cost basis (sales tax paired, broker fees tied, and typed gaps where a cost is not known), per-blueprint industry profit three ways (realized, at the prices of their time, and rerun at today's prices), LP earnings, and the chart set: running total by character, fees with their share of sales, and cost of goods sold (requires login)

  • /market/: market browser: item search (local name cache + exact ESI resolution), guide prices, and best/top orders for The Forge, Domain, Sinq Laison, Heimatar and Metropolis (requires login; all data is public ESI, order books capped at 20 pages)

  • /market/appraise/: appraisal: paste a plain item list, an asset or cargo copy, or an EFT fit (the ship, its fitted modules and charges, and the drones and cargo the fit lists), and every line is priced from EveSynapse's own stored prices with its basis and age shown. Blueprint copies written as Name (BPC, ME n, TE n, n runs) price from the stored median for that copy, never the original, and a copy with too few listings on record is left unpriced. Mutated (abyssal) items appraise too: a line carrying the item's in-game link prices from that item's stored rolls estimate, and a line without the link, or with no estimate on record, prices its base item and says so (no login required; signed-in appraisals are saved and shareable by link)

  • /market/scanner/: the Spread Scanner: buy and sell spreads from EveSynapse's own swept order books, ranked and stored at sweep time (requires login)

  • /market/trends/: Market Trends: price and volume movement from the stored daily history (public)

  • /market/lp/: the LP Store browser: every loyalty point store's offers, what each costs in LP, ISK and required items, and what the reward is worth (public)

  • /market/baskets/: Market Baskets: saved groups of items, watched and priced together (public)

  • /market/ideas/: Trade Ideas: trade opportunities written by a model from the spread scanner's rows (needs a model configured: MODEL_API_KEY or the Cloudflare settings under Configuration; otherwise the page shows its empty state)

  • /market/tradefinder/: the Tradefinder: routes between stations with the profit worked out from stored order books (requires login)

  • /market/leaderboard/: Top Stations: stations ranked by open orders and the ISK on their books (requires login)

  • /market/restock/: the Restock Planner: what a market or a list needs bought to be whole again, and what it costs (requires login)

  • /items/: the Item Browser: the item database, every type with its group, attributes and market summary

  • /skills/: full skill sheet: total/unallocated SP, level-V count, the complete training queue, and every known skill grouped by category with per-group SP subtotals (requires login; esi-skills.read_skills.v1 + esi-skills.read_skillqueue.v1)

  • /skills/plans: Skill Plans: build a training plan (or take one from a fit) with prerequisites ordered for you and the training time worked out (requires login)

  • /industry/: Blueprints: your blueprint library, originals and copies with their research (requires login)

  • /industry/jobs/: My Jobs: your industry jobs, running and delivered (requires login)

  • /industry/mining/: the Mining Ledger: what your characters mined, by day and by item (requires login)

  • /planner/: the Build Planner: pick a product and see the tree of everything it needs, what you already hold, and the price of the rest (requires login)

  • /planets/: My Colonies: your planetary colonies and what they extract and produce (requires login)

  • /industry/pi/: the PI Planner: lay out a colony chain on paper before committing to it in the game (requires login)

  • /admin/sync/: the Admin page's Sync tab: the worker and the data: the last cycle in figures (time, fetches against the allowance, characters by tier, ESI's rate-limit budgets), what was warmed ahead and how pages are served, the shared cache's check outcomes, the shared public data, the SDE static-data block (row counts, import state, update check), and one character's snapshot freshness and type-name coverage with a re-warm button. The character is the reader's own until another is looked up by name or id; no page prints every character. It auto-refreshes so an import can be watched as it lands (requires an admin account); /sync/ redirects here

  • /intel/wars/: current wars from the public war list and worker-warmed war details: aggressor/defender names, state, kill records, open-for-allies/mutual badges, and a flag on wars involving one of your characters' corporations (requires login; all data is public ESI)

  • /intel/incursions/: active Sansha incursions: constellation, staging system, state, influence bar, boss presence and the affected systems (requires login; public ESI)

  • /intel/fw/: faction warfare: per-faction summary cards (systems held, pilots, kills and victory points) and the most contested front-line systems with occupier/owner factions (requires login; public ESI)

  • /intel/kills/: the Killboard: kills and losses across New Eden from the stored killmail data (public)

  • /intel/battles/: Battle Reports: fights posted by Axon from your game logs, joined to their killmails, with findings and a timeline (requires login)

  • /intel/battle/<id>/: one battle report; the same report is shareable by link at /intel/battle/s/<token>/

  • /intel/scan/: the D-Scan Parser: paste a directional scan (or local, probe or overview text) and get the interpreted reading: what is there and on grid, whose ships they likely are, and the composition at a glance (public)

  • /intel/channels/: Intel Channels: the channels you run or belong to. Reports posted to a channel are parsed and synthesized as they land (requires login)

  • /intel/feed/: the Intel Feed: the synthesized reports from every channel you can read, newest first, each element linking deeper (to the pilot, the system on the map, related scans) (requires login)

  • /intel/workbench/: the Intel Workbench: one pilot or gang under the microscope: the synthesized headline, their activity, sightings and threads (requires login)

  • /license/: the project's license and legal notices

  • /healthz: ok (200) when the database answers and the background worker is running; 503 with one line per problem otherwise

  • /dev-login: dev-only fake sign-in, registered only when DEV_LOGIN=1 (see Dev Login)