I Present To You - shrinkat - A Tiny URL Shortener

TLDR I made a link shortener. The goal was to learn the Pocketbase API and see if it could be viable for some smaller projects I build in the future.

There is really not much to say here. I wanted to implement an entirely localised solution to building something


Technologies I Used

  • SvelteKit (of course)

  • Pocketbase

  • TailwindCss

What I Learnt

  • How authentication works with Pocketbase: It's quite different from how something like Supabase handles it.

  • Data modelling: Being sqlite, the way I had to think about data needed a slight shift in mindset.

  • Working with the Pocktebase sqlite database: Working with a barebones database was actually really fun.

Here Are Some Screenshots

Here is the homepage:

home page unauthed

Here is what a logged in user sees:

logged in user


Wrapping Up

This was a fun little thing to build. I learnt quite a bit. There is definitely a place for Pocketbase in my off the cuff builds.

My one gripe is deploying this database is not simple, not in the slightest. And no, Docker does not count - I do not use those dark arts.

The code

The code for shrinkat is available on GitHub. Fork it, make it your own, create pull requests...

https://github.com/meerkat-collective/shrinkat


Thank you for reading, let's connect!

Thank you for visiting this little corner of mine. Let's connect on Twitter, Discord and LinkedIn

0
Subscribe to my newsletter

Read articles from James 'Dante' Midzi directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

James 'Dante' Midzi
James 'Dante' Midzi

I am passionate about creation, be it code or written. I believe that knowledge should be shared and that if we all gave a little bit of our time to helping the next person the world would be a better place. "Knowledge not shared is knowledge wasted"