AgenteCalendarioConteudo
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
index.ts
https://diegoivo--ee5739ae364a11f0950d9e149126039e.web.val.run
This API provides content calendar analysis using Google's Gemini AI. It includes:
- Lead capture with session management
- Content analysis storage with UUID tracking
- Swagger documentation for easy API exploration
- Lead Management: Capture and store user information with secure session cookies
- Content Analysis: Generate content calendars using Gemini AI
- Persistent Storage: Save analyses with unique identifiers
- API Documentation: Interactive Swagger UI for testing endpoints
POST /api/auth/register
- Register a new leadPOST /api/auth/login
- Login with existing credentialsGET /api/auth/session
- Check current session statusPOST /api/analysis/generate
- Generate a new content calendar analysisGET /api/analysis/:id
- Retrieve a specific analysis by UUIDGET /api/analysis
- List all analyses for the authenticated user
- Hono.js for API routing
- SQLite for database storage
- Google Gemini AI for content analysis
- Swagger UI for API documentation
- UUID for unique analysis identification
- Access the API documentation at
/api/docs
- Register a new lead to get a session cookie
- Generate content analyses using the provided endpoints