Enter the Roll ID and 4-Digit PIN issued by Hoonar Coaching Classes to view your personal attendance percentage, fee receipts, balance due, and synced MCQ test history on any phone or computer.
Student rosters, parent WhatsApp numbers, attendance registers, and fee receipts are hidden from public student views and stripped from exported student HTML builds. Sign in via Supabase Faculty Auth (in Teacher Studio) for live cloud sync, or enter your Local Faculty PIN below.
Hoonar Batch Attendance & Fee Operations
Faculty Active
Every update auto-saves locally, writes to your linked JSON file, and syncs to Supabase when signed in via Faculty JWT.
Enrolled Students
0
Classes 9–12 Roster
Selected Sheet Present
0 / 0
Select batch below
Total Fee Collected
₹0
0 receipts issued
Pending Fee Dues
₹0
One-tap WhatsApp reminders
Tap P / A / L for each student, then click Save & Sync Sheet.
Student Fee Dues & Reminders
Live balance per student with 1-tap WhatsApp fee reminders
Issued Fee Receipts Log
5-Second Bulk Paste from Sheets / Excel
One per line: Name, Class, Board, Roll, Phone, Fee, PIN(optional)
Active Batch Roster
Synced with JSON & Supabase (`authenticated`)
Zero Data-Loss Architecture
Permanent Disk & Google Drive Backup Sync
Never rely solely on browser cache. Export or connect a local `.json` sync file stored in your Hoonar Google Drive folder.
Browser Cache + Manual JSON Ready
Optional Multi-Device CloudWorks alongside offline JSON & Disk Backup
Supabase Free-Tier Database Sync
Connect a free Supabase project so new worksheets, custom MCQ tests, and student scorecards sync across phones and PCs while keeping full offline JSON export/import.
Offline-First Mode active. Add your Supabase Project URL and Publishable/Anon Key below whenever you want live cloud sync.
Never synced
Zero-Trust Faculty Access
Unlock Hoonar Faculty Authoring Studio
Sign in with your Supabase Faculty Account for server-verified cloud publishing & viewing all student test attempts, or use your SHA-256 hashed offline PIN on a local classroom PC.
1. Cloud Faculty Login (Supabase Auth JWT)
Production Secure
Required by Zero-Trust RLS to push worksheets/tests to Supabase or pull class-wide student scorecards.
2. Local Classroom PIN (SHA-256 Hashed)
Offline Mode
Unlocks local authoring & JSON export without internet. Default PIN is 2026 — change it inside Studio before deploying.
Offline PIN SessionSession clears automatically when you lock or close tab
Ready to publish publicly? Export a sanitized Student-Ready index.html pre-wired to your Supabase URL & Publishable Key with zero private attempts or tokens.
Create Custom MCQ / A-R Test
0 Questions Added
Add a Question to Draft
Student Login & Profile
Have a Hoonar Roll ID & 4-Digit PIN?
HOONAR COACHING CLASSES · RAIPUR
Worksheet Preview
Submit Your Test Now?
Zero-Cost Production Hardening
5-Step Secure Setup & Deploy Checklist
Run Zero-Trust RLS SQL: Click 1-Click SQL Table Setup and run the script in Supabase SQL Editor. Students (anon) get read-only access to worksheets/tests and append-only test submission; only signed-in faculty (authenticated) can publish edits or read all scores.
Lock Down Faculty Signups: In Supabase Auth → Users, create accounts for Hoonar faculty, then go to Authentication → Providers → Email and turn OFF "Allow new users to sign up" so no student can register an authenticated account.
Rotate Local PIN & Connect Cloud: Enter your https://...supabase.co URL and Publishable Key (sb_publishable_... — never paste a service_role / sb_secret_ key in browser apps), sign in as Faculty, push your initial catalog, and set a custom Local PIN.
Export Sanitized Build: Click Export Student-Ready index.html inside Teacher Studio and place it inside the deployment folder alongside _headers, manifest.webmanifest, and sw.js.
Deploy Free on Cloudflare Pages: Upload the folder to Cloudflare Pages ($0/month) and keep a weekly .json Backup in Google Drive.
Supabase Free Plan · One-Time SQL Setup
Create Hoonar Portal Tables & RLS Policies
Open your Supabase Dashboard → SQL Editor → paste this script once and click Run. Then paste your Project URL and Publishable/Anon Key in Teacher Studio.
-- Hoonar Coaching Classes Portal: Zero-Trust Production Schema & RLS
-- 1. Create Tables (with score & input sanity CHECK constraints)
create table if not exists public.hoonar_worksheets (
id text primary key check (char_length(id) between 1 and 100),
workspace_id text not null default 'hoonar-2026-27',
cls text not null,
board text not null,
subject text not null,
title text not null check (char_length(title) between 1 and 300),
payload jsonb not null,
updated_at timestamptz not null default now()
);
create table if not exists public.hoonar_tests (
id text primary key check (char_length(id) between 1 and 100),
workspace_id text not null default 'hoonar-2026-27',
cls text not null,
board text not null,
subject text not null,
title text not null check (char_length(title) between 1 and 300),
payload jsonb not null,
updated_at timestamptz not null default now()
);
create table if not exists public.hoonar_attempts (
id text primary key check (char_length(id) between 1 and 100),
workspace_id text not null default 'hoonar-2026-27',
test_id text not null,
student_name text not null check (char_length(student_name) between 1 and 120),
cls text not null,
score numeric not null,
max_marks numeric not null check (max_marks > 0 and score <= max_marks),
accuracy numeric not null check (accuracy >= 0 and accuracy <= 100),
payload jsonb not null,
created_at timestamptz not null default now()
);
-- 2. Enable Row Level Security & Revoke Default Broad Grants
alter table public.hoonar_worksheets enable row level security;
alter table public.hoonar_tests enable row level security;
alter table public.hoonar_attempts enable row level security;
revoke all on table public.hoonar_worksheets from anon, authenticated;
revoke all on table public.hoonar_tests from anon, authenticated;
revoke all on table public.hoonar_attempts from anon, authenticated;
-- 3. Least-Privilege Role Grants
-- Students (anon): Read-only on worksheets & tests; Append-only (INSERT) on attempts
grant select on table public.hoonar_worksheets, public.hoonar_tests to anon, authenticated;
grant insert on table public.hoonar_attempts to anon, authenticated;
-- Signed-In Faculty (authenticated JWT): Full publish/manage access + read all student attempts
grant insert, update, delete on table public.hoonar_worksheets, public.hoonar_tests to authenticated;
grant select, update, delete on table public.hoonar_attempts to authenticated;
-- 4. Hardened RLS Policies
drop policy if exists "hoonar_ws_select" on public.hoonar_worksheets;
drop policy if exists "hoonar_ws_write" on public.hoonar_worksheets;
drop policy if exists "hoonar_ws_update" on public.hoonar_worksheets;
drop policy if exists "hoonar_ws_delete" on public.hoonar_worksheets;
create policy "hoonar_ws_select" on public.hoonar_worksheets for select to anon, authenticated using (true);
create policy "hoonar_ws_write" on public.hoonar_worksheets for insert to authenticated with check (true);
create policy "hoonar_ws_update" on public.hoonar_worksheets for update to authenticated using (true) with check (true);
create policy "hoonar_ws_delete" on public.hoonar_worksheets for delete to authenticated using (true);
drop policy if exists "hoonar_tests_select" on public.hoonar_tests;
drop policy if exists "hoonar_tests_write" on public.hoonar_tests;
drop policy if exists "hoonar_tests_update" on public.hoonar_tests;
drop policy if exists "hoonar_tests_delete" on public.hoonar_tests;
create policy "hoonar_tests_select" on public.hoonar_tests for select to anon, authenticated using (true);
create policy "hoonar_tests_write" on public.hoonar_tests for insert to authenticated with check (true);
create policy "hoonar_tests_update" on public.hoonar_tests for update to authenticated using (true) with check (true);
create policy "hoonar_tests_delete" on public.hoonar_tests for delete to authenticated using (true);
drop policy if exists "hoonar_att_select" on public.hoonar_attempts;
drop policy if exists "hoonar_att_write" on public.hoonar_attempts;
drop policy if exists "hoonar_att_update" on public.hoonar_attempts;
drop policy if exists "hoonar_att_delete" on public.hoonar_attempts;
create policy "hoonar_att_write" on public.hoonar_attempts for insert to anon, authenticated with check (max_marks > 0 and score <= max_marks and accuracy >= 0 and accuracy <= 100);
create policy "hoonar_att_select" on public.hoonar_attempts for select to authenticated using (true);
create policy "hoonar_att_update" on public.hoonar_attempts for update to authenticated using (true) with check (true);
create policy "hoonar_att_delete" on public.hoonar_attempts for delete to authenticated using (true);
-- 5. Faculty-Only Operations Tables (Students Roster, Batch Attendance & Fee Receipts)
create table if not exists public.hoonar_students (
id text primary key check (char_length(id) between 1 and 100),
workspace_id text not null default 'hoonar-2026-27',
cls text not null,
board text not null,
roll text not null default '',
student_name text not null check (char_length(student_name) between 1 and 120),
course_fee numeric not null default 0 check (course_fee >= 0),
payload jsonb not null,
updated_at timestamptz not null default now()
);
create table if not exists public.hoonar_attendance (
id text primary key check (char_length(id) between 1 and 140),
workspace_id text not null default 'hoonar-2026-27',
att_date text not null,
cls text not null,
board text not null,
session_name text not null,
payload jsonb not null,
updated_at timestamptz not null default now()
);
create table if not exists public.hoonar_fees (
id text primary key check (char_length(id) between 1 and 100),
workspace_id text not null default 'hoonar-2026-27',
receipt_no text not null,
student_id text not null,
student_name text not null,
cls text not null,
amount numeric not null check (amount > 0),
payload jsonb not null,
paid_at timestamptz not null default now()
);
alter table public.hoonar_students enable row level security;
alter table public.hoonar_attendance enable row level security;
alter table public.hoonar_fees enable row level security;
-- Zero privileges for public anon role; strictly authenticated faculty JWT only
revoke all on table public.hoonar_students, public.hoonar_attendance, public.hoonar_fees from anon, authenticated;
grant select, insert, update, delete on table public.hoonar_students, public.hoonar_attendance, public.hoonar_fees to authenticated;
drop policy if exists "hoonar_students_faculty_all" on public.hoonar_students;
create policy "hoonar_students_faculty_all" on public.hoonar_students for all to authenticated using (true) with check (true);
drop policy if exists "hoonar_attendance_faculty_all" on public.hoonar_attendance;
create policy "hoonar_attendance_faculty_all" on public.hoonar_attendance for all to authenticated using (true) with check (true);
drop policy if exists "hoonar_fees_faculty_all" on public.hoonar_fees;
create policy "hoonar_fees_faculty_all" on public.hoonar_fees for all to authenticated using (true) with check (true);
-- 6. Zero-Trust Student & Parent Roll ID + 4-Digit PIN Login RPC
create or replace function public.hoonar_student_portal_login(
p_workspace text,
p_roll text,
p_pin text
)
returns jsonb
language plpgsql
security definer
set search_path = public
as $$
declare
v_stu record;
v_att jsonb;
v_fees jsonb;
v_attempts jsonb;
begin
if coalesce(trim(p_roll), '') = '' or coalesce(trim(p_pin), '') = '' then
return jsonb_build_object('ok', false, 'error', 'Enter both Roll ID and 4-digit PIN.');
end if;
select * into v_stu
from public.hoonar_students
where workspace_id = p_workspace
and lower(trim(roll)) = lower(trim(p_roll))
and trim(coalesce(payload->>'accessPin', '')) = trim(p_pin)
limit 1;
if not found then
return jsonb_build_object('ok', false, 'error', 'Invalid Roll ID or 4-digit PIN.');
end if;
select coalesce(jsonb_agg(jsonb_build_object(
'date', a.att_date,
'session', a.session_name,
'status', a.payload->'marks'->>v_stu.id
) order by a.att_date desc), '[]'::jsonb)
into v_att
from public.hoonar_attendance a
where a.workspace_id = p_workspace
and (a.payload->'marks' ? v_stu.id);
select coalesce(jsonb_agg(f.payload order by f.paid_at desc), '[]'::jsonb)
into v_fees
from public.hoonar_fees f
where f.workspace_id = p_workspace
and f.student_id = v_stu.id;
select coalesce(jsonb_agg(t.payload order by t.created_at asc), '[]'::jsonb)
into v_attempts
from public.hoonar_attempts t
where t.workspace_id = p_workspace
and lower(trim(coalesce(t.payload->>'roll', ''))) = lower(trim(v_stu.roll));
return jsonb_build_object(
'ok', true,
'student', jsonb_build_object(
'id', v_stu.id,
'name', v_stu.student_name,
'cls', v_stu.cls,
'board', v_stu.board,
'roll', v_stu.roll,
'parentPhone', coalesce(v_stu.payload->>'parentPhone', ''),
'courseFee', v_stu.course_fee
),
'attendance', v_att,
'receipts', v_fees,
'attempts', v_attempts
);
end;
$$;
revoke all on function public.hoonar_student_portal_login(text, text, text) from public;
grant execute on function public.hoonar_student_portal_login(text, text, text) to anon, authenticated;
Tip: Pushing or pulling once a week also prevents Supabase Free Tier's 7-day inactivity pause.
OFFICIAL FEE RECEIPT
HOONAR COACHING CLASSES
Hanuman Nagar, Near Kalibadi Chowk, Raipur, Chhattisgarh · +91 7389076291
Computer-generated official receipt.
Thank you for learning with Hoonar Coaching Classes.