{"id":20238440,"url":"https://github.com/emjjkk/ant","last_synced_at":"2026-04-12T03:31:35.120Z","repository":{"id":214482143,"uuid":"734716299","full_name":"emjjkk/Ant","owner":"emjjkk","description":"Minimal URL shortener and QR code generator with API, using React and Flask.","archived":false,"fork":false,"pushed_at":"2023-12-28T11:37:28.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T01:14:57.996Z","etag":null,"topics":["axios","flask","react","vite"],"latest_commit_sha":null,"homepage":"https://antlink.vercel.app","language":"JavaScript","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/emjjkk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-12-22T12:19:48.000Z","updated_at":"2024-02-07T13:26:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5e2a549-cd34-4715-870f-8fc020ef2069","html_url":"https://github.com/emjjkk/Ant","commit_stats":null,"previous_names":["kunhnao/ant","khunhnao/ant","aeruo/ant","emjjkk/ant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emjjkk%2FAnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emjjkk%2FAnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emjjkk%2FAnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emjjkk%2FAnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emjjkk","download_url":"https://codeload.github.com/emjjkk/Ant/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241685570,"owners_count":20003102,"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":["axios","flask","react","vite"],"created_at":"2024-11-14T08:34:10.974Z","updated_at":"2025-12-31T01:03:18.212Z","avatar_url":"https://github.com/emjjkk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e The demo of this project no longer works because ElephantSQL stopped existing :(\n\u003e If you change the db, however, everything should function fine.\n\n\n![Screenshot 2023-12-28 120735](https://github.com/KunHnao/ant/assets/49512755/875dadfc-38dc-4fdd-8e6c-75e002e7c249)\n# 🐜 Url Shortener + QR Code Generator w/ API\n__It works in theory, but...__ For now, this project is a demo merely to demonstrate how a URL Shortener and QR Code Generator might work, using Javascript for the frontend and Python for the backend. As a result, the generated URL might not actually be shorter than the original (because of the use of a free domain) and also takes a long time to generate (because Render spins down with inactivity). However, all other functionalities will function as expected.\n\n### Technologies\n- Vite (Build)\n- React (Front-End Framework)\n- TailwindCSS (CSS Framework)\n- Flask (Backend)\n- cs50 Library For Python (Backend)\n- PostgreSQL (Database)\n- ElephantSQL (Database Provider)\n- Vercel (Front-End Hosting)\n- Render (Backend Hosting)\n\n## API\nThis project also provides an experimental minimal open API which does not require the use of an API key or any authentication method. Below are some code snippets to demonstrate their usage.\n\n### URL Shortener:\n```\nconst url = 'https://ant-erqz.onrender.com/api/v1/generate_url';\nconst requestData = { start_url: 'your_actual_url_here'};\nfetch(url, {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify(requestData),\n})\n.then (response =\u003e {\n  console.log(response)\n})\n```\n\n### QR Code:\n```\nconst url = 'https://ant-erqz.onrender.com/api/v1/generate_qr';\nconst requestData = { start_url: 'your_actual_url_here'};\nfetch(url, {\n  method: 'POST',\n  headers: {\n    'Content-Type': 'application/json'\n  },\n  body: JSON.stringify(requestData),\n})\n.then (response =\u003e {\n  console.log(response)\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femjjkk%2Fant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femjjkk%2Fant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femjjkk%2Fant/lists"}