{"id":31833304,"url":"https://github.com/techysanoj/url-shortner-new-version","last_synced_at":"2026-05-15T18:33:32.941Z","repository":{"id":316768201,"uuid":"1064752047","full_name":"techysanoj/URL-Shortner-new-version","owner":"techysanoj","description":"Lightning-fast, secure, and customizable URL shortener with analytics—modern tech stack, REST API, and branded short links.","archived":false,"fork":false,"pushed_at":"2025-09-27T06:59:14.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T08:33:45.098Z","etag":null,"topics":["express","express-js","expressjs","mvc-architecture","mvc-pattern","rest-api","restful-api","url-redirect","url-shortener","url-shortener-api","url-shortener-microservice"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/techysanoj.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-09-26T13:55:41.000Z","updated_at":"2025-09-27T06:59:17.000Z","dependencies_parsed_at":"2025-09-26T16:26:57.452Z","dependency_job_id":null,"html_url":"https://github.com/techysanoj/URL-Shortner-new-version","commit_stats":null,"previous_names":["techysanoj/url-shortner-new-version"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/techysanoj/URL-Shortner-new-version","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysanoj%2FURL-Shortner-new-version","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysanoj%2FURL-Shortner-new-version/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysanoj%2FURL-Shortner-new-version/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysanoj%2FURL-Shortner-new-version/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techysanoj","download_url":"https://codeload.github.com/techysanoj/URL-Shortner-new-version/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysanoj%2FURL-Shortner-new-version/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33074846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["express","express-js","expressjs","mvc-architecture","mvc-pattern","rest-api","restful-api","url-redirect","url-shortener","url-shortener-api","url-shortener-microservice"],"created_at":"2025-10-11T23:51:56.794Z","updated_at":"2026-05-15T18:33:32.936Z","avatar_url":"https://github.com/techysanoj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# URL Shortener (New Version)\n\nA modern, secure, and lightning-fast URL shortener service built with Node.js. Instantly convert long URLs into short, shareable links and track analytics in real-time. Perfect for social media, marketing, and web applications.\n\n## 🚀 Features\n\n- **Custom Short URLs**: Generate branded or personalized short links.\n- **Click Analytics**: Track URL usage, referrers, and stats.\n- **RESTful API**: Integrate URL shortening into your own apps.\n- **Secure**: Protects against abuse and malicious redirects.\n- **Easy to Use**: Minimal setup, clean codebase, and ready-to-deploy.\n- **Scalable**: Built for high performance and easy scaling.\n\n## 🛠️ Tech Stack\n\n- **Node.js** (backend logic)\n- **Express.js** (routing and server)\n- **MongoDB** (URL \u0026 analytics storage)\n- **Mongoose** (MongoDB ODM)\n- **Other dependencies:** See [`package.json`](./package.json)\n\n## 📂 Project Structure\n\n```\n.\n├── controller/        # Business logic and controllers\n├── models/            # MongoDB data models\n├── routes/            # App and API routes\n├── connection.js      # Database connection setup\n├── index.js           # Main entry point (Express app)\n├── package.json       # Dependencies \u0026 scripts\n├── url_shortner_requirements.txt # Requirements/notes\n```\n\n## 🧑‍💻 Getting Started\n\n### Prerequisites\n\n- Node.js (v14+ recommended)\n- MongoDB (local or cloud)\n\n### Installation\n\n```bash\ngit clone https://github.com/techysanoj/URL-Shortner-new-version.git\ncd URL-Shortner-new-version\nnpm install\n```\n\n### Configuration\n\nEdit `connection.js` to set your MongoDB connection string.\n\n### Running the Application\n\n```bash\nnpm start\n```\nThe server runs on [http://localhost:3000](http://localhost:3000) by default.\n\n## 📖 API Usage\n\n### Shorten a URL\n\n`POST /api/shorten`\n\nRequest body:\n```json\n{\n  \"originalUrl\": \"https://your-long-url.com\"\n}\n```\n\nResponse:\n```json\n{\n  \"shortUrl\": \"http://localhost:3000/abc123\"\n}\n```\n\n### Redirect\n\nVisiting `http://localhost:3000/abc123` will redirect to the original URL.\n\n### Analytics\n\nEndpoint and analytics implementation details can be extended as needed.\n\n## 🤝 Contributing\n\n1. Fork this repo\n2. Create your feature branch (`git checkout -b feature/FeatureName`)\n3. Commit your changes (`git commit -m 'Add some feature'`)\n4. Push to the branch (`git push origin feature/FeatureName`)\n5. Open a Pull Request\n\n## ⭐️ Why Use This URL Shortener?\n\n- Built with best practices in Node.js and MongoDB\n- Designed for extensibility (custom domains, analytics, admin dashboard, etc.)\n- Perfect for learning, side projects, or deploying at scale\n\n## 📄 License\n\n[MIT](./LICENSE)\n\n---\n\n\u003e Made with ❤️ by [techysanoj](https://github.com/techysanoj)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechysanoj%2Furl-shortner-new-version","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechysanoj%2Furl-shortner-new-version","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechysanoj%2Furl-shortner-new-version/lists"}