Simple go links server backed by airtable base.
Quick Start
For Chrome on Mac OS
- create a table in airtable with 1 column for short codes and 1 column for urls
cp airtable.sample.config.json airtable.config.jsonand updatenpm install- install dependenciesnode server- run server on port 6060http://localhost:6060/go/<key>redirects to the link mapped to the given short codehttp://localhost:6060/shows all short code to URL mappings (opens your airtable base)http://localhost:6060/reloadwill tell the server to reload the mapping file. do this after making changes in airtable.
- add a chome search engine. See help docs for more info
- Set name to
go - Set keyword to
go - Set URL to
http://localhost:6060/go/%s
- Set name to
- an alternative to the previous step is to use the browser extension in the
extensionfolder- open your browser and go to its extension settings
- enable developer mode
- load unpacked
- select the extension folder
- open your browser and type
go <space>then<short code>and you should redirect to the url that maps to the given short code
Run in background & at startup (Mac OS)
npm install -g pm2pm2 start golink.config.js --env prodpm2 startupthen follow the directionspm2 save- read pm2 docs for more info
Airtable setup
- create a table in airtable with 1 column for short codes and 1 column for urls
- params for this table
base = shrZOvefftUFNSZurtable = linkskeyCol = keyurlCol = url
Modify go links
- add or update items in your airtable base
- force a reload of the data by navigating to http://localhost:6060/reload
Parameterized Links
- you can define golinks for search engines
- eg, suppose you define short-code=
gand url=https://www.google.com/search?q=%s - in your browser, when you type
g purple onionsyou will navigate tohttps://www.google.com/search?q=purple%20onions