Skip to content

Sydney-Informatics-Hub/links

Repository files navigation

SIH Quick Links

A minimalist URL shortener and link directory for Sydney Informatics Hub. Shortlinks redirect instantly; the index page lets you browse and search all links.

SIH Quick Links screenshot

Using shortlinks

Navigate directly to a shortlink to be redirected:

Searching the directory

Visit sih.tools to browse all links. Search supports fuzzy matching and separator-insensitive queries (e.g. "gpu doc", "gpu-doc", and "gpudoc" all find gpu/docs). Search is powered by MiniSearch by Luca Ongaro (MIT licence), self-hosted in minisearch.js.

You can pre-filter the search by appending a query param:

QR codes

Every link in the directory has a QR code button. Clicking it generates a QR code for the shortlink on the spot (no external service — generated locally in the browser using the Nayuki QR Code generator in file qrcodegen.js).

From the popup you can:

  • Copy — copies the QR code as a PNG image to your clipboard
  • Download — saves it as a PNG named qr_sih_tools_<shortcut>.png

Analytics

Usage metrics are collected via GoatCounter and viewable at sih.goatcounter.com.

Adding a shortlink

Edit links.js and add an entry to the REDIRECTS object:

// Simple redirect
"shortcut": "https://example.com",

// With a description
"shortcut": { url: "https://example.com", description: "What this link is" },

The shortlink will be live at sih.tools/shortcut as soon as the change is merged.

Note: Every entry in the object must be followed by a comma, including the one before your new entry. Missing commas will break all redirects.

Shortlinks can be hierarchical — slashes in the key create nested URLs:

"gpu": { url: "...", description: "GPU cluster overview" },
"gpu/docs": { url: "...", description: "GPU cluster documentation" },
"gpu/onboarding": { url: "...", description: "GPU cluster onboarding" },

This gives you sih.tools/gpu, sih.tools/gpu/docs, sih.tools/gpu/onboarding, etc. The hierarchy is just a naming convention in the key — each entry is still an independent redirect.

About

Url shortener for Sydney Informatics Hub links

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors