Skip to content

bforbilly24/bforbilly

Repository files navigation

Bforbilly

CodeTime Badge

A modern developer portfolio built with Next.js, featuring real-time coding activity tracking powered by CodeTime.

Features

  • Real-time Coding Activity: Track coding sessions, languages, and productivity metrics
  • CodeTime Integration: Display coding statistics, total hours, and language breakdown
  • Interactive Dashboard: Visual representation of coding patterns and preferences
  • Responsive Design: Optimized for desktop and mobile devices
  • Dark/Light Mode: Theme switching with system preference detection

CodeTime Integration

This portfolio integrates with CodeTime to provide real-time insights into coding activity:

  • Total Coding Time: Displays cumulative coding hours across all projects
  • Language Statistics: Shows the most used programming languages with time breakdown
  • Project/Workspace Tracking: Monitors time spent on different projects
  • Platform Analytics: Tracks coding activity across different operating systems
  • Live Badge: Real-time CodeTime badge showing current coding activity

The integration uses CodeTime's v3 API with authenticated endpoints to ensure accurate and personalized data display.

Preview

image image image image image image image image

Stack

  • NextJS 14 - Next.js is a React framework for building full-stack web applications, in this site i use App Router.
  • TailwindCSS - A utility-first CSS framework packed with classes that can be composed to build any design, directly in your markup.
  • Shadcn UI - Beautifully designed components built with Radix UI and Tailwind CSS.

Running Locally

  1. Clone the repository
git clone https://github.com/bforbilly24/bforbilly.git
cd bforbilly
  1. Install dependencies
bun install
# or
npm install
  1. Set up environment variables
cp .env.example .env

Add your CodeTime API token to .env:

CODETIME_API_TOKEN=your_codetime_api_token_here
CODETIME_API_BASE_URL="https://api.codetime.dev/v3"

To get your CodeTime API token:

  1. Visit CodeTime

  2. Sign up/Sign in with your GitHub account

  3. Go to your dashboard and generate an API token

  4. Start the development server

bun dev
# or
npm run dev

The application will be available at http://localhost:3000.

Packages

 
 
 

Contributors