CodersHub Inc
ProjectsContactHire Me
CodersHub Inc LogoCodersHub Inc

A collection of practical, open-source projects designed to solve real-world developer problems.

Quick Links

All ProjectsContactGitHub Organization

Resources

Source CodeReport IssuesAbout Creator

Stay Updated

Get notified about new projects and updates. No spam, ever.

By subscribing, you agree to our privacy policy.

© 2025 CodersHub Inc. All rights reserved.

Privacy PolicyTerms of Service
Made withbySwapnil Ingle
Back to Projects

Codershubinc.Tech

No description available.

Languages Used
TypeScriptCSSJavaScript
Technologies
TypeScript
View SourceLive Demo

codershubinc.tech

Personal portfolio & projects site built with Next.js and Tailwind CSS — demonstrates project listings, README rendering, and GitHub integrations.

Overview

This repository is the source code for codershubinc.tech — a portfolio site showcasing open-source work, project READMEs, and project details pulled from GitHub.

It uses Next.js (App Router), Tailwind CSS, and the GitHub REST API to fetch and render project content. The site converts Markdown to styled HTML and renders structured file trees and file counts for each project.

Key Features

  • Project list fetched from GitHub repos for codershubinc.
  • Styled, server-rendered README content with custom Tailwind typography variants.
  • File tree parsing (slash-style or ASCII) and file extension counts with language color badges.
  • Small API endpoints for supporting content rendering (README fetch/proxy, streak stats, and a Quazaar README test endpoint).
  • Server-only utilities and client components for a fast, modern UI.

Tech Stack

  • Next.js (App Router)
  • React (Server & Client components)
  • Tailwind CSS + Typography plugin
  • marked for Markdown parsing
  • TypeScript
  • Vitest for unit tests

Local Development

Install dependencies

pnpm install # or: npm install # or: bun install

Development server

pnpm dev # or: npm run dev # or: bun dev

Build & start

pnpm build pnpm start

Open http://localhost:3000 to view locally.

Testing

Run the tests with

pnpm test

Environment Variables

Some GitHub routes detect the presence of GITHUB_TOKEN to increase rate limits. Set it in your environment when developing or building:

export GITHUB_TOKEN=ghp_... # or set through your environment manager

API routes

This project includes a few helpful API routes used in the site and for local development:

  • GET /api/readme?repo=owner/repo — fetch repository README (raw & rendered HTML), caches locally in /temp for convenience.
  • GET /api/streak?user=codershubinc — proxies github-readme-streak-stats JSON output.
  • GET /api/quazaar-readme — returns an example Quazaar README rendered as HTML (used for testing markdown rendering).

Code Organization

src/app/ — Next.js pages and server components (e.g. projects/) src/lib/ — application libraries (api/gh/ and utils/) src/components/ — React UI components (client side) src/data/ — static or example data used for demo

Contributing

Contributions are welcome. To keep the repo clean, please open an issue first for larger work and follow these steps:

  1. Fork and clone the repo
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Make changes and add tests
  4. Submit a PR with a clear description of your work

Note for maintainers & developers

  • src/lib/api/gh holds the GitHub integrations split into helpers for fetch and per-file operations.
  • src/lib/utils is a small, organized utility folder with an index.ts barrel to keep import lines compact.
  • If reusing components outside the site or under different domains, keep in mind the server-side fetch headers and rate limits.

License

This repo is licensed under the MIT License.


Made with ❤️ by Swapnil Ingle • @codershubinc

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

  • Next.js Documentation - learn about Next.js features and API.
  • Learn Next.js - an interactive Next.js tutorial.

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Project Structure
  • .gitignore
  • README.md
  • bun.lock
  • eslint.config.mjs
  • next.config.ts
  • package-lock.json
  • package.json
  • postcss.config.mjs
  • tailwind.config.ts
  • tsconfig.json
  • docs/
    • CHANGELOG.md
  • public/
    • favicon.ico
    • file.svg
    • globe.svg
    • next.svg
    • vercel.svg
    • window.svg
    • assets/
      • ch.ico.png
  • src/
    • app/
      • globals.css
      • layout.tsx
      • (main)/
        • page.tsx
      • api/
        • readme/
          • route.ts
        • streak/
          • route.ts
      • contact/
        • page.tsx
      • projects/
        • page.tsx
        • [slug]/
          • loading.tsx
          • page.tsx
    • components/
      • FileCountCard.tsx
      • FileTree.tsx
      • theme-provider.tsx
      • layout/
        • Footer.tsx
        • Header.tsx
      • projects/
        • ProjectTabs.tsx
        • ReadmeViewer.tsx
      • sections/
        • CallToAction.tsx
        • HeroSection.tsx
        • ProjectCard.tsx
        • ProjectShowcase.tsx
        • SkillsGrid.tsx
      • ui/
        • AnimatedTags.tsx
        • Button.tsx
        • Card.tsx
        • Carousel.tsx
        • CoverflowCarousel.tsx
        • Icon.tsx
        • RelativeTime.tsx
        • SocialIcon.tsx
    • data/
      • featuredProjects.ts
      • projects.ts
      • Quazaar_README.md
      • site.ts
      • skills.ts
      • terminal.ts
    • lib/
      • api/
        • index.ts
        • gh/
          • fetchContributing.ts
          • fetchFirstCommit.ts
          • fetchProjectBySlug.ts
          • fetchProjects.ts
          • fetchReadme.ts
          • fetchRepoFile.ts
          • fetchRoadmap.ts
          • headers.ts
          • index.ts
          • __tests__/
            • fetchFirstCommit.test.ts
      • utils/
        • cn.ts
        • date.test.ts
        • date.ts
        • fileTree.ts
        • githubTheme.ts
        • index.ts
        • markdownToHtml.ts
        • parseFileTreeStats.test.ts
        • parseFileTreeStats.ts
        • __tests__/
          • markdownToHtml.test.ts
    • types/
      • language.ts
      • project.ts
      • skill.ts
  • temp/
    • codershubinc__Quazaar.md
*.ts 33*.tsx 26*.svg 5*.md 4*.json 3*.mjs 2*.css 1*.gitignore 1*.ico 1*.lock 1*.png 1 Total 78

Project Details

Repository
codershubinc.tech
Created At
September 3, 2025

( 3 months ago )

First Commit
November 21, 2025

( 27 days ago )


Languages
TypeScriptCSSJavaScript
Technologies
TypeScript

File Counts

*.ts 33*.tsx 26*.svg 5*.md 4*.json 3*.mjs 2*.css 1*.gitignore 1*.ico 1*.lock 1*.png 1
Total 78