How madrimovdev/portfolio-next works
This is a multilingual personal portfolio and publishing site. Visitors browse localized profile, work, skills, experience and project pages, then read Notion-backed articles and case studies; blog readers can view engagement metrics and comments. The site also exposes RSS feeds and post-interaction APIs. Edges below follow shown imports, calls or documented behavior; unsampled routes and components are represented at their exact paths, with no inferred internal calls beyond the available evidence.
Main entry points: [lang]/page.tsx Localized home · [slug]/page.tsx Blog article · supabase.ts Supabase data access · notion.ts Notion content client
Components 34
Portfolio site
- Localized home
src/app/[lang]/page.tsx - Profile sections
src/components/header/header.tsx - Work and skills
src/components/my-work/my-work.tsx - Experience
src/components/experience/experience.tsx - Project portfolio
src/components/portfolio/portfolio.tsx - Project card
src/components/portfolio/portfolio-card.tsx - Case studies
src/app/[lang]/case-studies
Publishing
- Blog listing
src/app/[lang]/blog/page.tsx - Blog article
src/app/[lang]/blog/[slug]/page.tsx - Notion rendering
src/lib/notion-render.tsx - Localized RSS
src/app/[lang]/rss.xml/route.ts - RSS redirect
src/app/rss.xml/route.ts - Related posts
src/components/related-posts/related-posts.tsx - Latest posts
src/components/latest-posts/latest-posts.tsx
Reader engagement
- Interaction provider
src/components/post-interactions/post-interactions-provider.tsx - Comment thread UI
src/components/comments/comments.tsx - Comment thread
src/components/comments/comment-thread.tsx - Comment endpoint
src/app/api/posts/[slug]/comments/route.ts - Alias endpoint
src/app/api/posts/[slug]/alias/route.ts - Stats endpoint
src/app/api/posts/[slug]/stats/route.ts - View endpoint
src/app/api/posts/[slug]/view/route.ts - Clap endpoint
src/app/api/posts/[slug]/claps/route.ts - Clap button
src/components/post-interactions/clap-button.tsx
Content and services
- Notion content client
src/lib/notion.ts - Supabase data access
src/lib/supabase.ts - Supabase database
Shared presentation
- Locale dictionary
src/dict/index.ts - SEO utilities
src/lib/seo.ts - Structured data
src/components/json-ld/json-ld.tsx - Navigation
src/components/navbar/navbar.tsx - Menu definitions
src/components/navbar/menu-items.ts
Other components
- Visitor
- Notion API
- Telegram notifier
src/lib/telegram.ts
Connections 44
- Visitor → Localized home: opens
src/app/[lang]/page.tsx - Localized home → Profile sections: renders
src/app/[lang]/page.tsx - Localized home → Work and skills: renders
src/app/[lang]/page.tsx - Localized home → Experience: renders
src/app/[lang]/page.tsx - Localized home → Project portfolio: renders
src/app/[lang]/page.tsx - Project portfolio → Project card: renders
src/components/portfolio/portfolio.tsx - Localized home → Locale dictionary: loads locale
src/app/[lang]/page.tsx - Localized home → Structured data: renders
src/app/[lang]/page.tsx - Localized home → SEO utilities: builds metadata
src/app/[lang]/page.tsx - Visitor → Blog listing: opens
src/app/[lang]/blog/page.tsx - Blog listing → Notion content client: loads posts
src/app/[lang]/blog/page.tsx - Visitor → Blog article: opens
src/app/[lang]/blog/[slug]/page.tsx - Blog article → Notion content client: loads article
src/app/[lang]/blog/[slug]/page.tsx - Blog article → Notion rendering: renders blocks
src/app/[lang]/blog/[slug]/page.tsx - Blog article → Related posts: renders
src/app/[lang]/blog/[slug]/page.tsx - Localized home → Latest posts: renders
src/app/[lang]/page.tsx - Blog listing → Locale dictionary: loads locale
src/app/[lang]/blog/page.tsx - Blog article → Locale dictionary: loads locale
src/app/[lang]/blog/[slug]/page.tsx - Related posts → Notion content client: loads posts
src/components/related-posts/related-posts.tsx - Latest posts → Notion content client: loads posts
src/components/latest-posts/latest-posts.tsx - Notion content client → Notion API: queries content
src/lib/notion.ts - Visitor → RSS redirect: requests feed
src/app/rss.xml/route.ts - RSS redirect → Localized RSS: redirects
src/app/rss.xml/route.ts - Localized RSS → Notion content client: loads published posts
src/app/[lang]/rss.xml/route.ts - Blog article → Interaction provider: renders
src/app/[lang]/blog/[slug]/page.tsx - Blog article → Comment thread UI: renders
src/app/[lang]/blog/[slug]/page.tsx - Comment thread UI → Comment thread: renders
src/components/comments/comments.tsx - Interaction provider → View endpoint: requests views
src/components/post-interactions/post-interactions-provider.tsx - Interaction provider → Stats endpoint: requests stats
src/components/post-interactions/post-interactions-provider.tsx - Interaction provider → Clap endpoint: sends claps
src/components/post-interactions/post-interactions-provider.tsx - Clap button → Interaction provider: uses context
src/components/post-interactions/clap-button.tsx - Comment thread UI → Supabase data access: loads comments
src/components/comments/comments.tsx - Comment endpoint → Supabase data access: reads and writes
src/app/api/posts/[slug]/comments/route.ts - Comment endpoint → Telegram notifier: notifies
src/app/api/posts/[slug]/comments/route.ts - Comment endpoint → Alias endpoint: calls aliasFor
src/app/api/posts/[slug]/comments/route.ts - Alias endpoint → Supabase data access: hashes client IP
src/app/api/posts/[slug]/alias/route.ts - Stats endpoint → Supabase data access: reads stats
src/app/api/posts/[slug]/stats/route.ts - View endpoint → Supabase data access: increments views
src/app/api/posts/[slug]/view/route.ts - Clap endpoint → Supabase data access: adds claps
src/app/api/posts/[slug]/claps/route.ts - Supabase data access → Supabase database: calls RPC
src/lib/supabase.ts - Visitor → Case studies: browses
- Profile sections → Locale dictionary: loads locale
src/components/header/header.tsx - Navigation → Menu definitions: uses definitions
src/components/navbar/navbar.tsx - Locale dictionary → Menu definitions: types menu
src/dict/index.ts