Customer Trends API : LLM + social network scrapper + product/service suggestions
![]() |
1 month ago | |
---|---|---|
analysis | 1 month ago | |
app | 1 month ago | |
common | 1 month ago | |
config | 1 month ago | |
docs | 1 month ago | |
handlers | 1 month ago | |
logger | 1 month ago | |
services | 1 month ago | |
store | 1 month ago | |
.dockerignore | 1 month ago | |
.gitignore | 1 month ago | |
Dockerfile | 1 month ago | |
README.md | 1 month ago | |
config.yaml.example | 1 month ago | |
docker-compose.yml | 1 month ago | |
go.mod | 1 month ago | |
go.sum | 1 month ago | |
main.go | 1 month ago | |
model_config.yaml | 1 month ago |
A Go-based backend service for analyzing social media trends and audience insights.
.
├── app/ # Core application components
│ ├── server.go # HTTP server setup
│ └── routes.go # API route definitions
├── common/ # Shared models and types
├── config/ # Configuration management
├── handlers/ # HTTP request handlers
├── store/ # Database operations
├── services/ # External service integrations
│ ├── instagram/ # Instagram API client
│ ├── tiktok/ # TikTok API client
│ ├── youtube/ # YouTube API client
│ └── google/ # Google Trends client
│ └── suggestions/ # LiteLLM integration
├── analysis/ # Analysis logic
├── logger/ # Logging configuration
└── docs/ # Documentation
Clone the repository
git clone git.linuxforward.com/byom/byom-trends
cd byom-trends
Copy the example config and update it with your settings
cp config.yaml.example config.yaml
Install dependencies
go mod download
Start the LiteLLM Proxy Server
litellm --model gpt-4 --api_base https://api.openai.com/v1
Build and run
go build
./byom-trends
The API is documented using OpenAPI 3.0 (Swagger). You can access the documentation in several ways:
When running the application, visit:
http://localhost:8080/swagger/index.html
The OpenAPI specification is available at:
docs/openapi.yaml
http://localhost:8080/swagger/doc.json
POST /api/v1/trends/analyze/profile/:id
GET /api/v1/trends/analysis/:id
POST /api/v1/trends/social/connect
GET /api/v1/trends/social/:platform/stats
POST /api/v1/trends/google/analyze
POST /api/v1/trends/suggestions
The service is configured via a YAML file. See config.yaml.example
for all available options.
Key configuration sections:
go test ./...
Follow the standard Go code style guidelines and use gofmt
.
Proprietary - All rights reserved