[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110368":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":13,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":16,"starSnapshotCount":16,"syncStatus":34,"lastSyncTime":35,"discoverSource":36},110368,"hazir","AnuragRoy485\u002Fhazir","AnuragRoy485","Hazir - know who is coming. RSVPs, arrival times, meals and live headcount for any occasion.","https:\u002F\u002Fwww.hazir.live\u002F",null,"JavaScript",75,1,51,4,0,6,25,46.4,"Other",false,"main",true,[25,26,27,28,29],"event-management","guest-management","javascript","rsvp","supabase","2026-11-19 14:29:24","2026-11-23 18:15:33","# Hazir (हाज़िर)\n\n![Hazir calendar view with an event and guest stats](docs\u002Fscreenshot-calendar.png)\n\n**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.\n\nHazir means *present, here, accounted for*.\n\n- Live demo: [https:\u002F\u002Fwww.hazir.live\u002F](https:\u002F\u002Fwww.hazir.live\u002F)\n- Stack: plain HTML, CSS and ES modules in the browser (no build step), Postgres with Row Level Security and email\u002Fpassword auth on a free hosted backend, static hosting on a free tier.\n\n## Why it exists\n\nGatherings 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.\n\nHazir asks the three questions a host needs answered: **are you coming, how many of you, and when will you arrive.**\n\n## Features\n\nHost (signed in with email and password):\n\n- Sign up, log in, log out. Each host sees only their own events.\n- Calendar view of all events: days with events are marked, details show on hover, keyboard focus or tap.\n- 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.\n- Deleting an event needs typing the word delete in a styled confirmation, never a browser popup.\n- 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\u002FFacebook link-preview image, with a Hazir watermark added to the preview copy (the original upload is never altered).\n- Optional guest name list: every named guest gets a personal link, so you see exactly who has not answered.\n- Overview: coming, declined, awaiting, plates, days to go, answered progress, arrivals by hour, meal mix, group mix, latest answers. Refreshes itself every 15 seconds.\n- 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).\n- 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.\n- Day-of door list ordered by arrival time with a live arrived counter.\n\nGuest (no account):\n\n- 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.\n- 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.\n- 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\u002FSECURITY.md).\n- A guest can only see the event title, date, host name and deadline. Never other guests, meals or answers.\n\nLanding 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.\n\n## Architecture\n\n```\nindex.html            landing page\napp.html              host app (login, events, dashboard)\nrsvp-page.html        guest RSVP page template (rendered with OG tags through \u002Frsvp on Vercel)\napi\u002Frsvp.js           server-rendered guest page: injects per-event social preview (Open Graph) tags\n404.html              styled not-found page\nassets\u002Fcss\u002F           site.css (base + landing), app.css (host app + guest page)\nsrc\u002Flib\u002F              config, http, session, auth, db, storage (banner upload + watermark), format, ui (no framework, no dependencies)\nsrc\u002Ffeatures\u002Fhost\u002F    host views: authView, eventsView, calendar, eventForm, dashboard\u002F (tabs, stats, csv, add guest, nudge)\nsrc\u002Fpages\u002F            entry points: host.js, rsvp.js, landing.js\nsupabase\u002Fschema.sql   tables, policies, functions, grants\ntests\u002Fe2e.mjs         browser test of signup, RSVP and isolation against the real backend\ndocs\u002F                 security model\n```\n\nData 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.\n\n## Security model\n\n- Row Level Security is on for `events`, `invitees` and `responses`. Policies allow a row only when `events.owner = auth.uid()`.\n- The anonymous role has no table access at all. Guests call two `security definer` functions: `get_invite` (title, date, host, deadline, and the guest's own name for a personal link) and `submit_rsvp` (validates the event, deadline, token and party size, and caps responses).\n- 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.\n- Banner images live in a public storage bucket (needed for link previews), capped at 5 MB and limited to PNG\u002FJPG\u002FWebP; a host can only write inside a folder named after an event they own.\n- The publishable key in `src\u002Flib\u002Fconfig.js` is public by design. Never commit a service role key or a database password. `.gitignore` excludes env files.\n- All user text is HTML-escaped before rendering. CSV export prefixes cells that start with `=`, `+`, `-` or `@`.\n- 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.\n\nSee `docs\u002FSECURITY.md`.\n\n## Run it yourself\n\n1. Create a free project at https:\u002F\u002Fsupabase.com and run `supabase\u002Fschema.sql` in the SQL editor.\n2. In Authentication, Sign In \u002F Providers, turn off \"Confirm email\" (or configure your own SMTP provider and leave it on).\n3. Put your project URL and publishable key in `src\u002Flib\u002Fconfig.js`.\n4. Serve the folder with any static host. Locally: `npx serve .` or `python3 -m http.server`.\n5. Deploy: import the repo into any static host (it needs no build command). `vercel.json` adds basic security headers.\n\n## Tests\n\n```\nnpm i puppeteer-core\nnode tests\u002Fe2e.mjs            # serves the repo locally\nBASE_URL=https:\u002F\u002Fyour-site node tests\u002Fe2e.mjs\nBASE_URL=https:\u002F\u002Fyour-site node tests\u002Ffeatures.mjs   # full feature walk-through, desktop and mobile\nnode tests\u002Fabuse.mjs                                  # guest answer limits\n```\n\nThe 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.\n\n## Notes\n\n- 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.\n- Hazir sends no messages. WhatsApp buttons open WhatsApp with a prefilled text for you to send.\n\n## License\n\nHazir is source-available under the **MIT License with the Commons Clause** (see [LICENSE](LICENSE)).\n\nIn plain words:\n\n- You may read, run, copy, modify and share the code, including for your own events, your company or a non-profit.\n- 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.\n- Keep the copyright notice and the license text with any copy.\n- The software comes with no warranty.\n\nThis 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.\n\n## Deploys and asset caching\n\nEvery 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\u002F`, `assets\u002F`, or the HTML pages, run:\n\n    python3 scripts\u002Fbump-assets.py YYYYMMDD-N\n\nwith 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.\n","Hazir 是一个轻量级活动宾客管理工具，帮助活动组织者实时掌握到场人数、用餐需求和预计抵达时间。核心功能包括：基于邮箱密码的主机身份验证与数据隔离、支持个性化邀请链接与批量WhatsApp提醒、宾客端三要素采集（是否出席\u002F人数\u002F抵达时间）、服务端强制RSVP截止时间、实时动态仪表盘（含到场曲线、餐盘统计、分时段到达分布）及现场签到门禁列表。技术上采用纯前端ES模块+Supabase Postgres（启用行级安全），零构建步骤，适合中小型线下聚会如婚礼、生日宴、宗教仪式、家庭聚餐及企业团建等场景使用。",2,"2026-11-24 04:38:47","CREATED_QUERY"]