Petcrest

A pet’s life is scattered: vaccine dates, vet records, shops, groomers and the photos owners actually want to share. Petcrest puts it in one app.

My part: System design, architecture, backend and end-to-end delivery.

Visit Petcrest (opens in a new tab)

The problem

$7B

India’s pet care market by 2028 (projected), up from $3.6B in 2024Source: Redseer via Consultancy.in (opens in a new tab)

Pet owners in India are spending more every year, and their pet’s life is still split across apps and paper. Records sit with the vet, reminders sit in someone’s head, products come from one store and grooming from another.

An app that pulls all of that together keeps adding features, and every feature lands on the same core. If the core isn’t designed for it, the feed gets slower with each release, and the feed is the part people open every day.

What I built

  1. A feed that stays fast as it grows

    Each post carries a small snapshot of its latest likers and comments, so a card loads without reading every like.

  2. One backend, many businesses

    Social, a product marketplace, a services marketplace with bookings, cart and orders, notifications and search, all in one system of 49 modules.

  3. AI that answers from the pet’s own records

    Petzy answers from the documents in the pet’s AI vault, with Gemini and Claude behind one failover interface so one provider’s outage doesn’t take the assistant down.

  4. Replatformed while live

    In 2026 I moved the whole data layer from Mongoose to Prisma and cut the live product over to it.

How it’s built

A post in the feed: the photo, the caption, like and comment counts, and the faces of the people who liked it.

Data
PostsMongoDB, with snapshots
Likes & commentsfull collections
Search indexAtlas Search
Notification queueAWS SQS
Services
Posts & comments
Likescounter + 7-liker snapshot
Feedpulled from your communities
Notificationsbatched, queued
API
Community access ruleswho can see and post
AuthFirebase

Meera in Senior Dogs

Fourteen today. Still checks the kitchen at exactly 7.

412 likes57 comments

Each post keeps its last 7 likers and 7 comments, so a card loads without scanning every like.

The snapshot stores ids, not names. Names are looked up on read, so a renamed profile is never stale.

Unlike is one database update: the count drops and the face leaves the preview together.

Replies count toward the total but stay out of the preview. Threads load only when someone opens them.

More likes on the same post within 5 minutes update one notification instead of sending another push.

  1. Posts · DataEach post keeps its last 7 likers and 7 comments, so a card loads without scanning every like.
  2. Posts · DataThe snapshot stores ids, not names. Names are looked up on read, so a renamed profile is never stale.
  3. Likes · ServicesUnlike is one database update: the count drops and the face leaves the preview together.
  4. Posts & comments · ServicesReplies count toward the total but stay out of the preview. Threads load only when someone opens them.
  5. Notifications · ServicesMore likes on the same post within 5 minutes update one notification instead of sending another push.

Decisions I made

How it grew

I built it in stages, each one on top of the last.

  1. Feb–Apr 2024Social core
    • Pets and reminders
    • Communities
    • Posts, comments and likes
    • Feed
    • Events
  2. May–Sep 2024Commerce
    • Products
    • Cart and orders
    • Stripe and Razorpay
    • Notifications
  3. Feb–Jul 2026Replatform
    • Chat rooms
    • Moved from Mongoose to Prisma
    • Production cutover
  4. Aug–Oct 2026AI & services
    • AI vault
    • Petzy assistant
    • AI posts
    • Booking engine
    • Pet Passport
    • Partners

The size of it

modules
49
API routes
~350
data models
53
commits since Feb 2024
~950

Built with