{"id":28452078,"url":"https://github.com/jaspermunene/vercel-clone","last_synced_at":"2026-04-12T15:41:22.293Z","repository":{"id":295871227,"uuid":"991345638","full_name":"JasperMunene/vercel-clone","owner":"JasperMunene","description":"Vercel clone","archived":false,"fork":false,"pushed_at":"2025-05-27T19:10:50.000Z","size":347,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-06T17:11:28.338Z","etag":null,"topics":["aws","docker","nextjs","nodejs","socket-io"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JasperMunene.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}},"created_at":"2025-05-27T13:39:50.000Z","updated_at":"2025-05-27T19:10:53.000Z","dependencies_parsed_at":"2025-05-27T20:26:51.178Z","dependency_job_id":"b38d200b-40d0-4f14-81c2-fe3bf3ad2b77","html_url":"https://github.com/JasperMunene/vercel-clone","commit_stats":null,"previous_names":["jaspermunene/vercel-clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JasperMunene/vercel-clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasperMunene%2Fvercel-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasperMunene%2Fvercel-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasperMunene%2Fvercel-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasperMunene%2Fvercel-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JasperMunene","download_url":"https://codeload.github.com/JasperMunene/vercel-clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JasperMunene%2Fvercel-clone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263069063,"owners_count":23408892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["aws","docker","nextjs","nodejs","socket-io"],"created_at":"2025-06-06T17:11:09.795Z","updated_at":"2026-04-12T15:41:17.254Z","avatar_url":"https://github.com/JasperMunene.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vercel‑Clone on AWS\n![UI](https://res.cloudinary.com/dwcvogqak/image/upload/fl_preserve_transparency/v1748372869/Screenshot_from_2025-05-27_22-06-31_przwy6.jpg?_s=public-apps)\nA self‑hosted Vercel‑style deployment pipeline built with Node.js, AWS Fargate, Kafka, ClickHouse, and S3. Push your code to Git, trigger a build on demand, stream real‑time logs, and serve the static output via custom subdomains.\n\n---\n\n## 🚀 Features\n- Project Management: Create new projects with random slug subdomains.\n\n- On‑Demand Builds: Trigger builds via REST endpoint; runs isolated in AWS Fargate.\n\n- Real‑Time Logs: Stream build logs through Kafka → ClickHouse → Socket.io.\n\n- Artifact Storage: Upload dist/ artifacts to S3 under __outputs/\u003cPROJECT_ID\u003e/….\n\n- Custom Subdomains: Serve builds from S3 via an Express reverse proxy based on \u003cslug\u003e.yourdomain.com.\n\n---\n\n## 🛠️ Tech Stack\n\n| **Component**       | **Technology**                   |\n|---------------------|----------------------------------|\n| API Server          | Node.js, Express, Zod, Prisma    |\n| Build Runner        | Node.js, Docker, npm             |\n| Queue \u0026 Logs        | AWS Fargate, KafkaJS, ClickHouse |\n| Real‑Time Streaming | Socket.io                        |\n| Artifact Hosting    | AWS S3, http‑proxy               |\n| CI/CD               | GitHub Actions, Docker Hub       |\n| Frontend            | Nextjs, Tailwindcss              |\n\n\n## Setup Guide\n\nThis Project contains the following services and folders:\n\n- `api-server`: REST API and Kafka consumer for scheduling builds and streaming logs.\n- `build-server`: Dockerized build container that installs, builds, and uploads artifacts.\n- `s3-reverse-proxy`: Express proxy to map subdomains to S3-hosted static assets.\n\n## Prerequisites\n\n- Node.js v18 or later\n- Docker and Docker Compose\n- AWS account with ECS, ECR, S3, and IAM permissions.\n- Kafka cluster (SSL + SASL) and ClickHouse instance.\n- DNS-configured custom domain for subdomains\n\n## Installation\n1. Clone the repository:\n```markdown\ngit clone https://github.com/JasperMunene/vercel-clone.git\ncd vercel-clone\n```\n2. Install dependencies for each service:\n```markdown\ncd api-server \u0026\u0026 npm install\ncd ../build-server \u0026\u0026 npm install\ncd ../s3-reverse-proxy \u0026\u0026 npm install\n```\n3. Build and push the build-server image to ECR:\n```markdown\ndocker build -t your-ecr-repo/build-server:latest ./build-server\ndocker push your-ecr-repo/build-server:latest\n```\n4. Copy and configure environment variables in each service folder\n\n\n\nAt this point following services would be up and running:\n\n| S.No | Service            | PORT    |\n|------|--------------------|---------|\n| 1    | `api-server`       | `:9000` |\n| 2    | `socket.io-server` | `:9002` |\n| 3    | `s3-reverse-proxy` | `:8000` |\n| 4    | `Frontend`         | `:3000` |\n\n\n### Architecture [Whiteboard Diagram](https://app.eraser.io/workspace/iKhB57YARYBWzPJYPCoy?origin=share)\n\n![Vercel Clone Architecture](https://res.cloudinary.com/dwcvogqak/image/upload/fl_preserve_transparency/v1748347056/Screenshot_from_2025-05-27_14-57-21_zb7c0a.jpg?_s=public-apps)\n\n\n### 🤝 Contributing\n\n1. **Fork** the repository.\n2. **Create a feature branch**:\n   ```bash\n   git checkout -b feat/your-feature\n3. **Commit your changes and push**:\n   ```bash\n   git push origin feat/your-feature\n4. **Open a Pull Request and describe your changes.**\n\n\n### 📄 License\nThis project is licensed under the MIT License. See [LICENSE](LICENCE) for details.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaspermunene%2Fvercel-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaspermunene%2Fvercel-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaspermunene%2Fvercel-clone/lists"}