Notion URL Shortener
Uses Notion database as personal URL shortener.
Features
- Get your personal URL shortener with just a Notion.
- Support
custom,zero width,base64type. - Private mode : Notion API token based authorization.
- Count visits.
Demo
Getting Started
Prep work
- Create a Notion account
- Duplicate this Notion database template
- Create a Notion API integration & Get Token
- Share a database with your integration
- Deploy on Vercel
- Set
NEXT_PUBLIC_NOTION_DATABASE_URLto your database URL,NOTION_API_TOKENto your token obtained in step 3.
Deploy on Vercel
Environment Variables
NEXT_PUBLIC_NOTION_DATABASE_URL
Required Notion database page URL.
https://www.notion.so/<your-workspace>/a8aec43384f447ed84390e8e42c2e089
# or
https://<your-workspace>.notion.site/a8aec43384f447ed84390e8e42c2e089
NOTION_API_TOKEN
Required Notion API Key.
Show advanced options
USE_TOKEN_AUTH
If set to true, visitors without tokens cannot submit new URLs.
Default false
MAXIMUM_ZERO_WIDTH_SHORTEN_LENGTH
Maximum length of URL path with zero width shorten.
Default 8
MAXIMUM_BASE64_SHORTEN_LENGTH
Maximum length of URL path with base64 shorten.
Default 7
MAXIMUM_GENERATION_ATTEMPTS
Maximum number of times to retry when the generated URL path conflicts with the already registered URL path.
Default 5