All Projects → hackclub → hack.af

hackclub / hack.af

Licence: MIT license
Hack Club's Airtable-based shortlink router. Now running serverlessly!

Programming Languages

javascript
184084 projects - #8 most used programming language

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 Key, 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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].