短链生成 , 访客信息收集 项目链接: https://zlz.pw/iR52A

Property
Mar 8, 2022 09:34 AM

URL Shorter

Simple url shorter build with next.js and redis

Features

  • url shorter
  • url visit track
  • url track vision dashboard
  • map and chart vision
  • responsive UI

ScreenShot

notion image
notion image
notion image
notion image

Track Infos

  • time

geo info

  • ip
  • region
  • country
  • city
  • lat lng

ua info

  • ua string
  • browser name
  • browser version
  • os name
  • os version
  • cpu
  • device model
  • device vendor
  • engine name
  • engin version

Online demo url shorter

Technologies or libs I use:

Core Shorter

  • next.js (full stack framework)
  • vercel (deployment serverless)
  • redis (storage kv : shortid and long urls)
  • upstash (serverless database redis)
  • ioredis (node redis lib)
  • nanoid (generate short id)
  • is-url (judge is valid url)
  • chakra-ui (frontend ui lib)
  • @icon-park/react (icons)

Visitor Track

  • next.js edge middleware (track visit info)
  • postgres (storage link and visitor info)
  • prisma (ORM)
  • leaflet (map: show visitor location)
  • react-leaflet (leaflet wrapper)
  • cobe (show globe)
  • @ant-design/plots (charts)