jil.im

A link shortener.

This service uses the golink crate to resolve short links into full URLs. It includes several flexible, powerful features:

Predictable normalization

Links are case-insensitive and ignore hyphens, so jil.im/My-Link and jil.im/mylink both resolve to the same destination.

Path appending

Any path segments you add to a short link are automatically appended to the destination URL. For example, if jil.im/foo points to https://example.com, then visiting jil.im/foo/bar/baz?25 redirects you to https://example.com/bar/baz?25.

Templating

Long URLs can include template variables that dynamically insert path segments. This lets you create powerful, flexible shortcuts. For instance, you could configure the short link prs with this template:

https://github.com/pulls?q=is:open+is:pr+review-requested:{{ if path }}{ path }{{ else }}@me{{ endif }}+archived:false

Now jil.im/prs shows your own GitHub pull requests:

https://github.com/pulls?q=is:open+is:pr+review-requested:@me+archived:false

While jil.im/prs/jameslittle230 shows pull requests assigned to a specific user:

https://github.com/pulls?q=is:open+is:pr+review-requested:jameslittle230+archived:false