| name | hootsuite-reference-architecture |
| description | Implement Hootsuite reference architecture with best-practice project layout.
Use when designing new Hootsuite integrations, reviewing project structure,
or establishing architecture standards for Hootsuite applications.
Trigger with phrases like "hootsuite architecture", "hootsuite best practices",
"hootsuite project structure", "how to organize hootsuite", "hootsuite layout".
|
| allowed-tools | Read, Grep |
| version | 1.5.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","hootsuite","social-media"] |
| compatibility | Designed for Claude Code |
Hootsuite Reference Architecture
Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Your Application โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Content Manager โ Scheduler โ Publisher โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Hootsuite API Client โ
โ (OAuth, Token Refresh, Rate Limit) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Hootsuite REST API v1 โ
โ platform.hootsuite.com/v1/ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Project Structure
hootsuite-integration/
โโโ src/
โ โโโ hootsuite/
โ โ โโโ client.ts # API client with token management
โ โ โโโ auth.ts # OAuth 2.0 flow
โ โ โโโ publishing.ts # Message scheduling + media
โ โ โโโ analytics.ts # Metrics + URL shortening
โ โ โโโ types.ts # TypeScript interfaces
โ โโโ services/
โ โ โโโ scheduler.ts # Content calendar logic
โ โ โโโ content.ts # Post formatting per platform
โ โ โโโ media.ts # Media processing + upload
โ โโโ api/
โ โ โโโ schedule.ts # REST endpoint
โ โโโ store/
โ โโโ tokens.ts # Persistent token storage
โโโ tests/
โ โโโ unit/
โ โโโ fixtures/
โโโ .env.example
Key Decisions
| Decision | Recommendation | Why |
|---|
| Token storage | Database/KV, not env vars | Refresh tokens change each use |
| Scheduling | Queue-based, not direct API | Rate limit compliance |
| Media upload | Pre-process images | Reduce REJECTED media states |
| Multi-profile | Batch schedule per profile | Separate errors per profile |
Resources
Next Steps
Start with hootsuite-install-auth to set up OAuth.