{"id":31918129,"url":"https://github.com/evilurge/firebase-url-shortening","last_synced_at":"2026-04-29T20:34:31.031Z","repository":{"id":42353223,"uuid":"183049230","full_name":"evilUrge/firebase-url-shortening","owner":"evilUrge","description":"Make your own URL Shortner service running from Google's Firebase","archived":false,"fork":false,"pushed_at":"2023-01-09T11:38:20.000Z","size":354,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-22T07:55:02.813Z","etag":null,"topics":["express","firebase","nodejs","rerouting","shorturl"],"latest_commit_sha":null,"homepage":null,"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/evilUrge.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}},"created_at":"2019-04-23T15:55:54.000Z","updated_at":"2019-11-13T11:58:17.000Z","dependencies_parsed_at":"2023-02-08T10:16:30.374Z","dependency_job_id":null,"html_url":"https://github.com/evilUrge/firebase-url-shortening","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evilUrge/firebase-url-shortening","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilUrge%2Ffirebase-url-shortening","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilUrge%2Ffirebase-url-shortening/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilUrge%2Ffirebase-url-shortening/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilUrge%2Ffirebase-url-shortening/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilUrge","download_url":"https://codeload.github.com/evilUrge/firebase-url-shortening/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilUrge%2Ffirebase-url-shortening/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32443563,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T20:22:27.477Z","status":"ssl_error","status_checked_at":"2026-04-29T20:22:26.507Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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","firebase","nodejs","rerouting","shorturl"],"created_at":"2025-10-13T20:56:10.861Z","updated_at":"2026-04-29T20:34:31.012Z","avatar_url":"https://github.com/evilUrge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Firebase URL Shortening\n---\n\n\u003ca href=\"https://codeclimate.com/github/evilUrge/firebase-url-shortening/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/c9161ee414a526a91bb1/maintainability\" /\u003e\u003c/a\u003e\n\nCreate a tiny version of any url\n\n## How to use\n* As we have 2 separate environments in this setup, edit `/function/config/production.json` and `development.json` based on your project configurations:\n    * Go to the main project overview tab `https://console.firebase.google.com/u/0/project/\u003cyour-firebase-project-id\u003e/overview`, click on *\"Add app\"* and then chose *\"Web\"* (`html-head` icon), copy the content of the var `config` after the key `FirebaseConf` in the selected configuration file.\n    * Generate a private key from: `https://console.firebase.google.com/u/0/project/\u003cyour-firebase-project-id\u003e/settings/serviceaccounts/adminsdk` and paste it under the key \"FirebaseAdminSDK\".\n* Modify `.firebaserc` in the root of the project, and replace 'qa' and 'production' values to your firebase existing project id's.     \n\nOnce that's done, just define what environment to use with `firebase use \u003cqa or production\u003e` cmd, and finally deploy `firebase deploy`\nCurrently runs from GCP as a function from the following URL:\nhttps://s.evilurge.com/\n\n##### To generate a new tiny url use one of the two methods:\n- **GET:** `https://s.evilurge.com/generate?url=http://www.epiphone.com/Products/Electrics/Archtop/Sheraton-II-PRO.aspx`\n- **POST:** `https://s.evilurge.com/generate` req body: \n```json\n{\"url\": \"http://www.epiphone.com/Products/Electrics/Archtop/Sheraton-II-PRO.aspx\"}\n```\n\n## How to deploy\n- First install all node dependencies: `npm i`\n- Make sure you have firebase tools installed in your global: `npm i -g firebase-tools`\n- And deploy via: `firebase deploy --only functions`\n\n\n## How to extend\nAs in any other microservice, this one is using express with a nice wrapper around it. Just add another .js in `/function/src/handlers` with the following format:\n```javascript\nexports.theNameOfYourHandler = {\n    type: ['post', 'get'], exec: (async (req, res) =\u003e // Can also have only one request type by just passing _ex_:type:'get'\n            res.status(200).send('Cool beans!')\n    )};\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilurge%2Ffirebase-url-shortening","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilurge%2Ffirebase-url-shortening","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilurge%2Ffirebase-url-shortening/lists"}