How bhavadharani412/personal_portfolio_v2 works
This repository is an interactive personal portfolio with a grounded AI digital twin and anonymous engagement analytics. Visitors discover the engineer through portfolio sections, can ask the chatbot questions, and can follow contact links; the app also sends attribution and engagement events to an edge API. The Worker retrieves portfolio evidence, calls Groq, and records chat and analytics data in D1. Component-to-app and Worker-to-service links are supported by excerpts or README statements; unsampled implementation details are not expanded.
Main entry points: App.tsx Portfolio App · index.ts Worker API · portfolioData.ts Portfolio Data · Blogs.tsx Articles
Components 23
Portfolio Experience
- Portfolio App
src/App.tsx - Navigation
src/components/Navbar.tsx - Hero
src/components/Hero.tsx - Contact
src/components/Contact.tsx - Footer
src/components/Footer.tsx
Portfolio Content
- About
src/components/AboutMe.tsx - Journey
src/components/Journey.tsx - Projects
src/components/Projects.tsx - Articles
src/components/Blogs.tsx - Article Modal
src/components/ArticleModal.tsx - Open Source
src/components/OpenSource.tsx - Skills
src/components/Skills.tsx - Portfolio Data
src/data/portfolioData.ts
AI Digital Twin
- Chat Interface
src/components/Chatbot.tsx - Knowledge Retrieval
worker/knowledge.ts - Groq Inference
worker/groq.ts
Edge Services
- Worker API
worker/index.ts - Rate Limiter
worker/rateLimiter.ts
Telemetry
- Analytics Client
src/utils/analytics.ts - Event and Chat Logging
worker/analytics.ts - Cloudflare D1
Other components
- Visitor
- Groq API
Connections 27
- Visitor → Portfolio App: visits
README.md - Portfolio App → Navigation: renders
src/App.tsx - Portfolio App → Hero: renders
src/App.tsx - Portfolio App → About: renders
src/App.tsx - Portfolio App → Journey: renders
src/App.tsx - Portfolio App → Projects: renders
src/App.tsx - Portfolio App → Articles: renders
src/App.tsx - Portfolio App → Open Source: renders
src/App.tsx - Portfolio App → Skills: renders
src/App.tsx - Portfolio App → Contact: renders
src/App.tsx - Portfolio App → Footer: renders
src/App.tsx - Portfolio App → Chat Interface: renders
src/App.tsx - Portfolio App → Analytics Client: tracks page view
src/App.tsx - Hero → Portfolio Data: reads
src/components/Hero.tsx - Journey → Portfolio Data: reads
src/components/Journey.tsx - Projects → Portfolio Data: reads
src/components/Projects.tsx - Articles → Portfolio Data: reads
src/components/Blogs.tsx - Articles → Article Modal: opens
src/components/Blogs.tsx - Chat Interface → Analytics Client: tracks chat
src/components/Chatbot.tsx - Analytics Client → Worker API: posts events
src/utils/analytics.ts - Chat Interface → Worker API: sends questions
README.md - Worker API → Rate Limiter: checks limits
worker/index.ts - Worker API → Knowledge Retrieval: retrieves evidence
worker/index.ts - Worker API → Groq Inference: requests answers
worker/index.ts - Groq Inference → Groq API: calls inference
worker/groq.ts - Worker API → Event and Chat Logging: records events and chat
worker/index.ts - Event and Chat Logging → Cloudflare D1: writes records
README.md