On my search to find a cool self hosted url shortener I found rdt-li https://github.com/nrjdalal/rdt-li, yourls https://github.com/YOURLS/YOURLS, gigapaste https://github.com/NRicode/GigaPaste, and snapp https://snapp.li/
GitHub - nrjdalal/rdt-li: rdt.li self hostable, feature rich, minimalistic and open source URL shortener. Built with Next.js, Drizzle, NextAuth and Postgres.

rdt.li self hostable, feature rich, minimalistic and open source URL shortener. Built with Next.js, Drizzle, NextAuth and Postgres. - nrjdalal/rdt-li

GitHub
And then decided on actually url shortening using vercel's url redirects as documented here https://medium.com/@p3yman/create-a-simple-url-shortener-for-your-website-using-vercel-629fe129acff on my upcoming portfolio and blog webiste
Create a simple URL Shortener for your website using Vercel

URLs could be long. Very long. When you have a blog, you try to create the URLs with meaningful sentences like `working-with-new-suspense-system-in-react-17`. It actually is a good title for the SEO…

Medium
I'm too lazy and don't have enough time to design a new website so I'll probably use this https://vercel.com/templates/next.js/portfolio-starter-kit I do remember seeing another template that looked similar but with page view counters on each blog but I can't find that template anymore
Portfolio Starter Kit – Vercel

Easily create a portfolio with Next.js and Markdown.