rudra-xi/rudra-geek-nook
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 ToolsWhat 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
OriginalRudra 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.

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 useActivityTagstatus 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
/aboutmanifesto isn't an accordion. It's avim-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. Respectsprefers-reduced-motion.Project Grid — Curated projects on
/projects(fromspecific-reposAPI), topic-filtered repos on/recreations(fromrecreations-reposAPI). Cards use Mux-hosted video previews with autoplay-on-mount, muted, looped. A[rudra-xi ~]$ ls specific-repos/ — 8 entriesfooter strip closes the grid with a "Find More" link.Contact Form as a Mail Composer — Not a form. A
mutt-style compose window withTo:(read-only),Subject:, message body, and aFrom:/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 vianext-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+CursorFollowrender 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.DateTimeFormatwithformatToParts. Date and time render on a single$ date →line withtabular-numsso digits don't jitter.Recent Activity Feed — The home page's
GitHubRepofetches 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
— App Router, RSC-first, route groups per page. All 5 pages + root layout use metadata exports for SEO.
— React 19, client components only where needed (interactive state, cursor providers, theme menu).
— 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 bypushed_at)specific-repos— 9 curated repos fetched concurrently viaPromise.allrecreations-repos— All repos filtered bytopics.includes("recreations")
All three use
GITHUB_TOKENfor authenticated requests (60/hr unauthenticated → 5000/hr authenticated).
UI & Styling
— CSS-first config (
@theme inline), custom@utilitylayers (page-padding,flex-center,cursor-hover,animate-blink,scrollbar-none).— Button, Dialog, Dropdown Menu, Accordion, Label primitives. Built on Radix UI.
— Dropdown Menu (theme picker), Dialog (resume preview), Accordion (unused after manifesto rewrite).
— Every icon in the site. Consistent stroke weight, consistent sizing.
- Tailwind v4 CSS-first — No
tailwind.config.js. Theme tokens live inthemes.css, mapped through@theme inline, consumed by every utility. - DM Mono / Atkinson Hyperlegible Mono — Loaded via
next/font/googlewithvariable: "--font-mono"— a single source of truth for the monospace family, no FOUT.
Motion & Interaction
—
motion/reactfor the cursor spring physics (useSpringwithstiffness: 500, damping: 50, bounce: 0) and the dock scroll-hide transition.- Custom cursor — Hand-rolled
CursorProvider/Cursor/CursorFollowprimitives incomponents/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
— All 9 project previews hosted on Mux as HLS streams. Each has a
.mp4.jsonmanifest insrc/videos/.- next-video — Wraps the Mux manifests into
<NextVideo>components with autoplay, loop, muted, playsInline. Adapter handles the HLS.js polyfill automatically.
Theming
— Attaches the theme class to
<html>, persists tolocalStorage, restores before first paint via inline script.themes.css— 6 theme palettes inoklch(). 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.tsexportsTHEME_IDS,THEME_META, andDEFAULT_THEME. Adding a theme is two steps: a CSS block inthemes.css, an entry inlib/themes.ts.
Tooling
— Lint + format in one tool. No ESLint, no Prettier.
— Package manager and script runner.
bun run devstarts 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
Terminal Metaphor as Interaction Model, Not Decoration Every prompt, cursor, and command in the UI is functional.
PageHeadinguses[rudra-xi ~]$because that's how a shell prompts.ActivityTagrenders[rudra-xi @ github]$ fetch best_projectsbecause that's whatfetchlooks like in a terminal. TheManifestoVieweris avimsession because reading/etc/rudra.confin vim is the natural interaction. Nothing is aesthetic-only — the metaphor carries the architecture.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
TerminalPromptsits 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.Single Source of Truth for the Cursor's "Tracking Area"
CursorProviderattaches itsmousemovelistener tocontainerRef.current.parentElement— whatever element wraps the provider. This means everyCursorProvidermust 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 theirCursorFollowsimultaneously → two overlapping tooltips. Fix: wrap the trigger in its own<div className="relative">so its tracking area is bounded.Theme System with a Hard Fallback
next-themesreadslocalStorageon mount. If a user's saved theme no longer exists (e.g., you removedcatppuccinand they had it saved),THEME_META[theme]returnsundefinedand the whole app crashes onactive.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
themeusesvalidTheme. Every menu item, every trigger label, every radio state derives from the same guarded value. The app can never crash on stale theme data.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_TOKENnever touches the client. The contact form posts directly to Web3Forms with a publicNEXT_PUBLIC_WEB3FORMS_TOKEN(it's a public access key by design).Zero-Radius Flat UI as a Constraint, Not a Style
--radius: 0on:rootmeans 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 withrounded-noneoverrides 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.Mux + next-video +
.mp4.jsonManifests Each project has a Mux-hosted video preview.next-videoreads the.mp4.jsonmanifest (uploaded via Mux's API) and renders an HLS stream with autoplay, loop, muted, playsInline. TheVIDEO_PREVIEWSmap inlib/project-assets.tsties a repo name to its manifest. Missing entries render a "Preview coming soon" fallback — no broken cards, no missing imports.Pre-Hydration Theme Script
next-themesreadslocalStoragein auseEffect— meaning first paint always usesDEFAULT_THEME(mocha), then flips to the saved theme. That's a 50ms flash-of-wrong-theme. The fix: an inline<script>in<head>that readslocalStorage.themesynchronously and applies the class to<html>before React hydrates. Seeapp/layout.tsxfor 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:
- Local video file →
src/videos/<project>.mp4(source footage, not committed to git) - Upload to Mux →
bunx next-video syncuploads the file, Mux transcodes it, and writes<project>.mp4.jsonback tosrc/videos/ - Manifest is committed → the
.mp4.jsonfile (playback ID, poster, blur placeholder) is the only artifact that lives in the repo - 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_PREVIEWSinlib/project-assets.ts ProjectCardrenders theFileImageIcon"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_IDandMUX_TOKEN_SECRET— required only fornext-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
—
v20.0.0or higher— Package manager and script runner
Installation
Clone the repository
git clone https://github.com/rudra-xi/rudra-geek-nook.git cd rudra-geek-nookInstall dependencies
bun installConfigure environment variables
Create
.env.localat 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="..."Run the development server
bun run devNavigate 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.
Distributed under the . Read
LICENSE.md for details.
Explore related projects
Loading…