All projects

sninat

A dental marketplace for Morocco, with search that understands what patients mean and a private network for the dentists on it.

Role
Full-stack, solo
Client
Personal project
Year
2026
Stack
Front end
React 19, TanStack Router, Vite, Tailwind CSS
Backend
Hono, Cloudflare Workers, better-auth
Data
Cloudflare D1, Drizzle, Cloudflare R2, Vectorize
Infrastructure
Cloudflare Pages, Cloudflare Queues, GitHub Actions
Services
Workers AI, Twilio, Resend
Testing
Vitest, Playwright
Links

A demo: the practices, patients and appointments are invented, and nothing a visitor does is saved or sent. The sign-in page has read-only logins for a patient, a dentist and an admin.

Finding a dentist without asking around

Finding a dentist in Morocco runs on word of mouth. You ask a cousin, a colleague, the pharmacist downstairs. Sninat replaces that with a directory you can search the way you’d describe the problem out loud, that shows where each practice is, and that lets you book without a phone call.

The Sninat home page: a heading reading 'Trouvez votre dentiste en un clic' above a search bar with 'Besoin' and 'Ville' dropdowns and a 'Rechercher' button, beside a line illustration of a patient with toothache and a 'Book now' card.
Discovery asks for need and city and nothing else. Those are the 2 things a patient already knows.

Results come as a list, a map or both, and narrow by specialty and by rating.

The Sninat directory filtered to Casablanca: a left rail of filters with a Casablanca chip, city checkboxes, a specialty list and insurance options; a centre column reading '5 dentistes disponibles' with result cards showing each dentist's specialty, rating, a line of their bio, their city and the next free slot; and a map of central Casablanca on the right with 5 pins.
Filters, results and the map are one screen. Narrowing on the left updates both of the others.

Every dentist gets a profile page built like a link-in-bio: one tap to book, message them on WhatsApp, call, get directions or share the page, then their hours, services, insurers, FAQ, reviews, and a gallery with a before-and-after slider.

A dentist's profile on a phone: a round avatar, 'Dr. Sarah Alami' with a verified badge, specialty pills for Dentisterie générale and Esthétique dentaire, a 4.8 rating from 47 reviews and the city, Casablanca. Below, 5 full-width buttons: Prendre rendez-vous in blue, WhatsApp in green, then Appeler, Itinéraire and Partager, above the start of an 'À propos' section.
On a phone, the actions a patient needs come before anything else on the page.

Booking needs no account. You say what the visit is for, pick a day and a time, leave your details, and get a reference number. Patients who do sign in can see and cancel their upcoming visits.

Opening hours Already booked Time off Free for a 30-minute visit 9:00 11:00 13:00 15:00 17:00
One day at one practice. The opening hours are cut into visits of the length the patient picked, and any visit that touches a booking or time off is dropped. Only what's left is shown.

Dentists run their side from one place: requests to confirm or decline, their week in mornings and afternoons, time off, services and prices, their profile, and a blog with a proper editor. They also get the community, a private network for dentists only, with channels for clinical cases, referrals, jobs, suppliers, training and events. It has mentions, replies, reactions, pinned messages and file sharing, and any message can be flagged to the administrators, who also review every dentist before they appear in the directory.

The dentists' community open on the 'Orientation patients' channel. A sidebar lists channels from Général to Événements. At the top, a pinned message reminds members to give city, reason and urgency and never a patient's name. Below it, one dentist asks for an endodontist in Tanger for a retreatment, another replies in a quoted thread offering to see the patient next week, and a second referral request for adult orthodontics in Casablanca is answered with 2 @mentions. Messages carry emoji reactions.
The referral channel. The pinned rule is that cases are described clinically and patients are never named.

Reviews come only from visits that happened: the patient who booked, once the appointment is marked complete, once. Dentists answer them in public, under the review.

Search that works on meaning

Search works on meaning. A patient types that their gums bleed, and the specialist they need is listed under “parodontologie”, so every dentist, article, answer and service is indexed by what it means, with a multilingual model. Rules that match whole words read each search first, in French, Arabic, Darija or English, and pick out a city and a kind of care to search within. Fès, fes, fez and فاس are the same city to them. Search opens from anywhere with Ctrl or Cmd+K.

“dentiste pour enfants à Fès” find city and care whole-word rules city: Fès care: children capture meaning Workers AI the whole search, as numbers search the index Vectorize dentists in Fès for children best matches by meaning load the results D1 name, specialty, city
A search for a children's dentist in Fès. What the rules pick out narrows the index, and the meaning of the whole search finds the best matches inside it. A search the rules can't read isn't narrowed at all.

Notifications go out in the app, by email, and on WhatsApp for patients who switch it on, including a reminder the day before a visit. Every Monday, dentists get a digest of their past week.

It all runs on Cloudflare and fits in the free plan.

Patients and dentists Cloudflare Pages the web app API calls Schedules daily, weekly The API Hono on a Worker Workers AI models D1 database R2 files Vectorize search index Queues messages Resend, Twilio email, WhatsApp
The web app calls one API. Schedules wake it for reminders and digests, and booking messages go out through a queue, so a slow email or WhatsApp provider never holds up a patient.

Every pull request runs lint, type checks, unit tests, and backend tests against a local copy of the database. Merging applies any database changes and deploys.