Skip to content

Hack Club's Airtable-based shortlink router.

License

Notifications You must be signed in to change notification settings

hackclubnmit/hack.af

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hack.af

Hack Club’s Airtable-Based Link Shortener

Setup

  • Please make a copy of the template Airtable Base: https://go.mingjie.info/template
  • Please also grab the Airtable API Key & Base Key from the API documentations. Head here and click on the base you just created to get started.
  • Set AIRTABLE_BASE to your Base ID, and AIRTABLE_KEY to your API Key.
  • Set LOGGING to on if you want to enable logging, off if otherwise.
  • Set BOT_LOGGING to on if you want to enable logging for crawlers, off if otherwise.
  • Set CACHE_EXPIRATION to the number of seconds you want the local cache to be valid.

Using

All links will be routed through a 302 (Temporary Redirect) because you're using Airtable. Simply visit example.com/slug to get redirected.

No API?

I'm insecure about my ability to write software with great security measures, therefore all components originally written as the API has been removed for this distribution.

If API access is needed, please invent your own wheel with Airtable API. See implementation example at https://go.mingjie.info/code.

License

This project is released under the MIT license.

About

Hack Club's Airtable-based shortlink router.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%