How commonly-ts/trivious-sheets works
Trivious Sheets is a small TypeScript wrapper for reading and writing Google Sheets with service-account credentials. A consumer imports the package entry point, creates a SheetsClient, and invokes operations such as appending rows or accessing data by key. The client formats A1 ranges and calls the Google Sheets API; it also supports keyed updates and adding cell notes. The sampled client source supports these operation and API relationships; no broader product subsystems are documented.
Main entry points: client.ts Keyed Access · functions.ts Range Formatting · index.ts Package Entry · errors.ts Lookup Error
Components 9
Public API
- Package Entry
src/index.ts - Sheets Client
src/client.ts
Sheet Operations
- Append Row
src/client.ts - Keyed Access
src/client.ts - Cell Notes
src/client.ts
Shared Utilities
- Range Formatting
src/utility/functions.ts - Lookup Error
src/utility/errors.ts
Other components
- Framework Consumer
- Google Sheets API
Connections 13
- Framework Consumer → Package Entry: imports
- Package Entry → Sheets Client: exports
- Framework Consumer → Append Row: calls
- Framework Consumer → Keyed Access: calls
- Framework Consumer → Cell Notes: calls
- Append Row → Range Formatting: formats ranges
- Append Row → Google Sheets API: reads and appends
- Keyed Access → Range Formatting: formats ranges
- Keyed Access → Google Sheets API: reads and updates
- Keyed Access → Lookup Error: throws on missing key
- Cell Notes → Range Formatting: formats ranges
- Cell Notes → Google Sheets API: reads and updates notes
- Cell Notes → Lookup Error: throws on missing key