Skip to content
Projects

rudra-xi/rudra-geek-nook

View on GitHub

About

A Next.js portfolio styled as a shell session. Includes a floating dock nav, typewriter manifesto viewer, Mux-hosted project previews, custom cursor physics, and 6 oklch themes. Built with Tailwind v4 and Radix UI.

Developer Tools

How these counts are measured

What you can do

  • Terminal-Native Design — Every page opens with \> rudra-geek-nook [Version 03.00.01] and a blinking cursor. Page headings use [rudra-xi ~]$ prompts. Content sections use ActivityTag status lines ([rudra-xi @ github]$ fetch best_projects). The aesthetic isn't decorative — it's a full interaction model.
  • Dock Navigation — A floating bottom dock with a [rudra-xi ~]$ prompt prefix. Icons scale on hover, active routes get an accent fill and bottom tick, and the whole dock auto-hides on scroll-down, returns on scroll-up. The logo sits top-left as a static mark; the theme pill sits top-right — symmetric chrome, no toolbar.
  • ManifestoViewer — The /about manifesto isn't an accordion. It's a vim-style file viewer: numbered tabs on the left rail (real filenames from /etc/rudra.conf), content on the right with a typewriter print effect. Switch files with a click; the content reprints character-by-character with a blinking cursor. Respects prefers-reduced-motion.
  • Project Grid — Curated projects on /projects (from specific-repos API), topic-filtered repos on /recreations (from recreations-repos API). Cards use Mux-hosted video previews with autoplay-on-mount, muted, looped. A [rudra-xi ~]$ ls specific-repos/ — 8 entries footer strip closes the grid with a "Find More" link.

Measured star growth

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Rudra Geek Nook

A terminal-native portfolio built for people who read code. Every page is a shell session: prompts, ls outputs, a vim manifesto viewer, and a contact form that submits with :wq. Eight hand-crafted themes, zero rounded corners, one consistent aesthetic across the entire site.


Rudra Geek Nook preview

Live Demo: Live Demo


Key Features ✨

  • Terminal-Native Design — Every page opens with \> rudra-geek-nook [Version 03.00.01] and a blinking cursor. Page headings use [rudra-xi ~]$ prompts. Content sections use ActivityTag status lines ([rudra-xi @ github]$ fetch best_projects). The aesthetic isn't decorative — it's a full interaction model.

  • Dock Navigation — A floating bottom dock with a [rudra-xi ~]$ prompt prefix. Icons scale on hover, active routes get an accent fill and bottom tick, and the whole dock auto-hides on scroll-down, returns on scroll-up. The logo sits top-left as a static mark; the theme pill sits top-right — symmetric chrome, no toolbar.

  • ManifestoViewer — The /about manifesto isn't an accordion. It's a vim-style file viewer: numbered tabs on the left rail (real filenames from /etc/rudra.conf), content on the right with a typewriter print effect. Switch files with a click; the content reprints character-by-character with a blinking cursor. Respects prefers-reduced-motion.

  • Project Grid — Curated projects on /projects (from specific-repos API), topic-filtered repos on /recreations (from recreations-repos API). Cards use Mux-hosted video previews with autoplay-on-mount, muted, looped. A [rudra-xi ~]$ ls specific-repos/ — 8 entries footer strip closes the grid with a "Find More" link.

  • Contact Form as a Mail Composer — Not a form. A mutt-style compose window with To: (read-only), Subject:, message body, and a From:/Reply-to: identity block. Submit button reads :wq. On success, the panel becomes a shell output: [OK] message transmitted, exit status: 0 (success), [ compose another ].

  • Eight Hand-Crafted Themes — Green, Wheat, Rave, Mocha, Resolve, Frost. Each defines a full palette in oklch(). Switching is instant via next-themes. All themes are dark — there's no light mode, and the site is honest about it. A pre-hydration script applies the saved theme class before React mounts, so there's no flash.

  • Custom Cursor System — CursorProvider + CursorFollow render a themed tooltip that tracks the mouse with spring physics. Every interactive element (dock items, links, cards, theme menu items) has scoped cursor feedback — the tooltip text changes per context (Open GitHub, Apply theme, Save resume, :wq).

  • Live IST Clock — The home page shows your local time in Asansol, India via Intl.DateTimeFormat with formatToParts. Date and time render on a single $ date → line with tabular-nums so digits don't jitter.

  • Recent Activity Feed — The home page's GitHubRepo fetches the 5 most recently pushed repos via a proxy API route. Rows show relative time (2 days ago, 3 weeks ago), language dot, and star count. No N+1, one fetch, one list.


Tech Stack 🛠️

Core Framework & Runtime

  • Next.js — App Router, RSC-first, route groups per page. All 5 pages + root layout use metadata exports for SEO.
  • React — React 19, client components only where needed (interactive state, cursor providers, theme menu).
  • TypeScript — End-to-end types, strict mode, @/* path alias.

API Layer

  • Route Handlers — Three /api/github/* endpoints proxy GitHub's REST API:

    • recent-repos — 5 most recently pushed (sorted by pushed_at)
    • specific-repos — 9 curated repos fetched concurrently via Promise.all
    • recreations-repos — All repos filtered by topics.includes("recreations")

    All three use GITHUB_TOKEN for authenticated requests (60/hr unauthenticated → 5000/hr authenticated).

UI & Styling

  • Tailwind CSS — CSS-first config (@theme inline), custom @utility layers (page-padding, flex-center, cursor-hover, animate-blink, scrollbar-none).
  • shadcn/ui — Button, Dialog, Dropdown Menu, Accordion, Label primitives. Built on Radix UI.
  • Radix UI — Dropdown Menu (theme picker), Dialog (resume preview), Accordion (unused after manifesto rewrite).
  • Lucide — Every icon in the site. Consistent stroke weight, consistent sizing.
  • Tailwind v4 CSS-first — No tailwind.config.js. Theme tokens live in themes.css, mapped through @theme inline, consumed by every utility.
  • DM Mono / Atkinson Hyperlegible Mono — Loaded via next/font/google with variable: "--font-mono" — a single source of truth for the monospace family, no FOUT.

Motion & Interaction

  • Motion — motion/react for the cursor spring physics (useSpring with stiffness: 500, damping: 50, bounce: 0) and the dock scroll-hide transition.
  • Custom cursor — Hand-rolled CursorProvider / Cursor / CursorFollow primitives in components/ui/shadcn-io/animated-cursor/. ~250 lines, no dependencies beyond Motion.
  • tw-animate-css — Card entrance animations (fade-in, slide-in-from-bottom-5), menu transitions, dialog zoom.

Video

  • Mux — All 9 project previews hosted on Mux as HLS streams. Each has a .mp4.json manifest in src/videos/.
  • next-video — Wraps the Mux manifests into <NextVideo> components with autoplay, loop, muted, playsInline. Adapter handles the HLS.js polyfill automatically.

Theming

  • next-themes — Attaches the theme class to <html>, persists to localStorage, restores before first paint via inline script.
  • themes.css — 6 theme palettes in oklch(). Each defines --background, --foreground, --primary, --accent, --border, --ring, and the shadcn component tokens (--card, --popover, --muted, --destructive). All themes set --radius: 0 — the site has no rounded corners.
  • Single source of truth — lib/themes.ts exports THEME_IDS, THEME_META, and DEFAULT_THEME. Adding a theme is two steps: a CSS block in themes.css, an entry in lib/themes.ts.

Tooling

  • Biome — Lint + format in one tool. No ESLint, no Prettier.
  • Bun — Package manager and script runner. bun run dev starts Next.js with Turbopack.
  • Turbopack — The default bundler in Next.js 16. All routes compile with Turbopack; no webpack config.

Architecture & Design Patterns 🏗️

rudra-geek-nook/
├── src/
│   ├── app/                    # Routes, layouts, API handlers
│   │   ├── (pages)/            # about · projects · recreations · skills · contact
│   │   ├── api/github/         # recent · specific · recreations
│   │   ├── layout.tsx          # Root layout + metadata
│   │   ├── provider.tsx        # ThemeProvider · Navigation · Footer · Toaster
│   │   ├── globals.css         # Tailwind v4 + utilities
│   │   ├── themes.css          # 6 theme palettes in oklch()
│   │   └── page.tsx            # Home
│   ├── components/
│   │   ├── @about/             # ManifestoViewer
│   │   ├── @contact/           # ContactForm
│   │   ├── @home/              # HeroButton · LocationTime · GitHubRepo · ResumeDialog
│   │   ├── @projects/          # GitHubProCard
│   │   ├── @recreations/       # RecreationsProjects
│   │   ├── @skills/            # SkillSetGrid
│   │   ├── @theme/             # ThemeMenu · ThemeProvider
│   │   ├── ui/                 # shadcn primitives + custom cursor
│   │   ├── navigation.tsx      # Bottom dock
│   │   ├── footer.tsx          # exit --session
│   │   ├── project-card.tsx
│   │   ├── project-grid.tsx
│   │   └── index.ts            # Barrel export
│   ├── contents/index.tsx      # navItems · manifestoItems
│   ├── lib/                    # themes · github · project-assets · utils
│   └── videos/                 # Mux manifests + barrel
├── public/assets/              # resume.pdf · resume-preview.png
├── biome.json · tsconfig.json · next.config.ts
└── package.json

Key Engineering Decisions

  1. Terminal Metaphor as Interaction Model, Not Decoration Every prompt, cursor, and command in the UI is functional. PageHeading uses [rudra-xi ~]$ because that's how a shell prompts. ActivityTag renders [rudra-xi @ github]$ fetch best_projects because that's what fetch looks like in a terminal. The ManifestoViewer is a vim session because reading /etc/rudra.conf in vim is the natural interaction. Nothing is aesthetic-only — the metaphor carries the architecture.

  2. Bottom Dock, Not Top Toolbar A top toolbar fights with page content. A bottom dock frees the top of the viewport. The home page's TerminalPrompt sits at the top of the content — where a terminal prompt belongs — while the dock (which is navigation) sits at the bottom. The dock auto-hides on scroll-down to clear the viewport during reading, returns on scroll-up. This is the same pattern as Safari's compact tab bar on iOS: user-intuitive, no learning curve.

  3. Single Source of Truth for the Cursor's "Tracking Area" CursorProvider attaches its mousemove listener to containerRef.current.parentElement — whatever element wraps the provider. This means every CursorProvider must be scoped to a single target (a button, a link, a menu item), not to a shared wrapper. Two providers inside the same wrapper fire their CursorFollow simultaneously → two overlapping tooltips. Fix: wrap the trigger in its own <div className="relative"> so its tracking area is bounded.

  4. Theme System with a Hard Fallback next-themes reads localStorage on mount. If a user's saved theme no longer exists (e.g., you removed catppuccin and they had it saved), THEME_META[theme] returns undefined and the whole app crashes on active.label. The fix is a guard:

    const validTheme =
      theme && THEME_META[theme as keyof typeof THEME_META]
        ? (theme as keyof typeof THEME_META)
        : DEFAULT_THEME;
    

    Every read of theme uses validTheme. Every menu item, every trigger label, every radio state derives from the same guarded value. The app can never crash on stale theme data.

  5. Server Actions (or, here: Route Handlers) as the API Surface Unlike Rep Deck, this project has no database and no auth. All mutations are third-party (GitHub read-only, Web3Forms for the contact form). Every external call goes through a route handler so the GITHUB_TOKEN never touches the client. The contact form posts directly to Web3Forms with a public NEXT_PUBLIC_WEB3FORMS_TOKEN (it's a public access key by design).

  6. Zero-Radius Flat UI as a Constraint, Not a Style --radius: 0 on :root means every shadcn primitive renders with square corners. This isn't a preference — it's a constraint. The site can't accidentally acquire rounded corners because the token is zero. Combined with rounded-none overrides on components that shadcn gives a rounded class (buttons in the dock, the theme menu items), the site's sharp aesthetic is enforced at the CSS layer.

  7. Mux + next-video + .mp4.json Manifests Each project has a Mux-hosted video preview. next-video reads the .mp4.json manifest (uploaded via Mux's API) and renders an HLS stream with autoplay, loop, muted, playsInline. The VIDEO_PREVIEWS map in lib/project-assets.ts ties a repo name to its manifest. Missing entries render a "Preview coming soon" fallback — no broken cards, no missing imports.

  8. Pre-Hydration Theme Script next-themes reads localStorage in a useEffect — meaning first paint always uses DEFAULT_THEME (mocha), then flips to the saved theme. That's a 50ms flash-of-wrong-theme. The fix: an inline <script> in <head> that reads localStorage.theme synchronously and applies the class to <html> before React hydrates. See app/layout.tsx for the implementation.


Video Pipeline (Mux + next-video)

Project previews are hosted on Mux and streamed as HLS. Each video has a paired .mp4.json manifest in src/videos/ — a small JSON file that next-video reads at build time to configure the player.

How the flow works:

  1. Local video file → src/videos/<project>.mp4 (source footage, not committed to git)
  2. Upload to Mux → bunx next-video sync uploads the file, Mux transcodes it, and writes <project>.mp4.json back to src/videos/
  3. Manifest is committed → the .mp4.json file (playback ID, poster, blur placeholder) is the only artifact that lives in the repo
  4. Component renders → <NextVideo src={VIDEO_PREVIEWS[repo.name]} /> reads the manifest and streams from Mux

If a project has no video:

  • Omit it from VIDEO_PREVIEWS in lib/project-assets.ts
  • ProjectCard renders the FileImageIcon "Preview coming soon" fallback instead
  • The card still renders normally — no broken image, no missing import

Adding a new project video:

 1. Drop the .mp4 into src/videos/
cp ~/Downloads/new-project.mp4 src/videos/

 2. Upload to Mux and generate the manifest
bunx next-video sync

 3. Import it in src/videos/index.ts
    import newProjectPreview from "./new-project.mp4.json";
    export { ..., newProjectPreview };

 4. Map it in lib/project-assets.ts
    VIDEO_PREVIEWS: { ..., "new-project": newProjectPreview }

5. Add the repo to SPECIFIC_REPOS or the "recreations" topic on GitHub

Environment variables:

  • MUX_TOKEN_ID and MUX_TOKEN_SECRET — required only for next-video sync (local upload step). Generate at dashboard.mux.com. Not needed at runtime; the player streams anonymously from Mux.
  • NEXT_PUBLIC_MUX_ENV_KEY — optional, only needed if you enable Mux Data analytics for playback metrics.

Add these to .env.local if you plan to upload new videos locally.


**And add this row to the environment variables block in the Installation step:**

```env
# Mux — required only for `next-video sync` (uploading new videos)
MUX_TOKEN_ID="..."
MUX_TOKEN_SECRET="..."

And add to the scripts table:

Script Command Description
Sync Videos bunx next-video sync Upload new .mp4 files to Mux and generate manifests

Getting Started 🏁

Prerequisites

  • Node.js — v20.0.0 or higher
  • Bun — Package manager and script runner

Installation

  1. Clone the repository

    git clone https://github.com/rudra-xi/rudra-geek-nook.git
    cd rudra-geek-nook
    
  2. Install dependencies

    bun install
    
  3. Configure environment variables

    Create .env.local at the project root:

    # GitHub API token — raises the rate limit from 60/hr to 5000/hr.
    # Generate at https://github.com/settings/tokens (no scopes needed for public repos).
    GITHUB_TOKEN="ghp_..."
    
    # Web3Forms access key — used by the contact form.
    # Generate at https://web3forms.com.
    NEXT_PUBLIC_WEB3FORMS_TOKEN="..."
    
  4. Run the development server

    bun run dev
    

    Navigate to http://localhost:3000.

Available Scripts

Script Command Description
Dev bun run dev Next.js dev server with Turbopack
Build bun run build Production bundle
Start bun run start Serve the production build
Lint bun run lint Biome code checks
Format bun run format Auto-format via Biome

Author & License 🪪

Developed by rudra-xi.

  • GitHub
  • LinkedIn

Distributed under the MIT License. Read LICENSE.md for details.

Explore related projects

Loading…