How mohamedelbachir/my-portofolio works
This is a multilingual personal portfolio and publishing website. Visitors browse the home page, profile, projects, technical stack, work history and contact page; readers can explore blog posts, tables of contents and post reactions. The site also exposes content metadata and social-engagement APIs and generates Open Graph images. The graph includes the documented page areas and central runtime modules; some page and API implementations were not sampled, so their connections are limited to relationships visible in the source index.
Main entry points: page.tsx Blog archive · meta.ts Content metadata · server.ts Session hashing · apps.tsx Project listings
Components 33
Portfolio pages
- Home page
app/[locale]/(home)/page.tsx - About page
app/[locale]/about/page.tsx - Projects page
app/[locale]/projects/page.tsx - Project listings
app/[locale]/projects/components/apps.tsx - Stack page
app/[locale]/stack/page.tsx - Stack listings
app/[locale]/stack/components/apps.tsx - Work page
app/[locale]/work/page.tsx - Contact page
app/[locale]/contact/page.tsx - Contact submission
app/actions/contact.ts
Blog and content
- Blog archive
app/[locale]/blog/page.tsx - Blog post
app/[locale]/blog/[slug]/page.tsx - Table of contents
app/[locale]/blog/components/table-of-contents.tsx - Blog data
lib/blog.ts - Post helpers
helpers/post.ts
Reader engagement
- Reaction controls
components/Reactions.tsx - Insight tracking
hooks/useInsight.ts - Reaction layout
components/layouts/WithReactions.tsx - Reaction API
app/api/reactions/[slug]/route.ts - Share API
app/api/shares/[slug]/route.ts - View API
app/api/views/[slug]/route.ts
Shared presentation
- Site navigation
components/header/index.tsx - Section layout
components/section.tsx - Prose rendering
components/prose.tsx - View animation
providers/view-animation.tsx - Locale routing
i18n/routing.ts
Data and integrations
- Content metadata
lib/meta.ts - Firebase
lib/firebase.ts - Session hashing
helpers/server.ts - Content endpoint
app/api/content/[slug]/route.ts - Portfolio data
lib/data.ts - Post image endpoint
app/api/og-post/route.tsx - Image templates
components/OgImages.tsx
Other components
- Visitor
Connections 31
- Visitor → Home page: browses
- Visitor → Blog archive: browses
- Visitor → Contact page: contacts
- Contact page → Contact submission: submits to
- Blog archive → Blog data: loads posts
app/[locale]/blog/page.tsx - Blog post → Blog data: loads post
app/[locale]/blog/[slug]/page.tsx - Blog post → Table of contents: renders
app/[locale]/blog/[slug]/page.tsx - Blog post → Reaction layout: wraps content
app/[locale]/blog/[slug]/page.tsx - Reaction layout → Reaction controls: renders
components/layouts/WithReactions.tsx - Insight tracking → Reaction API: requests
- Insight tracking → Share API: requests
- Insight tracking → View API: requests
- Reaction API → Session hashing: identifies session
app/api/reactions/[slug]/route.ts - Share API → Session hashing: identifies session
app/api/shares/[slug]/route.ts - View API → Session hashing: identifies session
app/api/views/[slug]/route.ts - Reaction API → Content metadata: reads and updates
app/api/reactions/[slug]/route.ts - Share API → Content metadata: reads and updates
app/api/shares/[slug]/route.ts - View API → Content metadata: reads and updates
app/api/views/[slug]/route.ts - Content endpoint → Session hashing: uses
app/api/content/[slug]/route.ts - Content endpoint → Content metadata: reads metadata
app/api/content/[slug]/route.ts - Content metadata → Firebase: reads and writes
lib/meta.ts - Post image endpoint → Image templates: renders image
app/api/og-post/route.tsx - Post image endpoint → Post helpers: formats date
app/api/og-post/route.tsx - Project listings → Portfolio data: reads projects
app/[locale]/projects/components/apps.tsx - Stack listings → Portfolio data: reads stack
app/[locale]/stack/components/apps.tsx - Site navigation → Locale routing: uses links
components/header/index.tsx - Blog archive → Locale routing: uses links
app/[locale]/blog/page.tsx - Project listings → Section layout: renders
app/[locale]/projects/components/apps.tsx - Project listings → Prose rendering: renders
app/[locale]/projects/components/apps.tsx - Blog archive → Prose rendering: renders
app/[locale]/blog/page.tsx - Blog archive → View animation: animates content
app/[locale]/blog/page.tsx