{"id":48667793,"url":"https://github.com/adam0white/codepulse","last_synced_at":"2026-04-10T11:31:54.291Z","repository":{"id":322547588,"uuid":"1089927022","full_name":"adam0white/codepulse","owner":"adam0white","description":"Analyze development velocity of public GitHub repositories by calculating lines of code changed per minute between commits. Features interactive charts, summary statistics, and a clean, responsive interface built with React and Cloudflare Workers.","archived":false,"fork":false,"pushed_at":"2025-11-13T23:17:42.000Z","size":2007,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-14T00:24:40.196Z","etag":null,"topics":["bun","cloudflare-workers","code-metrics","commit-analysis","data-visualization","development-velocity","github-analysis","hono","react","recharts","serverless","shadcn-ui","tailwind-css","typescript","vite"],"latest_commit_sha":null,"homepage":"https://codepulse.adamwhite.work/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adam0white.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-05T02:07:55.000Z","updated_at":"2025-11-13T23:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/adam0white/codepulse","commit_stats":null,"previous_names":["adam0white/codepulse"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/adam0white/codepulse","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam0white%2Fcodepulse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam0white%2Fcodepulse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam0white%2Fcodepulse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam0white%2Fcodepulse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adam0white","download_url":"https://codeload.github.com/adam0white/codepulse/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adam0white%2Fcodepulse/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31641114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T07:40:12.752Z","status":"ssl_error","status_checked_at":"2026-04-10T07:40:11.664Z","response_time":98,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","cloudflare-workers","code-metrics","commit-analysis","data-visualization","development-velocity","github-analysis","hono","react","recharts","serverless","shadcn-ui","tailwind-css","typescript","vite"],"created_at":"2026-04-10T11:31:53.530Z","updated_at":"2026-04-10T11:31:54.286Z","avatar_url":"https://github.com/adam0white.png","language":"TypeScript","readme":"# CodePulse\n\nCodePulse is a minimalist and visually elegant web application that analyzes the development velocity of any public GitHub repository. Users provide a GitHub URL, and the application fetches the commit history, calculates the rate of change (additions and deletions) per minute between consecutive commits, and visualizes this data on a stunning, interactive line chart. The application is designed with a 'less is more' philosophy, focusing on clarity, performance, and a delightful user experience. It provides key insights at a glance, such as peak velocity and average cadence, presented in clean, modern UI components. The entire experience is contained within a single, responsive page.\n\n[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/adam0white/codepulse)\n\n## Key Features\n\n-   **GitHub Repository Analysis**: Input any public GitHub repository URL to begin the analysis.\n-   **Commit Velocity Visualization**: An interactive line chart displays the lines of code changed (additions + deletions) per minute between commits.\n-   **Summary Statistics**: At-a-glance cards show key metrics like peak velocity, average changes, and total commits analyzed.\n-   **Minimalist UI/UX**: A clean, single-page interface built with a focus on typography, whitespace, and user experience.\n-   **Responsive Design**: Flawless performance and layout across all device sizes, from mobile to desktop.\n-   **Graceful State Handling**: Elegant skeleton loaders for loading states and clear, non-intrusive alerts for errors.\n\n## Technology Stack\n\n-   **Frontend**:\n    -   [React](https://reactjs.org/)\n    -   [Vite](https://vitejs.dev/)\n    -   [Tailwind CSS](https://tailwindcss.com/)\n    -   [shadcn/ui](https://ui.shadcn.com/)\n    -   [Recharts](https://recharts.org/) for charting\n    -   [Framer Motion](https://www.framer.com/motion/) for animations\n-   **Backend**:\n    -   [Cloudflare Workers](https://workers.cloudflare.com/)\n    -   [Hono](https://hono.dev/)\n-   **Language**: [TypeScript](https://www.typescriptlang.org/)\n-   **Package Manager**: [Bun](https://bun.sh/)\n\n## Getting Started\n\nFollow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.\n\n### Prerequisites\n\n-   [Node.js](https://nodejs.org/) (v18 or later)\n-   [Bun](https://bun.sh/)\n-   [Git](https://git-scm.com/)\n-   A Cloudflare account and the [Wrangler CLI](https://developers.cloudflare.com/workers/wrangler/install-and-update/)\n-   A GitHub Personal Access Token (optional but recommended for higher rate limits)\n\n### Installation\n\n1.  **Clone the repository:**\n    ```bash\n    git clone https://github.com/your-username/codepulse.git\n    cd codepulse\n    ```\n\n2.  **Install dependencies:**\n    This project uses Bun for package management.\n    ```bash\n    bun install\n    ```\n\n3.  **Set up GitHub API Token (Optional but Recommended):**\n    \n    Without a token, the app uses unauthenticated GitHub API requests with a rate limit of 60 requests per hour. With a token, you get 5,000 requests per hour.\n    \n    To set up a token:\n    \n    a. **Create a GitHub Personal Access Token:**\n       - Go to [GitHub Settings \u003e Developer settings \u003e Personal access tokens \u003e Tokens (classic)](https://github.com/settings/tokens)\n       - Click \"Generate new token (classic)\"\n       - Give it a descriptive name (e.g., \"CodePulse\")\n       - Select the `public_repo` scope (for public repositories)\n       - Click \"Generate token\"\n       - **Copy the token immediately** (you won't be able to see it again)\n    \n    b. **Configure for local development:**\n       - Copy the example file: `cp .dev.vars.example .dev.vars`\n       - Open `.dev.vars` and replace `your_github_token_here` with your actual token\n       - The `.dev.vars` file is already in `.gitignore` and won't be committed\n    \n    c. **Configure for production (Cloudflare Workers):**\n       - Use Wrangler to set the secret: `wrangler secret put GITHUB_TOKEN`\n       - Enter your token when prompted\n       - The secret will be securely stored and available to your worker\n\n4.  **Run the development server:**\n    This command starts the Vite frontend development server and the Wrangler development server for the backend worker simultaneously.\n    ```bash\n    bun run dev\n    ```\n    The application will be available at `http://localhost:3000`.\n\n## Project Structure\n\n-   `src/`: Contains all the frontend React application code.\n    -   `pages/`: Main application pages.\n    -   `components/`: Reusable React components.\n    -   `lib/`: Utility functions.\n-   `worker/`: Contains the backend Cloudflare Worker code.\n    -   `index.ts`: The main entry point for the worker.\n    -   `userRoutes.ts`: Hono route definitions for the API.\n-   `shared/`: Contains TypeScript types shared between the frontend and backend.\n\n## Development\n\n### Frontend\n\n-   The main application view is located in `src/pages/HomePage.tsx`.\n-   Reusable UI components are built using `shadcn/ui` and can be found in `src/components/ui`.\n-   Custom components are located in `src/components`.\n\n### Backend\n\n-   The API is built with Hono and runs on Cloudflare Workers.\n-   To add a new API endpoint, define a new route in `worker/userRoutes.ts`.\n-   Shared types between the client and worker should be defined in `shared/types.ts` to ensure type safety.\n\n## Available Scripts\n\n-   `bun run dev`: Starts the local development server for both frontend and backend.\n-   `bun run build`: Builds the frontend application for production.\n-   `bun run deploy`: Deploys the application to Cloudflare Workers.\n-   `bun run lint`: Lints the codebase using ESLint.\n\n## Deployment\n\nThis project is designed for seamless deployment to Cloudflare Pages with a Functions backend.\n\n1.  **Login to Wrangler:**\n    Authenticate the Wrangler CLI with your Cloudflare account.\n    ```bash\n    npx wrangler login\n    ```\n\n2.  **Set up GitHub API Token (if not already done):**\n    For production, set the GitHub token as a Cloudflare Workers secret:\n    ```bash\n    wrangler secret put GITHUB_TOKEN\n    ```\n    Enter your GitHub Personal Access Token when prompted. This securely stores the token and makes it available to your worker in production.\n\n3.  **Deploy the application:**\n    Run the deploy script. This will build the frontend and deploy both the static assets and the worker function to Cloudflare.\n    ```bash\n    bun run deploy\n    ```\n\nAlternatively, you can deploy directly from your GitHub repository using the button below.\n\n[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/adam0white/codepulse)\n\n## Contributing\n\nContributions are welcome! Please feel free to open an issue or submit a pull request.\n\n1.  Fork the Project\n2.  Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3.  Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4.  Push to the Branch (`git push origin feature/AmazingFeature`)\n5.  Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam0white%2Fcodepulse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadam0white%2Fcodepulse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadam0white%2Fcodepulse/lists"}