How blacksmoke16/gesi works
GESI is a Google Sheets add-on and Apps Script library for authenticating EVE characters and querying EVE ESI from sheet formulas or scripts. A formula wrapper dispatches through GESI, which selects character credentials and configures an ESIClient; the client builds and fetches endpoint requests, then formats results for Sheets. The README also documents multi-character invocation, raw JSON, endpoint parsing, and reusable clients. Some runtime connections are documented but fall in unsampled source, so those links are marked unverified rather than inferred from imports alone.
Main entry points: gesi.ts GESI orchestration · esi_client.ts ESI client · token_storage.ts Token storage adapter · endpoints.ts Endpoint catalog and scopes
Components 19
Sheets entry points
- Custom functions
src/script/src/functions.ts - GESI orchestration
src/script/src/gesi.ts - Script library API
src/script/src/gesi.ts - Multi-character invocation
src/script/src/gesi.ts
Character identity
- Add-on authorization UI
src/script/src/gesi.ts - OAuth service
src/script/src/gesi.ts - Token storage adapter
src/script/src/token_storage.ts - Authenticated characters
src/script/src/gesi.ts - Character affiliation lookup
src/script/src/gesi.ts
ESI request runtime
- ESI client
src/script/src/esi_client.ts - Endpoint catalog and scopes
src/script/src/endpoints.ts
Results and storage
- Document properties
- Document cache
- Nested array parser
src/script/src/gesi.ts - Sheet-formatted results
Other components
- Sheet user
- EVE SSO
- EVE ESI API
- Apps Script URL fetch
Connections 22
- Sheet user → Custom functions: calls formula
README.md - Custom functions → GESI orchestration: invokes endpoint
src/script/src/functions.ts - Script library API → GESI orchestration: invokes functions
README.md - Sheet user → Add-on authorization UI: authorizes character
README.md - Add-on authorization UI → OAuth service: starts authorization
src/script/src/gesi.ts - OAuth service → EVE SSO: authorizes with
- OAuth service → Token storage adapter: uses token store
src/script/src/gesi.ts - Token storage adapter → Document properties: reads and writes
src/script/src/token_storage.ts - Token storage adapter → Document cache: caches access token
src/script/src/token_storage.ts - GESI orchestration → Authenticated characters: selects character
src/script/src/gesi.ts - GESI orchestration → ESI client: creates client
src/script/src/gesi.ts - Character affiliation lookup → ESI client: queries affiliation
src/script/src/gesi.ts - ESI client → Endpoint catalog and scopes: looks up endpoints
src/script/src/esi_client.ts - GESI orchestration → Endpoint catalog and scopes: loads scopes
src/script/src/gesi.ts - ESI client → Apps Script URL fetch: fetches requests
src/script/src/esi_client.ts - Apps Script URL fetch → EVE ESI API: sends HTTP requests
- ESI client → Sheet-formatted results: formats response
src/script/src/esi_client.ts - GESI orchestration → Multi-character invocation: dispatches per character
README.md - Multi-character invocation → GESI orchestration: invokes endpoint
README.md - Sheet user → Nested array parser: parses endpoint data
src/script/src/gesi.ts - Nested array parser → Endpoint catalog and scopes: reads headers
src/script/src/gesi.ts - Sheet-formatted results → Sheet user: returns data
README.md