# finaticlabs/accodyn architecture

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

- Interactive diagram: https://gitdiagram.com/finaticlabs/accodyn
- Repository: https://github.com/finaticlabs/accodyn

## Overview

##### Project type and purpose
- This is a Next.js-based marketing/landing website (“Accodyn Tech Website”) for an NBFC software suite.
- It’s primarily a static/SSR React app with responsive layouts, deployed on Vercel, no standalone backend microservice—just optional middleware for redirects, security headers, and rate limiting.

##### File structure
- Top-level config: package.json, tsconfig.json, next.config.mjs, tailwind.config.ts, postcss.config.mjs, vercel.json.
- app/ directory (Next.js 13+ App Router): page.tsx files define routes (/, /about, /waitlist). layout.tsx and globals.css set global UI and styles.
- app/components/: shared layout pieces (Navigation, Footer, ClientLayout).
- components/ui/: reusable UI primitives (Button, Card).
- util/ and lib/: helper functions (e.g., cn.ts for classNames, utils.ts).
- public/: static assets (video, robots.txt, sitemap.xml).
- middleware.ts: global request handling (redirects, security headers, rate limiting).

##### README for additional insights
- Confirms use of Next.js, Tailwind CSS, Vercel deployment.
- No mention of a separate API service—waitlist form likely uses a client-side integration (e.g., Google Sheets via external API).

##### Detail
- Every route (/about, /waitlist)
- Rendering strategy per page (SSG vs. SSR)
- Global CSS and tailwind processing step
- Middleware rules (redirect www→non-www, CSP headers, rate limiting)

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% End User Layer
    Browser["Browser"]:::external

    %% Vercel Platform Layer
    subgraph "Vercel Platform"
        direction TB
        CDN["Vercel CDN / Cache"]:::infra
        EdgeMiddleware["Edge Middleware"]:::middleware
        Serverless["Next.js Serverless (SSR/Edge)"]:::infra
    end

    %% Codebase Layer
    subgraph "Codebase"
        direction TB
        subgraph "App Directory"
            direction TB
            NextApp["Next.js App Router"]:::infra
            HomePage["Home Page (/)\n[SSG]"]:::infra
            AboutPage["About Page (/about)\n[SSG]"]:::infra
            WaitlistPage["Waitlist Page (/waitlist)\n[SSR]"]:::infra
            GlobalLayout["Global Layout"]:::ui
            GlobalStyles["Global Styles"]:::ui
            Navigation["Navigation"]:::ui
            Footer["Footer"]:::ui
            ClientLayout["ClientLayout"]:::ui
        end
        subgraph "UI Primitives"
            direction TB
            UIButton["UI Button"]:::ui
            UICard["UI Card"]:::ui
        end
        subgraph "Utilities"
            direction TB
            ClassNames["ClassNames Utility"]:::infra
            Utils["General Utilities"]:::infra
        end
        Middleware["Middleware"]:::middleware
    end

    %% Configuration Layer
    subgraph "Configurations"
        direction TB
        NextConfig["next.config.mjs"]:::infra
        TailwindConfig["tailwind.config.ts"]:::infra
        PostCSS["postcss.config.mjs"]:::infra
        VercelConfig["vercel.json"]:::infra
        Package["package.json"]:::infra
        TSConfig["tsconfig.json"]:::infra
        ESLint[".eslintrc.json"]:::infra
        GitIgnore[".gitignore"]:::infra
    end

    %% Assets and External Services
    StaticAssets["Static Assets\n(video, robots.txt, sitemap.xml)"]:::infra
    ExternalService["External Form API\n(Google Sheets)"]:::external

    %% Build & Deployment
    Build["Build & CI\nNext.js build, Tailwind CSS"]:::infra

    %% Relationships
    Browser --> CDN
    CDN --> EdgeMiddleware
    EdgeMiddleware --> Serverless
    Serverless --> NextApp
    NextApp --> HomePage
    NextApp --> AboutPage
    NextApp --> WaitlistPage
    Browser -->|fetch static| StaticAssets
    Browser -->|client form POST| ExternalService

    Codebase --> Build
    Build --> Serverless
    Build --> StaticAssets
    VercelConfig --> Build

    %% File & Directory Click Events
    click NextApp "https://github.com/finaticlabs/accodyn/tree/main/app/"
    click HomePage "https://github.com/finaticlabs/accodyn/blob/main/app/page.tsx"
    click AboutPage "https://github.com/finaticlabs/accodyn/blob/main/app/about/page.tsx"
    click WaitlistPage "https://github.com/finaticlabs/accodyn/blob/main/app/waitlist/page.tsx"
    click GlobalLayout "https://github.com/finaticlabs/accodyn/blob/main/app/layout.tsx"
    click GlobalStyles "https://github.com/finaticlabs/accodyn/blob/main/app/globals.css"
    click Navigation "https://github.com/finaticlabs/accodyn/blob/main/app/components/Navigation.tsx"
    click Footer "https://github.com/finaticlabs/accodyn/blob/main/app/components/Footer.tsx"
    click ClientLayout "https://github.com/finaticlabs/accodyn/blob/main/app/components/ClientLayout.tsx"
    click UIButton "https://github.com/finaticlabs/accodyn/blob/main/components/ui/button.tsx"
    click UICard "https://github.com/finaticlabs/accodyn/blob/main/components/ui/card.tsx"
    click ClassNames "https://github.com/finaticlabs/accodyn/blob/main/util/cn.ts"
    click Utils "https://github.com/finaticlabs/accodyn/blob/main/lib/utils.ts"
    click Middleware "https://github.com/finaticlabs/accodyn/blob/main/middleware.ts"
    click StaticAssets "https://github.com/finaticlabs/accodyn/tree/main/public/"
    click NextConfig "https://github.com/finaticlabs/accodyn/blob/main/next.config.mjs"
    click TailwindConfig "https://github.com/finaticlabs/accodyn/blob/main/tailwind.config.ts"
    click PostCSS "https://github.com/finaticlabs/accodyn/blob/main/postcss.config.mjs"
    click VercelConfig "https://github.com/finaticlabs/accodyn/blob/main/vercel.json"
    click Package "https://github.com/finaticlabs/accodyn/blob/main/package.json"
    click TSConfig "https://github.com/finaticlabs/accodyn/blob/main/tsconfig.json"
    click ESLint "https://github.com/finaticlabs/accodyn/blob/main/.eslintrc.json"
    click GitIgnore "https://github.com/finaticlabs/accodyn/blob/main/.gitignore"

    %% Styles
    classDef ui fill:#BBDEFB,stroke:#1E88E5,color:#0D47A1
    classDef infra fill:#C8E6C9,stroke:#43A047,color:#1B5E20
    classDef middleware fill:#FFE0B2,stroke:#FB8C00,color:#E65100
    classDef external fill:#E1BEE7,stroke:#8E24AA,color:#4A148C
```
