Skip to content

Examples ​

58 runnable programs from examples/, each shown here as it is in the repository. CI type-checks every one of them with npm run typecheck:examples, and the ones that need no token run against live ESI every night; a failure opens an issue. Every page says what the program needs and the command that runs it.

Client features ​

ExampleWhat it showsNeeds
Cursor-based Pagination ExampleESI uses cursor-based pagination for newer routes like Freelance Jobs.Token optional
Public versus authenticated, at the type levelesi.public is a PublicScopeTree: the operations that need no SSO scope.No token needed
Rate Limiting & PaginationDemonstrates rate-limiting awareness, pagination with large datasets, and error handling for non-existent resources.No token needed
Retry, Timeout & Response MetadataDemonstrates retry with exponential backoff, request timeouts, TimeoutError handling, and rich response metadata via withMetadata().No token needed
Streaming PaginationDemonstrates streaming through large paginated datasets page-by-page instead of loading everything into memory at once.No token needed
Universe POST Helpers & Character AffiliationDemonstrates the three safe read-only POST endpoints.No token needed
Write Operations (Contacts, Fittings, Mail)Demonstrates create → verify → cleanup for reversible write endpoints.Needs an access token

Tokens and characters ​

ExampleWhat it showsNeeds
Many characters, one runtimeReads the wallet balance of every character an EsiTokenManager holds, through one shared runtime: one rate limiter, one error budget and one ETag cache for the whole application, and an immutable view per character.Needs an access token
Token ManagerDemonstrates EsiTokenManager: the SSO login flow, persistent multi-character token storage, proactive refresh, a view for a character over the shared runtime (esi.as(tokens.identity(id))), and bulk refresh with a concurrency cap.Needs an access token
Token RefreshDemonstrates automatic token refresh using the onTokenRefresh callback.Needs an access token

Public data ​

ExampleWhat it showsNeeds
Alliance InformationLooks up an alliance, its member corporations, and icons.No token needed
Character LookupLooks up a character's public info, portrait, and corporation.No token needed
Corporation History and NPC CorporationsFollows a character's employment history, the alliance history and logo of their current corporation, then lists the NPC corporations and the loyalty store offers of one of them.No token needed
Dogma & Item TypesExplores EVE's game mechanics data: item types, dogma attributes, and effects.No token needed
Dogma Effects, Meta API & Sovereignty SystemsDemonstrates dogma effects lookup, the ESI OpenAPI spec endpoint, sovereignty system ownership, and war killmails.No token needed
ESI MetadataReads ESI's own metadata: the API name, the compatibility dates it accepts, the latest changelog entries, and the health of each route.No token needed
ESI.ts - Working Example: Complete Character ProfileThis demonstrates how to use the ESI.ts library to gather comprehensive character information by combining multiple API calls efficiently.Token optional
Faction Warfare DetailsDemonstrates faction warfare leaderboards (overall, characters, corporations), faction wars, and per-character/corporation FW stats.Token optional
Incursions & Faction WarfareShows active Sansha incursions and faction warfare statistics.No token needed
Industry & InsuranceFetches public industry data: facility locations, system cost indices, and insurance prices for ships.No token needed
Market PricesFetches average market prices and price history for a specific item.No token needed
Military CampaignsDemonstrates the six military campaign endpoints.Token optional
Paragon Hub SKINR MarketplaceBrowses the Paragon Hub marketplace for SKINR ship customization designs.Token optional
Public ContractsLists the public contracts in a region, then reads the items of the first item exchange and the bids on the first auction.No token needed
Route PlannerCalculates the shortest route between two solar systems and looks up the name of each system along the way.No token needed
Server StatusQuick check that the ESI API is reachable and the EVE server is online.No token needed
SKINR CosmeticsLooks up SKINR designs and a character's owned licenses and components.Token optional
SovereigntyShows active sovereignty campaigns — contested structures, attack/defense scores, and event types.No token needed
Universe EncyclopediaDemonstrates the full breadth of public universe data endpoints.No token needed
Universe InformationFetches solar system, station, and constellation details.No token needed
WarsFetches recent wars and shows details for the most recent one.No token needed

Character and corporation data ​

ExampleWhat it showsNeeds
Access ListsRetrieves an access list (ACL) and displays its members grouped by entity type.Needs an access token
Asset InventoryDemonstrates character asset management: listing items, looking up locations and names in bulk via POST, and summarizing inventory.Needs an access token
Calendar & SearchDemonstrates calendar event listing, event detail, event attendees, and character search.Needs an access token
Character DetailsDemonstrates character-specific endpoints: agents research, blueprints, roles, standings, titles, contact notifications, corporation history, jump fatigue, medals, and notifications.Needs an access token
Contact ManagementDemonstrates reading character contacts with standings and labels, and shows the available write operations (add, edit, delete contacts).Needs an access token
Contracts BrowserDemonstrates browsing public region contracts (no auth) and fetching a character's personal contracts (auth required).Needs an access token
Contracts, Contacts, Assets & WalletDemonstrates character contract bids/items, corporation contracts, alliance/corporation contacts, corporation assets, corporation wallets (journal + transactions), and public structure lookup.Needs an access token
Corporation DetailsDemonstrates all corporation-level endpoints: alliance history, icon, NPC corporations, and authenticated endpoints (blueprints, divisions, facilities, medals, members, roles, shareholders, standings, structures, etc).Needs an access token
Corporation ProjectsDemonstrates the Corporation Projects endpoints.Needs an access token
Fittings & ClonesDemonstrates ship fitting management and clone state inspection.Needs an access token
Fleet OperationsDemonstrates fleet management: checking a character's current fleet, fetching fleet details, listing members, and inspecting wing/squad structure.Needs an access token
Freelance JobsDemonstrates the four Equinox freelance job endpoints.Needs an access token
Industry Jobs & MiningDemonstrates character industry jobs, mining ledger, corporation industry jobs, moon extraction timers, mining observers, and corporation killmails.Needs an access token
KillmailsDemonstrates the two-step killmail lookup: first fetch recent killmail summaries for a character (auth required), then look up full details for each killmail using the public endpoint (no auth for the detail call).Needs an access token
Location TrackerDemonstrates real-time character location tracking: current system, online status, and current ship.Needs an access token
Loyalty Points & Planetary InteractionDemonstrates loyalty point balances, LP store offers, planetary colonies, colony layouts, customs offices, and PI schematics.Needs an access token
Mail InboxDemonstrates character mail operations: reading inbox headers, viewing mail labels, listing mailing lists, and reading individual messages.Needs an access token
Market Orders & GroupsDemonstrates character market orders, order history, corporation orders, market groups, and structure market orders.Needs an access token
Mercenary Dens & Tactical OperationsFetches mercenary dens across New Eden and their spawned tactical operations (MTOs), showing development and anarchy levels.Needs an access token
Remaining Endpoint CoverageTests the 16 endpoints not covered by other examples.Needs an access token
Skills OverviewDemonstrates character skill inspection including trained skills, skill queue, and neural remap attributes.Needs an access token
Skyhooks & Sovereignty HubsQueries Upwell sovereignty structures — sovereignty hubs, orbital skyhooks with silo levels, and currently raidable skyhooks.Needs an access token
Wallet OverviewDemonstrates character and corporation wallet operations including ISK balance, journal entries, and market transactions.Needs an access token

Static Data Export (SDE) ​

ExampleWhat it showsNeeds
Blueprint & Industry DataLooks up a blueprint and displays its manufacturing requirements, resolving material type IDs to names via the SDE.Needs local SDE data
SDE Basic LookupDemonstrates looking up static game data using the SDE module.Needs local SDE data
SDE Market Group TreeWalks the market group hierarchy recursively to display the full market category tree, optionally listing types in each leaf group.Needs local SDE data
Ship Fitting with Dogma AttributesLooks up a ship type and its dogma attributes to display fitting-relevant stats like powergrid, CPU, slot layout, and capacitor.Needs local SDE data

Released under the GPL-3.0-or-later license.