Know who is coming. Hazir turns invitations into answers. Guests say yes or no, say how many people are coming and when they will arrive. The host watches a live headcount, plate count and arrival curve. It works for weddings, birthdays, pujas, baby showers, dinners and corporate events.
Hazir means present, here, accounted for.
- Live demo: https://www.hazir.live/
- Stack: plain HTML, CSS and ES modules in the browser (no build step), Postgres with Row Level Security and email/password auth on a free hosted backend, static hosting on a free tier.
Gatherings still run on WhatsApp. Hosts count replies by scrolling, guests say "will try", and the real number arrives at the gate: fewer or more people than expected, and many of them late. Food is wasted or runs out. Spreadsheets break at fifty rows and generic form tools do not know that a family of four is one answer with four plates and four meals.
Hazir asks the three questions a host needs answered: are you coming, how many of you, and when will you arrive.
Host (signed in with email and password):
- Sign up, log in, log out. Each host sees only their own events.
- Calendar view of all events: days with events are marked, details show on hover, keyboard focus or tap.
- RSVP closing date, exact time and timezone, enforced on the server. Close or reopen RSVPs manually, duplicate an event, add a venue and a message to guests, copy a caterer summary.
- Deleting an event needs typing the word delete in a styled confirmation, never a browser popup.
- Create, edit and delete events: name, occasion, date, host name, invited count, RSVP deadline, plus-one limit, usual arrival time, and an optional event banner. The banner shows at the top of the invite and becomes the WhatsApp/Facebook link-preview image, with a Hazir watermark added to the preview copy (the original upload is never altered).
- Optional guest name list: every named guest gets a personal link, so you see exactly who has not answered.
- Overview: coming, declined, awaiting, plates, days to go, answered progress, arrivals by hour, meal mix, group mix, latest answers. Refreshes itself every 15 seconds.
- Guests table: search, filter (coming, declined, awaiting, checked in), check-in toggle, remove, add names, add a walk-in or phone RSVP, CSV export (spreadsheet formula safe).
- Invites: open invite link, personal links, WhatsApp share and nudge buttons (they open WhatsApp with a prepared message, nothing is sent for you), copy all reminders.
- Day-of door list ordered by arrival time with a live arrived counter.
- Multi-function events: one invite link, guests answer per function (Sangeet, ceremony, reception...), with separate counts and meal totals per function on the dashboard, in exports and in the caterer view.
- Caterer / planner view: a read-only live summary link per event (headcount, plates, meals, arrivals - never names or contacts), refreshing every 30 seconds.
- Gift registry link on the invite (link only, no payments).
Guest (no account):
- One link, any phone. Yes or no, name, phone (with country code and per-country validation) and email, meal, adults and kids counted separately up to the host's limit, each companion named with a meal, arrival time slider, note to the host.
- After answering, the guest gets a saveable personal link ("Plans change. Keep your RSVP handy.") that reopens their own answer - and only theirs - to change it later.
- Personal links lock the answer to that guest and let them change it later. Answers close at the exact deadline time, enforced by the database, and guest answers have basic abuse limits (see docs/SECURITY.md).
- A guest can only see the event title, date, host name and deadline. Never other guests, meals or answers.
- The RSVP page speaks English, Hindi and Bengali. After answering, guests can add the event to Google or Apple Calendar, and update or delete their own answer from their saved link.
- Installable (PWA manifest + icons), with sitemap, robots.txt and JSON-LD for search.
Landing page: the story, how it works, a sample dashboard with made-up guests (stored only in your browser), and a Contact us form. Contact messages are stored in the database and read in the super-admin dashboard (migration 21); the table itself is never exposed, submission goes through the locked submit_contact function with abuse limits.
index.html landing page
app.html host app (login, events, dashboard)
rsvp-page.html guest RSVP page template (rendered with OG tags through /rsvp on Vercel)
api/rsvp.js server-rendered guest page: injects per-event social preview (Open Graph) tags
404.html styled not-found page
assets/css/ site.css (base + landing), app.css (host app + guest page)
src/lib/ config, http, session, auth, db, storage (banner upload + watermark), format, ui (no framework, no dependencies)
src/features/host/ host views: authView, eventsView, calendar, eventForm, dashboard/ (tabs, stats, csv, add guest, nudge)
src/pages/ entry points: host.js, rsvp.js, landing.js
supabase/schema.sql tables, policies, functions, grants
tests/e2e.mjs browser test of signup, RSVP and isolation against the real backend
docs/ security model
Data flow: the browser talks straight to the backend's REST and Auth endpoints with a public publishable key. There is no custom server. Hosts use their own login token, so every query runs as that host and the database decides what they can see.
- Row Level Security is on for
events,inviteesandresponses. Policies allow a row only whenevents.owner = auth.uid(). - The anonymous role has no table access at all. Guests call two
security definerfunctions:get_invite(title, date, host, deadline, and the guest's own name for a personal link) andsubmit_rsvp(validates the event, deadline, token and party size, and caps responses). - Personal tokens are random 96-bit values in each invitee row. A wrong token is rejected. Saved RSVP links use a separate random 96-bit edit token on the response row; it returns and updates only that one answer.
- Banner images live in a public storage bucket (needed for link previews), capped at 5 MB and limited to PNG/JPG/WebP; a host can only write inside a folder named after an event they own.
- The publishable key in
src/lib/config.jsis public by design. Never commit a service role key or a database password..gitignoreexcludes env files. - All user text is HTML-escaped before rendering. CSV export prefixes cells that start with
=,+,-or@. - Known limits: guest RSVPs have no CAPTCHA or per-IP rate limit on the free tier, and email verification and password reset are off (no mail provider is configured). Anyone can create a host account.
See docs/SECURITY.md.
- Create a free project at https://supabase.com and run
supabase/schema.sqlin the SQL editor. - In Authentication, Sign In / Providers, turn off "Confirm email" (or configure your own SMTP provider and leave it on).
- Put your project URL and publishable key in
src/lib/config.js. - Serve the folder with any static host. Locally:
npx serve .orpython3 -m http.server. - Deploy: import the repo into any static host (it needs no build command).
vercel.jsonadds basic security headers.
npm i puppeteer-core
node tests/e2e.mjs # serves the repo locally
BASE_URL=https://your-site node tests/e2e.mjs
BASE_URL=https://your-site node tests/features.mjs # full feature walk-through, desktop and mobile
node tests/abuse.mjs # guest answer limits
The test creates two throwaway host accounts and an event, answers it from a separate logged-out browser session, then checks that the other host and anonymous visitors cannot read or change it. It deletes its event afterwards. Throwaway accounts use the hazir-e2e- email prefix and can be removed from the Auth users list.
- Free hosting tiers have limits and some are for non-commercial use only. Check your host's terms before running a paid service on it.
- Hazir sends no messages. WhatsApp buttons open WhatsApp with a prefilled text for you to send.
- Changelog - what shipped, when.
- Contributing - ground rules, setup, good first issues.
- User guide: hazir.live/docs
Hazir is source-available under the MIT License with the Commons Clause (see LICENSE).
In plain words:
- You may read, run, copy, modify and share the code, including for your own events, your company or a non-profit.
- You may not sell it. Under the Commons Clause, "Sell" means offering a product or service to others for a fee or other consideration, including paid hosting, consulting or support, whose value comes entirely or substantially from Hazir.
- Keep the copyright notice and the license text with any copy.
- The software comes with no warranty.
This is not an OSI-approved open source license, so it is described as source-available. It is not legal advice; if you need certainty for a commercial situation, ask the author.
Every asset URL (CSS, JS modules, vendored files, images referenced from CSS) carries a ?v= version query. Browsers cache each versioned URL, so a normal refresh picks up a new deploy: the HTML is always revalidated, sees the new ?v=, and fetches fresh assets. Before pushing any change that touches files under src/, assets/, or the HTML pages, run:
python3 scripts/bump-assets.py YYYYMMDD-N
with a fresh version value, and commit the result with your change. Skipping the bump means returning visitors keep stale assets until their browser cache expires.
