Inspiration

Every time my cats deliver babies, it's fun for a month. After that, the increased cat population begins to hit with more litter to clean and higher expense on cat food. I have to figure out how to put them up for adoption. First time it happened, I realised how hard it is to put cats up for adoption in Bangladesh. Three years after the first time I experienced a cat delivery, I still struggle with the process.

With no shelters to adopt cats, cat adoption in Bangladesh mainly revolves around informal Facebook groups and physical marketplaces. With a near-infinite number of Facebook groups and never-ending spam, adopting a cat through Facebook is difficult for adopters and people listing cats alike, particularly beginners. The physical marketplaces — Katabon for instance — are avoided by pet lovers because of animal abuse; they lock up cats inside of tiny cages.

Cats are the most popular pets in Bangladesh, and the number of cat owners has tripled over the last three years. Bilai is an app that aims to connect the adopters and pet parents in the burgeoning cat adoption landscape in Bangladesh. We want Bilai to make the cat adoption landscape in Bangladesh more streamlined and easier to navigate.


Features

  • Explore cats to adopt: Browse a clean grid of adoption listings and view each cat’s photos, details, and location.
  • Search and filter: Search by name, breed, or location, and filter by age, breed, gender, district, area, vaccination status, and neutering status.
  • Put cats up for adoption: Create a listing with up to five photos, age, breed, location, health information, temperament, and the reason for rehoming.
  • Connect through WhatsApp or phone: Logged-in adopters can contact the owner from the cat’s page using the owner’s preferred contact methods. WhatsApp opens with a message introducing the cat they’re interested in.
  • Manage your account: Sign up with email and password or Google, edit your profile, and remove your own listings.

How we built it

  • Frontend: Built with Next.js, React, TypeScript, and Tailwind CSS, using shadcn/ui and Base UI components.
  • Authentication: Implemented with Better Auth, supporting email and password authentication and Google sign-in.
  • Database & ORM: Used Neon PostgreSQL with Drizzle ORM to store accounts, cat listings, and uploaded photos.
  • Image uploads: Photos are resized and compressed into WebP in the browser before being uploaded. They are stored in the shared database so different servers and local copies of Bilai can access them.
  • Contact integrations: Used WhatsApp click-to-chat links (wa.me) and phone links (tel:). Owners choose how they want to be contacted, and contact links are provided only after the adopter logs in.

Challenges we ran into

It was our first time embracing an agentic workflow. Moving from hand coding to working with coding agents pushed us to rethink how we approach engineering. We had to communicate requirements clearly, review generated code, and check that the implementation matched what we intended.

We also had to handle large photo uploads, validate Bangladeshi phone numbers and locations, and keep owners’ phone numbers out of publicly rendered pages while allowing logged-in adopters to contact them.

Another challenge was making uploaded photos available across different copies of the app. Initially, photos were saved locally while listing information was shared through the database. We moved photo storage into the shared database so listings and their images could be accessed together.


What changed during CTRL+V

Bilai got a complete rebuild with improved UI. We moved to BetterAuth, Drizzle and Neon from NextAuth and Prisma. The rebuild also uses shadcn components.

Built With

  • figma
  • nextauth
  • nextjs
  • react
  • tailwind
Share this project:

Updates

Submission history