Table of Contents
ForkSpy is a GitHub repository tracking tool that notifies users when their tracked repositories are forked. It helps developers stay informed about their project's reach and impact by providing real-time email notifications whenever a fork occurs.
Here's why you should use forkspy:
- Stay Informed Instantly β Get real-time email notifications whenever someone forks your repository. No more manually checking GitHub!
- See how your open-source work spreads and attracts contributors. Identify which projects are gaining traction.
- Simply sign in with GitHub, select the repositories you want to track, and let ForkSpy handle the rest.
- Engage with developers who fork your project and encourage contributions to improve your codebase.
- NextJS
- TailwindCSS
- OAuth
- TypeScript
- ShadCN
- MongoDB
- ReactIcons
This is an example of how you may give instructions on setting up your project locally. To get a local copy follow these simple example steps.
π Open Source Project Growth β Track forks to measure your project's popularity and identify contributors who might collaborate.
π’ Community Engagement β Get notified when someone forks your repo and reach out to them for discussions, PRs, or feedback.
πΌ Portfolio Monitoring β Keep an eye on how your personal or professional projects are spreading across the GitHub ecosystem.
π¨βπ» Team & Organization Insights β Companies and teams can monitor which repositories are being forked the most to prioritize development efforts.
π Trend Analysis β Identify which types of projects gain traction and adjust your development focus accordingly.
ForkSpy has a comprehensive test suite using Vitest for unit testing and React Testing Library for component testing. Tests cover:
- Utility functions
- Custom hooks
- API routes
- Component behavior
- Error handling
# Install dependencies
npm install
# Run tests once
npm run test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage
# Run tests with UI
npm run test:uiWe use GitHub Actions for continuous integration with comprehensive Docker integration. Every pull request and push to the main branch triggers:
- Docker-based Testing - All tests run in containerized environment
- Multi-platform Builds - Images built for linux/amd64 and linux/arm64
- Security Scanning - Trivy vulnerability scanner and Docker Scout
- Container Registry - Automatic image publishing to GitHub Container Registry
- Health Validation - Container startup and endpoint testing
Enhanced CI/CD Pipeline Features:
- π³ Container Testing: All tests execute in Docker for production parity
- π Security Scanning: Automated vulnerability detection with Trivy
- π¦ Multi-platform: ARM64 and AMD64 architecture support
- π·οΈ Image Registry: Automated publishing to ghcr.io
- β Health Checks: Comprehensive container validation
The CI/CD badge at the top of this README shows the current pipeline status for the main branch.
To see detailed test reports and coverage, check the "Actions" tab in the GitHub repository.
ForkSpy provides complete Docker integration across four phases:
β
Phase 1 - Development: Local development environment with hot reloading
β
Phase 2 - Testing: Dockerized test execution with full coverage validation
β
Phase 3 - Production: Enterprise-grade production deployment with security hardening
β
Phase 4 - CI/CD Integration: GitHub Actions with Docker builds, testing, and security scanning
- Docker Desktop (recommended) or Docker Engine
- Docker Compose v2.0+
Perfect for local development with hot reloading and live code changes.
# Clone and setup
git clone https://github.com/shashankxrm/forkspy.git
cd forkspy
# Set up environment variables
cp .env.local .env
# Edit .env with your actual values (GitHub OAuth, MongoDB, etc.)
# Start development environment
npm run docker:dev
# Access application at http://localhost:3000Development Features:
- π Hot reloading for instant code changes
- π Volume mounting for live file synchronization
- π§ Environment variable integration
- π MongoDB Atlas connection (no local database needed)
Validate your application with comprehensive test execution in Docker.
# Run full test suite in Docker
npm run docker:test
# Test results include:
# β
21/21 tests passing
# β
80%+ code coverage
# β
TypeScript compliance
# β
Build verificationTesting Features:
- π§ͺ Complete test suite execution (Unit + Integration)
- π Coverage reporting with detailed metrics
- π ESLint code quality validation
- π Build process verification
Enterprise-ready production environment with security hardening and monitoring.
# Build production image
docker-compose build
# Start production environment
docker-compose up -d
# Verify deployment
docker-compose ps
curl http://localhost:3000/api/healthProduction Features:
- π‘οΈ Security Hardened: Non-root user execution, Alpine Linux base (126MB)
- π Health Monitoring: Built-in health checks with system metrics
- π Performance Optimized: Multi-stage builds, resource limits (512MB)
- π Production Ready: Memory: 117.7MB (22.99%), CPU: 0.00% idle
- π Enterprise Monitoring: Health endpoint
/api/healthwith comprehensive metrics
{
"status": "healthy",
"service": "forkspy",
"version": "0.1.0",
"environment": "production",
"uptime": "5 minutes",
"memory": {"used": "117.7MB", "total": "512MB"},
"timestamp": "2025-08-03T03:35:40.720Z"
}# Development (Phase 1)
npm run docker:dev # Start development environment
npm run docker:dev:build # Build development image
npm run docker:stop # Stop all containers
# Testing (Phase 2)
npm run docker:test # Run test suite in Docker
npm run docker:test:coverage # Run tests with coverage
# Production (Phase 3)
docker-compose build # Build production image
docker-compose up -d # Start production (detached)
docker-compose ps # Check container status
docker-compose logs app # View application logs
docker stats forkspy-app-prod # Monitor resource usage
# CI/CD (Phase 4)
npm run ci:docker:build # Build CI image
npm run ci:docker:test # Run tests in container for CI
npm run ci:docker:security # Run security scanning
npm run ci:docker:push # Push image to registryCloud Platform Compatibility:
- βοΈ AWS: ECS, Fargate, EKS deployment ready
- βοΈ Google Cloud: Cloud Run, GKE deployment ready
- βοΈ Azure: Container Instances, AKS deployment ready
- βοΈ Kubernetes: Full K8s compatibility with health checks
Enterprise Features:
- π Security hardening with non-root execution
- π Resource monitoring and health checks
- π Horizontal scaling readiness
- π Zero-downtime deployment support
- π Production metrics and logging
If you encounter issues:
- Port conflicts: Make sure port 3000 is not in use by other applications
- Environment variables: Ensure your
.envfile has all required variables - Docker daemon: Make sure Docker Desktop is running
- Clean rebuild: Run
docker-compose build --no-cacheto rebuild from scratch - Production health: Check
curl http://localhost:3000/api/healthfor detailed status
For detailed Docker documentation and advanced configurations, see DOCKER-ROADMAP.md for the complete Docker implementation phases.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
LinkedIn: Shashank Reddy Mail:[email protected]
Project Live Link: https://forkspy.vercel.app
