How dfnwtf/latrinebot works
Latrine Bot’s public repository is an integration toolkit for a hosted token-automation service, not the service engine itself. A user can query or operate supported API workflows through the CLI or SDK, embed live project data in a widget, or independently check holder eligibility with the calculator. The README documents the private service’s recurring claim, reward acquisition, burn/airdrop, and wait cycle; its implementation is not present here. Source excerpts show the client, CLI, calculator, and widget behavior, but not the full API or widget polling/rendering flow.
Main entry points: client.ts API client · embed.ts Widget embed · cli.ts CLI commands · errors.ts API errors
Components 15
TypeScript SDK
- API client
sdk/src/client.ts - API errors
sdk/src/errors.ts - API types
sdk/src/types.ts - Auth and sessions
sdk/src/client.ts - Projects and setup
sdk/src/client.ts - Metrics and events
sdk/src/client.ts - Public realm features
sdk/src/client.ts
Command-line client
- CLI commands
cli/src/cli.ts
Live widgets
- Widget embed
widgets/src/embed.ts - Theme presets
widgets/src/themes.ts
Eligibility calculator
- Eligibility calculator
calculator/app.js
Other components
- Project operator
- Embed host
- Token holder
- Hosted Latrine API
Connections 14
- Project operator → CLI commands: runs commands
README.md - CLI commands → API client: uses client
cli/src/cli.ts - API client → Hosted Latrine API: sends API requests
sdk/src/client.ts - API client → API errors: throws errors
sdk/src/client.ts - API client → API types: uses response types
sdk/src/client.ts - API client → Auth and sessions: provides auth routes
sdk/src/client.ts - API client → Projects and setup: provides project routes
sdk/src/client.ts - API client → Metrics and events: provides metrics routes
sdk/src/client.ts - API client → Public realm features: provides public routes
sdk/src/client.ts - Embed host → Widget embed: mounts widget
README.md - Widget embed → Hosted Latrine API: loads live data
widgets/src/embed.ts - Widget embed → Theme presets: applies theme
widgets/src/embed.ts - Token holder → Eligibility calculator: checks eligibility
calculator/app.js - Hosted Latrine API → Project operator: runs service cycle
README.md