# femzy123/prosopon architecture

> Architecture diagram of the GitHub repository femzy123/prosopon, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/femzy123/prosopon
- Repository: https://github.com/femzy123/prosopon

## Overview

#### Purpose and Runtime
This is a Next.js App Router marketing site for a services/business presence, with informational pages, case studies, a blog backed by Blogger, and a contact submission endpoint. It runs as a Node.js/Next.js application and is deployable to Vercel. Primary application configuration is in `next.config.ts` and `package.json`.

#### Application Shell and Site Navigation
The root layout establishes global document structure, fonts, shared styling, and persistent site chrome. The navbar and footer frame all routed pages, creating the primary navigation boundary.
- `src/app/layout.tsx`
- `src/app/globals.css`
- `src/components/site/navbar.tsx`
- `src/components/site/footer.tsx`

#### Public Content Routes
App Router pages implement the public site hierarchy: home plus static business, legal, and content pages. Unknown routes resolve through the dedicated not-found UI.
- `src/app/page.tsx`
- `src/app/services/page.tsx`
- `src/app/case-studies/page.tsx`
- `src/app/about/page.tsx`
- `src/app/privacy/page.tsx`
- `src/app/not-found.tsx`

#### Reusable Presentation System
Shared site components provide consistent branding, section framing, calls to action, animated reveal behavior, and blog-card layouts. These components are the UI composition layer used by route pages rather than an independent application domain.
- `src/components/site/site-logo.tsx`
- `src/components/site/section-header.tsx`
- `src/components/site/cta-section.tsx`
- `src/components/site/reveal.tsx`

#### Blog Retrieval and Rendering Flow
The blog page is split between route-level rendering, a client-side posts experience, and an API boundary. `GET /api/blog/posts` isolates Blogger integration from the browser; the Blogger library and explicit types normalize the external feed for UI components. Blog cards/grid render the resulting post collection.
- `src/app/blog/page.tsx`
- `src/app/blog/blog-posts-client.tsx`
- `src/app/api/blog/posts/route.ts`
- `src/lib/blogger.ts`
- `src/lib/blogger-types.ts`
- `src/components/site/blog-post-grid.tsx`

#### Contact Submission Boundary
The contact page hosts an interactive client form that submits to the server-side contact route. This keeps form handling separate from visual page composition and is the repository’s primary inbound-action boundary.
- `src/app/contact/page.tsx`
- `src/app/contact/contact-form.tsx`
- `src/app/api/contact/route.ts`

#### External Services and Assets
Blogger is the evident external content service, accessed only through `src/lib/blogger.ts` and the blog API route. Static public assets, including leader imagery, are served from the Next.js public directory.
- `src/lib/blogger.ts`
- `src/app/api/blog/posts/route.ts`
- `public/leaders`

Main entry points: [`next.config.ts`](https://github.com/femzy123/prosopon/blob/master/next.config.ts) (Next.js runtime), [`src/app/layout.tsx`](https://github.com/femzy123/prosopon/blob/master/src/app/layout.tsx) (Root layout), [`src/app/page.tsx`](https://github.com/femzy123/prosopon/blob/master/src/app/page.tsx) (Public pages), [`src/app/blog/blog-posts-client.tsx`](https://github.com/femzy123/prosopon/blob/master/src/app/blog/blog-posts-client.tsx) (Blog posts client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Next.js App"]
  node_runtime{{"Next.js runtime<br/>Node.js application<br/>[next.config.ts]"}}
  node_layout["Root layout<br/>App shell<br/>[layout.tsx]"]
  node_public_routes["Public pages<br/>App Router pages<br/>[page.tsx]"]
  node_blog_page["Blog page<br/>App Router page<br/>[page.tsx]"]
  node_contact_page["Contact page<br/>App Router page<br/>[page.tsx]"]
  node_contact_api["Contact API<br/>Submission endpoint<br/>[route.ts]"]
  node_contact_form["Contact form<br/>Client component<br/>[contact-form.tsx]"]
end

subgraph group_ui["Site UI"]
  node_navbar["Navbar<br/>Site chrome<br/>[navbar.tsx]"]
  node_footer["Footer<br/>Site chrome<br/>[footer.tsx]"]
  node_presentation["Presentation components<br/>Shared UI<br/>[section-header.tsx]"]
  node_blog_grid["Blog post grid<br/>UI component<br/>[blog-post-grid.tsx]"]
  node_assets["Leader imagery<br/>Static assets"]
end

subgraph group_blog["Blog Integration"]
  node_blog_api["Blog posts API<br/>GET endpoint<br/>[route.ts]"]
  node_blog_client["Blog posts client<br/>Client component"]
  node_blogger_lib["Blogger library<br/>Integration library<br/>[blogger.ts]"]
  node_blogger(("Blogger<br/>External content service"))
end

node_runtime -->|"runs"| node_layout
node_runtime -->|"serves"| node_public_routes
node_runtime -->|"serves"| node_blog_page
node_runtime -->|"serves"| node_contact_page
node_runtime -->|"hosts"| node_blog_api
node_runtime -->|"hosts"| node_contact_api
node_layout -->|"includes"| node_navbar
node_layout -->|"includes"| node_footer
node_public_routes -->|"composes"| node_presentation
node_public_routes -->|"uses"| node_assets
node_blog_page -->|"renders"| node_blog_client
node_blog_client -->|"fetches posts"| node_blog_api
node_blog_client -->|"renders"| node_blog_grid
node_blog_api -->|"uses"| node_blogger_lib
node_blogger_lib -->|"retrieves feed"| node_blogger
node_contact_page -->|"hosts"| node_contact_form
node_contact_form -->|"submits"| node_contact_api

click node_runtime "https://github.com/femzy123/prosopon/blob/master/next.config.ts"
click node_layout "https://github.com/femzy123/prosopon/blob/master/src/app/layout.tsx"
click node_public_routes "https://github.com/femzy123/prosopon/blob/master/src/app/page.tsx"
click node_blog_page "https://github.com/femzy123/prosopon/blob/master/src/app/blog/page.tsx"
click node_contact_page "https://github.com/femzy123/prosopon/blob/master/src/app/contact/page.tsx"
click node_blog_api "https://github.com/femzy123/prosopon/blob/master/src/app/api/blog/posts/route.ts"
click node_contact_api "https://github.com/femzy123/prosopon/blob/master/src/app/api/contact/route.ts"
click node_navbar "https://github.com/femzy123/prosopon/blob/master/src/components/site/navbar.tsx"
click node_footer "https://github.com/femzy123/prosopon/blob/master/src/components/site/footer.tsx"
click node_presentation "https://github.com/femzy123/prosopon/blob/master/src/components/site/section-header.tsx"
click node_blog_client "https://github.com/femzy123/prosopon/blob/master/src/app/blog/blog-posts-client.tsx"
click node_blog_grid "https://github.com/femzy123/prosopon/blob/master/src/components/site/blog-post-grid.tsx"
click node_blogger_lib "https://github.com/femzy123/prosopon/blob/master/src/lib/blogger.ts"
click node_contact_form "https://github.com/femzy123/prosopon/blob/master/src/app/contact/contact-form.tsx"
click node_assets "https://github.com/femzy123/prosopon/tree/master/public/leaders"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_runtime,node_layout,node_public_routes,node_blog_page,node_contact_page,node_contact_api,node_contact_form toneBlue
class node_navbar,node_footer,node_presentation,node_blog_grid,node_assets toneAmber
class node_blog_api,node_blog_client,node_blogger_lib,node_blogger toneMint
```

## Components

### Next.js App

App Router pages and server endpoints.

- [Next.js runtime](https://github.com/femzy123/prosopon/blob/master/next.config.ts): Node.js application · Deployable Next.js marketing site. · `next.config.ts`
- [Root layout](https://github.com/femzy123/prosopon/blob/master/src/app/layout.tsx): App shell · Applies global styling and persistent site chrome. · `src/app/layout.tsx`
- [Public pages](https://github.com/femzy123/prosopon/blob/master/src/app/page.tsx): App Router pages · Home, services, case studies, about, privacy, and not-found routes. · `src/app/page.tsx`
- [Blog page](https://github.com/femzy123/prosopon/blob/master/src/app/blog/page.tsx): App Router page · `src/app/blog/page.tsx`
- [Contact page](https://github.com/femzy123/prosopon/blob/master/src/app/contact/page.tsx): App Router page · `src/app/contact/page.tsx`
- [Contact API](https://github.com/femzy123/prosopon/blob/master/src/app/api/contact/route.ts): Submission endpoint · Primary inbound-action boundary. · `src/app/api/contact/route.ts`
- [Contact form](https://github.com/femzy123/prosopon/blob/master/src/app/contact/contact-form.tsx): Client component · Submits contact data to the server endpoint. · `src/app/contact/contact-form.tsx`

### Site UI

Shared presentation and persistent chrome.

- [Navbar](https://github.com/femzy123/prosopon/blob/master/src/components/site/navbar.tsx): Site chrome · `src/components/site/navbar.tsx`
- [Footer](https://github.com/femzy123/prosopon/blob/master/src/components/site/footer.tsx): Site chrome · `src/components/site/footer.tsx`
- [Presentation components](https://github.com/femzy123/prosopon/blob/master/src/components/site/section-header.tsx): Shared UI · Branding, section, CTA, and reveal composition. · `src/components/site/section-header.tsx`
- [Blog post grid](https://github.com/femzy123/prosopon/blob/master/src/components/site/blog-post-grid.tsx): UI component · Renders the retrieved post collection. · `src/components/site/blog-post-grid.tsx`
- [Leader imagery](https://github.com/femzy123/prosopon/tree/master/public/leaders): Static assets · Publicly served site imagery. · `public/leaders`

### Blog Integration

Server-mediated Blogger retrieval.

- [Blog posts API](https://github.com/femzy123/prosopon/blob/master/src/app/api/blog/posts/route.ts): GET endpoint · Isolates external blog retrieval from the browser. · `src/app/api/blog/posts/route.ts`
- [Blog posts client](https://github.com/femzy123/prosopon/blob/master/src/app/blog/blog-posts-client.tsx): Client component · Fetches and presents the post experience. · `src/app/blog/blog-posts-client.tsx`
- [Blogger library](https://github.com/femzy123/prosopon/blob/master/src/lib/blogger.ts): Integration library · Normalizes the external feed using explicit post types. · `src/lib/blogger.ts`
- **Blogger**: External content service

## Connections

- Next.js runtime → Root layout: runs
- Next.js runtime → Public pages: serves
- Next.js runtime → Blog page: serves
- Next.js runtime → Contact page: serves
- Next.js runtime → Blog posts API: hosts
- Next.js runtime → Contact API: hosts
- Root layout → Navbar: includes
- Root layout → Footer: includes
- Public pages → Presentation components: composes
- Public pages → Leader imagery: uses
- Blog page → Blog posts client: renders
- Blog posts client → Blog posts API: fetches posts
- Blog posts client → Blog post grid: renders
- Blog posts API → Blogger library: uses
- Blogger library → Blogger: retrieves feed
- Contact page → Contact form: hosts
- Contact form → Contact API: submits
