How soyafa/ai-powered-portofolio-generator works
Repo2Folio turns a GitHub account into an editable, saved, and exportable portfolio. The main path runs from the user through the studio builder and API client to GitHub analysis, AI copy optimization, and template rendering; users can then edit, save, and export the result. Authentication and password recovery support account access, while portfolio persistence uses MongoDB or a local JSON fallback. The README documents all 12 templates and the external services; unsampled route and service details are represented only where imports or documentation support them.
Main entry points: App.tsx Application shell · routes/api.ts REST API routes · services/api.ts Frontend API client · usePortfolioBuilder.ts Portfolio builder
Components 25
Portfolio experience
- Application shell
src/App.tsx - Sign-in views
src/components/AuthGateView.tsx - Portfolio builder
src/hooks/usePortfolioBuilder.ts - Studio editor
src/components/ContentEditorPanel.tsx - Template gallery
src/components/TemplatesView.tsx - Portfolio preview
src/components/StudioView.tsx - 12 portfolio designs
src/components/templates - Saved portfolios
src/components/SavedView.tsx - Frontend API client
src/services/api.ts - Portfolio data model
src/types/portfolio.ts
Profile analysis
- GitHub analysis
server/services/githubService.ts - AI copy optimization
server/services/aiService.ts
Backend services
- REST API routes
server/routes/api.ts - Token and password auth
server/services/authService.ts - Password reset
server/services/passwordResetService.ts - Reset email delivery
server/services/emailService.ts
Persistence and export
- Data repositories
server/db.ts - MongoDB models
server/models/Portfolio.ts - Standalone HTML export
src/utils/exportHtml.ts - Template formatting
src/utils/portfolioHelpers.ts - Saved portfolio state
src/hooks/useSavedPortfolios.ts
Other components
- Portfolio creator
- GitHub API
- Google Gemini
- SMTP service
Connections 32
- Portfolio creator → Application shell: uses
README.md - Application shell → Portfolio builder: creates state
src/App.tsx - Application shell → Sign-in views: routes views
src/App.tsx - Application shell → Portfolio preview: renders
src/App.tsx - Application shell → Template gallery: routes to
src/App.tsx - Application shell → Saved portfolios: routes to
src/App.tsx - Portfolio builder → Frontend API client: requests analysis
src/hooks/usePortfolioBuilder.ts - Portfolio builder → Portfolio preview: provides portfolio
README.md - Portfolio preview → Studio editor: renders editor
src/components/StudioView.tsx - Portfolio preview → 12 portfolio designs: renders design
src/components/StudioView.tsx - Template gallery → 12 portfolio designs: previews designs
README.md - 12 portfolio designs → Template formatting: formats content
src/components/templates/EditorialTemplate.tsx - Sign-in views → Frontend API client: submits credentials
src/components/AuthGateView.tsx - Portfolio builder → Frontend API client: optimizes copy
src/hooks/usePortfolioBuilder.ts - Frontend API client → REST API routes: calls REST API
README.md - REST API routes → GitHub analysis: invokes analysis
server/routes/api.ts - GitHub analysis → GitHub API: fetches profile
README.md - REST API routes → AI copy optimization: invokes optimization
server/routes/api.ts - AI copy optimization → Google Gemini: generates copy
README.md - REST API routes → Token and password auth: verifies passwords
server/routes/api.ts - REST API routes → Password reset: creates reset code
server/routes/api.ts - REST API routes → Reset email delivery: sends reset email
server/routes/api.ts - Reset email delivery → SMTP service: delivers email
README.md - REST API routes → Data repositories: reads and writes
server/routes/api.ts - Data repositories → MongoDB models: uses models
server/db.ts - Saved portfolios → Saved portfolio state: lists and edits
README.md - Saved portfolio state → Frontend API client: loads portfolios
src/hooks/useSavedPortfolios.ts - Frontend API client → Data repositories: portfolio requests
README.md - Application shell → Standalone HTML export: downloads portfolio
src/App.tsx - Portfolio preview → Frontend API client: saves portfolio
README.md - Portfolio builder → Portfolio data model: builds document
src/hooks/usePortfolioBuilder.ts - 12 portfolio designs → Portfolio data model: renders document
src/components/templates/EditorialTemplate.tsx