How jaswanthsai14/blog-generator works
BlogGen is a web app for signing up or logging in, generating AI-assisted blog posts from links, and viewing or deleting saved posts. The frontend maintains login state and calls the backend for authentication; the generation endpoint invokes an agent and stores results, with caching and an admin email notification. The graph also preserves the documented history and page capabilities. Some frontend-to-content API wiring is not shown in the excerpts, so those links are omitted; dashed edges mark unverified integration points.
Main entry points: views.py Generate endpoint · signin.py Authentication endpoints · provider.tsx Login state · agents.py Blog agent
Components 24
Web interface
- BlogGen UI
frontend/front/app/page.tsx - Login state
frontend/front/app/contextprovider/provider.tsx - Dashboard
frontend/front/app/home/page.tsx - Sign-up form
frontend/front/app/signin/page.tsx - Login form
frontend/front/app/logiin/page.tsx - Navigation and logout
frontend/front/app/navbar/page.tsx - Blog generation page
frontend/front/app/blog/page.tsx - Blog history
frontend/front/app/history/page.tsx - History detail
frontend/front/app/history/[id]/page.tsx
Identity and access
- Authentication endpoints
backend/users/signin.py - User accounts
backend/users/signin.py
Blog content
- Generate endpoint
backend/content/views.py - History endpoints
backend/content/data.py - User blog records
backend/users/models.py - Generated-link records
backend/users/models1.py - Generation cache
backend/content/views.py
AI generation
- Blog agent
backend/agents.py - MCP tool server
- Gemini model
- Groq title model
Async notifications
- Admin notification task
backend/users/tasks.py - Celery runtime
backend/config/celery.py - Email service
Other components
- Visitor
Connections 26
- Visitor → BlogGen UI: uses
- BlogGen UI → Dashboard: renders
frontend/front/app/page.tsx - BlogGen UI → Login state: provides state
- Dashboard → Login state: reads and updates
frontend/front/app/home/page.tsx - Sign-up form → Authentication endpoints: posts signup
frontend/front/app/signin/page.tsx - Login form → Authentication endpoints: posts login
frontend/front/app/logiin/page.tsx - Navigation and logout → Authentication endpoints: checks and logs out
frontend/front/app/navbar/page.tsx - Sign-up form → Login state: updates state
frontend/front/app/signin/page.tsx - Login form → Login state: updates state
frontend/front/app/logiin/page.tsx - Navigation and logout → Login state: reads and updates
frontend/front/app/navbar/page.tsx - Authentication endpoints → User accounts: creates and authenticates
backend/users/signin.py - Dashboard → Authentication endpoints: checks session
frontend/front/app/home/page.tsx - Blog generation page → Generate endpoint: submits link
- Blog history → History endpoints: requests history
- History detail → History endpoints: uses selected post
- Generate endpoint → Blog agent: invokes
backend/content/views.py - Blog agent → MCP tool server: loads tools
backend/agents.py - Blog agent → Gemini model: creates agent with
backend/agents.py - Blog agent → Groq title model: requests title
backend/agents.py - Generate endpoint → Generation cache: reads and writes
backend/content/views.py - Generate endpoint → Generated-link records: reads and writes
backend/content/views.py - Generate endpoint → User blog records: saves user blog
backend/content/views.py - History endpoints → User blog records: reads and updates
backend/content/data.py - Generate endpoint → Admin notification task: dispatches
backend/content/views.py - Admin notification task → Email service: sends email
backend/users/tasks.py - Admin notification task → Celery runtime: runs as task
backend/users/tasks.py