{"id":25608833,"url":"https://github.com/jasonappah/router","last_synced_at":"2025-04-13T13:15:22.525Z","repository":{"id":103063391,"uuid":"277392447","full_name":"jasonappah/router","owner":"jasonappah","description":"Previously served my website and acts as a URL shortener, powered by Airtable","archived":false,"fork":false,"pushed_at":"2022-09-13T01:21:22.000Z","size":61,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T13:15:16.162Z","etag":null,"topics":["airtable","router","serves","url-shortener","vercel","website"],"latest_commit_sha":null,"homepage":"https://v0.jasonaa.me","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jasonappah.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,"publiccode":null,"codemeta":null}},"created_at":"2020-07-05T22:19:01.000Z","updated_at":"2024-04-08T07:13:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"d037c663-e372-4c83-b9a6-fa7d619e4d83","html_url":"https://github.com/jasonappah/router","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonappah%2Frouter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonappah%2Frouter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonappah%2Frouter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jasonappah%2Frouter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jasonappah","download_url":"https://codeload.github.com/jasonappah/router/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717237,"owners_count":21150389,"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":["airtable","router","serves","url-shortener","vercel","website"],"created_at":"2025-02-21T20:30:08.960Z","updated_at":"2025-04-13T13:15:22.520Z","avatar_url":"https://github.com/jasonappah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# router\nServes my website and acts as a URL shortener\n\nThis is currently deployed on Vercel and the links are stored in an Airtable base. This does have the unintended side effect of my links not working when Airtable goes down, so I need to think of a solution to that, but I'm not really interested in using an *actual* database and then having to make some sort of UI to manage links, so it will stay as is for now. \n\nHere's my Airtable base: [https://airtable.com/shrJNnm6FZJgwBEev](https://airtable.com/shrJNnm6FZJgwBEev)\n\nTry it at [v0.jasonaa.me](https://v0.jasonaa.me) and [v0.jasonaa.me/github!](https://v0.jasonaa.me/github)\n\nTo deploy this on Vercel, just click this button! Make sure you set these environmental variables! ```AIRTABLE_API_KEY, AIRTABLE_BASE_ID, DEFAULT_URL```\n\n[![Deploy to Vercel](https://vercel.com/button)](https://vercel.com/import/project?template=https://github.com/jasonappah/router)\n\nYou'll probably need to make some changes in ```vercel.json```. Here's a sample ```vercel.json```. These are the 2 required routes, but you can add more. Don't delete these, as they are required to make the app work, but you can edit the ```/``` route to go to the URL of your actual site.\n```\n{\n    \"routes\": [\n        { \"src\": \"/\", \"dest\": \"https://wherever.yoursite.is/\" },\n        { \"src\": \"/(.*)\", \"dest\": \"/api/main?redir=$1\" }\n    ]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonappah%2Frouter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjasonappah%2Frouter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjasonappah%2Frouter/lists"}