๐Ÿ”ง Build a self-hosted URL shortener with a dashboard

โšก 6,073 views ยท ๐Ÿ”ง Miscellaneous

Description

This workflow creates an automatic self-hosted URL shortener. It consists of three sub-workflows:

  1. Short URL creation for extracting the provided long URL, generating an ID, and saving the record in the database. It returns a short link as a result.
  2. Redirection for extracting the ID value, validating the existence of its correspondent record in the database, and returning a redirection page after updating the visits (click) count.
  3. Dashboard for calculating simple statistics about the saved record and displaying them on a dashboard.

Read more about this use case and how to set up the workflow in the blog post How to build a low-code, self-hosted URL shortener in 3 steps.

Prerequisites

Nodes

๐Ÿ”— Nodes Used

Airtable, Function, Start, Webhook

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup