Skip to content

RECTOR-LABS/core

Repository files navigation

πŸ›οΈ CORE

The Next.js platform powering the complete rectorspace.com ecosystem

Live Next.js React TypeScript Tailwind

βœ… Live on Vercel | ⚑ Next.js 16 Β· App Router | πŸ•Œ Built with Ihsan

🌐 Visit Live β€’ πŸ“– Read Story β€’ πŸ›οΈ RECTOR LABS


🎯 The Vision

A single platform serving as the complete digital presence for RECTOR β€” combining portfolio, experiments, writings, Islamic resources, and developer tools under one unified architecture.

Philosophy: "Building for Eternity" β€” where technical excellence (dunya) meets purposeful impact (akhirah).


✨ The 7-Section Architecture

A single domain rectorspace.com with route-based sections:

Section Route Purpose Status
🏠 Homepage / Identity hub & project showcase βœ… Live
πŸ’Ό Work /work Story-driven project narratives βœ… Live
✍️ Journal /journal Native file-based markdown blog βœ… Live
πŸ“„ Apply /apply/* Targeted CVs (noindex) βœ… Live
πŸ§ͺ Labs /labs Experiments & learning projects πŸ“‹ Planned
πŸ“š Cheatsheet /cheatsheet Developer reference & notes πŸ“‹ Planned
πŸ•Œ Dakwa / πŸ“– Quran /dakwa, /quran Da'wah & Quranic resources πŸ“‹ Planned

Each new section follows the same file-based content + loader pattern β€” content lives in git, and deploy = publish.


πŸ› οΈ Tech Stack

Framework:

  • Next.js 16 (App Router, React Server Components, SSG/ISR)
  • React 19 + TypeScript
  • Tailwind CSS v4 (CSS-first @theme)
  • Self-hosted JetBrains Mono (WOFF2)

Content & data (no database):

  • File-based markdown + YAML, committed to git
  • GitHub API for live repo/contribution data, cached via ISR (hourly revalidate)
  • Vitest test suite

Infrastructure:

  • Deployed on Vercel (global CDN, automatic HTTPS, auto-deploy from main)
  • GitHub Actions CI (lint Β· typecheck Β· test Β· build)

Note for contributors: this is Next.js 16 β€” APIs and conventions differ from older releases. See AGENTS.md and read node_modules/next/dist/docs/ before writing Next-specific code.


πŸš€ Quick Start

Prerequisites

  • Node.js 20+ (22 recommended)
  • A GitHub token for the homepage repo/contribution data (optional β€” the homepage degrades gracefully without it)

Installation

# Clone
git clone https://github.com/RECTOR-LABS/core.git
cd core

# Install
npm install

# (optional) GitHub data for the homepage
echo "GITHUB_TOKEN=ghp_xxx" > .env.local   # read-only public_repo scope

# Develop
npm run dev          # http://localhost:3000

Common Commands

npm run dev          # dev server (Turbopack)
npm run build        # production build (set GITHUB_TOKEN for live repo data)
npm run start        # serve the production build
npm test             # vitest
npx tsc --noEmit     # typecheck
npm run lint         # eslint
npm run resume:pdf   # render the resume PDF

πŸ“– Architecture Highlights

File-based content (no CMS, no DB)

Work stories and Journal posts are markdown files with YAML front matter in content/work/*.md and content/journal/*.md, loaded by framework-agnostic loaders in src/lib/content/. Achievements and CV data live in data/*.yml. To publish: add a file, commit, deploy.

Live GitHub data via ISR

src/lib/github/ fetches repos + contribution data; the homepage and /work index revalidate hourly (revalidate: 3600) β€” no cron, no background workers. Missing token β†’ graceful degradation (unit-tested).

SEO & social parity

A shared src/lib/seo.ts helper single-sources every page's title, canonical, Open Graph, and Twitter card. The OG image is generated with next/og and served at /og-image.png; sitemap.ts + robots.ts round it out.

Design system

NFT-inspired warm theme via Tailwind v4 @theme tokens in src/app/globals.css β€” Soft Cream #FFF7E1, Deep Brown #3B2C22, Sky #41CFFF, plus WCAG-AA darkened text tokens for readable links/stats on light surfaces (accessibility 100). DHH.dk/Basecamp-inspired: minimal nav, letter-style narrative, generous whitespace. The /apply CVs ship their own dark themes. Full spec: docs/DESIGN_SYSTEM.md.


πŸ† Story

CORE began as a Rails 8 monolith, built in one weekend (Nov 2–3, 2025) and deployed to a VPS with CI/CD. In June 2026 it was rewritten as a Next.js 16 app and migrated to Vercel β€” a parity-first port (Journal β†’ Homepage β†’ Work β†’ Apply) with full SEO, accessibility 100, and Lighthouse 100 across the board, cut over with zero downtime. The Rails implementation lives on in git history.

Philosophy applied:

  • βœ… Ihsan (Excellence): edge cases, a11y, performance β€” 100%-working standard
  • βœ… Amanah (Responsibility): production-ready, documented, maintainable
  • βœ… Avoid Israf (Waste): lean, file-based, minimal dependencies

πŸ—ΊοΈ Roadmap

  • Foundation β€” Homepage, Work, Journal, Apply (live)
  • Migration to Next.js 16 on Vercel (full parity, a11y 100, Lighthouse 100)
  • Labs β€” experiments & learning projects
  • Cheatsheet β€” developer reference notes
  • Dakwa & Quran β€” Islamic da'wah and Quranic resources

🀝 Contributing

Built by RECTOR LABS with Ihsan (excellence) and Amanah (responsibility).

  1. Fork the repository
  2. Create a typed feature branch (feat/…, fix/…, docs/…)
  3. Commit atomically (<type>: <description>)
  4. Ensure CI is green (npm run lint && npx tsc --noEmit && npm test && npm run build)
  5. Open a Pull Request

πŸ“„ License

Open source under the MIT License.


πŸ”— Links


πŸ™ Acknowledgments

  • Next.js & Vercel β€” for the framework and platform
  • Tailwind CSS β€” for the styling system
  • Kenney.nl β€” free pixel art assets
  • GitHub β€” for the API and platform
  • Superteam β€” inspiring the blockchain journey
  • Allah SWT β€” for the ability to create and learn

Built with Bismillah πŸ•Œ

May this platform bring benefit to those who visit. Aamiin.


πŸ›οΈ RECTOR LABS | Building for Eternity

About

Rails 8 monolith powering rectorspace.com | Full-stack platform with 7 sections | Built in 48 hours, production-ready

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

 
 
 

Contributors