Skip to content

Latest commit

Β 

History

347 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Project Banner

braviaprime.com

A high-performance, i18n-native personal engineering platform & research hub.

Live Demo β€’ Architecture β€’ Getting Started β€’ Ph.D. Context

Next.js TypeScript Bun Tailwind Drizzle License


πŸ“Œ Executive Summary

braviaprime.com is a full-stack engineering portfolio and technical publishing platform built with Next.js 16 (App Router & Turbopack). Designed with production-grade reliability, internationalization, and deterministic performance in mind, this project serves as both a digital presence and a sandbox for testing modern web infrastructure, distributed caching, and component architectures.

Academic & Engineering Relevance

  • High-Performance System Design: Engineered to achieve near-100 Lighthouse scores across Performance, Accessibility, and SEO metrics.
  • Strict Type Safety & Code Quality: Pure TypeScript implementation with full schema validation (t3-env), automated quality gates (Lefthook), and unit/E2E test suites (Vitest, Playwright).
  • Global Localization (i18n): Multi-language routing and message management across English, Spanish, Japanese, Portuguese, and Chinese locales.

πŸ› οΈ Tech Stack & System Architecture

Domain Technologies Used
Framework & Core Next.js 16 (App Router), TypeScript, Bun Runtime
Database & Cache Drizzle ORM, PostgreSQL, Redis (Upstash)
API Layer oRPC, Next.js Server Actions, t3-env Validation
Content Engine MDX, Shiki (Syntax Highlighting), Content Collections
Internationalization next-intl (Multi-locale Routing)
Auth & Security Better Auth, Upstash Rate Limiting
UI & Animation Base UI, Tailwind CSS, Motion (Framer Motion)
Testing & CI/CD Vitest, Playwright, ESLint, Prettier, Lefthook

πŸš€ Key Features

πŸ“ Modular Component Architecture & Design System

  • Built on top of accessible primitives (Base UI) paired with custom Tailwind design tokens.
  • Light & Dark theme support with automatic system-preference detection.
  • Interactive MDX components with live code blocks, image zoom, and dynamic Table of Contents generation.

🌐 Distributed Data & Performance Optimization

  • Caching Layer: Redis caching for dynamic views, comment aggregation, and real-time Spotify API stats.
  • Rate Limiting: Distributed sliding-window rate limiting via Upstash to protect API routes.
  • Edge SEO: Dynamic Open Graph image generation (next/og), structured JSON-LD schemas, and automated RSS/Sitemap generation.

πŸ’¬ Real-Time Engagement & Admin Suite

  • Interactive Comments & Likes: Custom-built nested comment system with optimistic UI updates and like counters.
  • Transactional Emails: Responsive HTML email templates (React Email) for reply/comment notifications.
  • System Monitoring: Integrated Umami analytics for privacy-focused site metrics.

πŸ“§ Email Notifications Preview

Comment Notification

Comment notification template
Reply Notification

Reply notification template

πŸ“ Repository Structure

braviaprime.com/
β”œβ”€β”€ public/                         # Optimized static assets and design resources
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                        # Next.js App Router ([locale] dynamic routing)
β”‚   β”œβ”€β”€ components/                 # Reusable, accessible UI components
β”‚   β”œβ”€β”€ constants/                  # Application constants
β”‚   β”œβ”€β”€ content/                    # Structured MDX content & dynamic collections
β”‚   β”œβ”€β”€ contexts/                   # React contexts
β”‚   β”œβ”€β”€ db/                         # PostgreSQL schemas, migrations (Drizzle ORM)
β”‚   β”œβ”€β”€ emails/                     # React Email templates
β”‚   β”œβ”€β”€ hooks/                      # Custom React hooks
β”‚   β”œβ”€β”€ i18n/                       # Routing & translation configuration
β”‚   β”œβ”€β”€ lib/                        # Utility libraries
β”‚   β”œβ”€β”€ mdx-plugins/                # Custom Rehype and Remark plugins
β”‚   β”œβ”€β”€ orpc/                       # Strongly typed API endpoints
β”‚   β”œβ”€β”€ styles/                     # Global styles
β”‚   β”œβ”€β”€ tests/                      # Unit (Vitest) & E2E (Playwright) test suites
β”‚   └── utils/                      # Utility functions
β”œβ”€β”€ docker-compose.yml              # Development container orchestration
└── package.json                    # Dependency manifest & script definitions

πŸ’» Local Development & Setup

Prerequisites

Ensure you have the following installed on your machine:

  • Node.js: >= 24.0.0
  • Bun: >= 1.0.0
  • Docker Engine & Compose
  • VS Code (recommended)

Environment & Startup Sequence

1. Clone & Install Dependencies

git clone https://github.com/braviaprime/braviaprime.com.git
cd braviaprime.com
bun install

2. Configure Environment Variables

cp .env.example .env.local

3. Start Local Database & Cache

docker compose up -d

4. Execute Migrations & Seed Data

bun db:migrate
bun db:seed

5. Launch Development Servers

bun dev
# Main Next.js App -> http://localhost:3000

bun email:dev
# React Email Server -> http://localhost:3001

πŸ“Š Local Service Map

Service Address Purpose
Next.js Frontend http://localhost:3000 Local Web Server
React Email http://localhost:3001 Email Template Previewer
Cosmos http://localhost:3002 Component Playground
PostgreSQL localhost:5432 Relational Database
Redis localhost:6379 In-Memory Data Store
Redis Serverless localhost:8079 Upstash Emulator

πŸ§ͺ Quality Assurance & Available Scripts

# Development & Tools
bun dev
bun email:dev
bun cosmos

# Build & Production
bun run build
bun start
bun analyze

# Quality Control & Testing
bun check
bun lint
bun typecheck
bun format
bun knip
bun test:unit
bun test:e2e

# Database Operations
bun db:migrate
bun db:seed
bun db:push
bun db:reset
bun db:studio

🀝 Credits & Acknowledgments

This project stands on the shoulders of the open-source community:


πŸ‘¨β€πŸ’» Author & Research Context

Olanrewaju Toyyib (BravΓ­aprime)

Software Engineer & Academic Researcher


🀝 Sponsorship & Support

If you find this project helpful or relevant to your research, consider sponsoring the repository:

πŸ‘‰ https://github.com/sponsors/braviaprime


πŸ“„ License

Distributed under the MIT License. See the LICENSE file for details.

About

Personal portfolio showcasing my skills, experience, and academic professional background.

Topics

Resources

Stars

99 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages