βοΈ bitSnip β Simplify, Share & Track URLs in Seconds

π Live: https://bitsnip.vercel.app
π GitHub: Anirudhakashid/URL-shortner
π Introduction :
In a world dominated by digital sharing, long, messy URLs can feel like a nuisance β especially on social media or when printed on flyers. Thatβs where bitSnip comes in β a minimal yet powerful URL shortener that transforms long URLs into sleek, trackable links with QR codes and analytics. Whether you're a marketer, student, or someone who just wants to clean up links, bitSnip makes it effortless.
π§ Tech Stack :
Frontend
React.js
Tailwind CSS
Shadcn UI
Backend
- Supabase (BaaS with authentication and PostgreSQL database)
πΌοΈ Preview :
Homepage: clean and bold CTA.
Secure authentication via Supabase.
Manage all your links in one place.
Quickly generate short links.
Track clicks, device type, and location.
π₯ Features
β Instant URL Shortening β Paste a long link, get a short one instantly.
π± Responsive Design β Clean layout across devices using Tailwind.
π§© Shadcn UI Components β For a beautiful and consistent UI experience.
π Analytics Dashboard β View click count, location, and device info.
π· QR Code Generator β Every link gets a downloadable QR code.
π§ Challenges Faced
βοΈ Supabase Auth Flow: Integrating Supabase authentication and managing session state across pages required thoughtful handling using Context API and route guards.
π Private vs Public Routing: To prevent access to analytics and the dashboard without logging in, we built a reusable route protection layer.
π Custom URL Conflict Check: One key challenge was ensuring that custom short URLs created by users weren't already taken. This required performing a real-time check against the Supabase database before allowing the link to be created.
π What I Learned
Deepened my understanding of React state management, async operations, and Supabase services.
Gained experience with component libraries like Shadcn and how to make them fit a custom brand/style.
Hands-on exposure to UI/UX design thinking β ensuring the tool is intuitive and fast.
Learned to handle errors effectively β from API call failures to form validation issues β using toast notifications, custom error messages, and controlled inputs to provide better user feedback and debugging.
Implemented form validation using Yup for the first time, which helped enforce strong input rules (like valid URLs, non-empty fields, etc.) and made form handling more predictable and scalable.
π‘οΈ What's Next?
- π§ Malicious Link Detection β Planning to integrate an API to scan and warn users if a URL seems unsafe and ensures users safety.
Thanks for reading! π
Feel free to try it out and let me know your thoughts:
π https://bitsnip.vercel.app
Subscribe to my newsletter
Read articles from Anirudha Kashid directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
