DEV Community

Cover image for Say Hello To shrinkat - A Tiny URL Shortener
James 'Dante' Midzi
James 'Dante' Midzi

Posted on • Edited on

2

Say Hello To 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 1
  • 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 build.

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


  1. Testing  

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more