Every GitHub account and repo is a first-class Gitgram profile (hosting the project's posts, demos, photos, reels, snippets). parseGithubUrl resolves both forms: https://github.com/caelum0x -> /caelum0x (user account) https://github.com/caelum0x/settlekit -> /caelum0x/settlekit (repo account) Handles www, trailing slash, .git, deep paths, ssh, and owner / owner-repo / @handle shorthand; rejects reserved route segments. 5/5 tests pass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Gitgram Web
Web version of Gitgram built with Next.js 14, TypeScript, and Tailwind CSS.
Getting Started
- Install dependencies:
npm install
- Set up environment variables:
cp .env.example .env
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser.
Features
- Next.js 14 App Router
- TypeScript
- Tailwind CSS for styling
- GitHub-inspired UI
- Shared API client with mobile app
- Authentication with JWT
- Server-side rendering (SSR)
- Static site generation (SSG)
Project Structure
web/
├── app/ # Next.js App Router pages
├── components/ # React components
├── services/ # API services
├── store/ # State management (Zustand)
└── lib/ # Utilities