TutorLoom
The learning platform for companies, colleges and training institutes. Free and open source, with an Enterprise edition.
AI-assisted research workspace for CECS 491.
Translation pending
EducationTypeScript · PythonGitHub @lb-csOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗AI-assisted research workspace — CECS 491, Team Quintessential Algorithms.
You need Node 24, npm 11, and Docker (running). The
Supabase CLI
needs no install — npx supabase downloads it on first use.
1. Install dependencies
npm ci
2. Start Supabase
npx supabase start
It prints an API URL and a publishable key. You need both in the next step.
3. Create .env
cp .env.example .env
Paste in the two values from step 2:
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_...
4. Run the app
npm run dev
Open http://localhost:3000.
Uploads stay pending with only the app running: the Python worker processes them. To
run Supabase, the worker, and the app from one terminal, use npm run dev:all instead.
The worker needs uv and a
worker/.env. Details in local setup.
5. Sign in
Go to http://localhost:3000/login and enter any email. No real email is sent — the 6-digit code lands in the local inbox at http://127.0.0.1:54324. Copy it into the form.
Handy URLs
| What | Where |
|---|---|
| App | http://localhost:3000 |
| Sign-in codes (local inbox) | http://127.0.0.1:54324 |
| Supabase Studio (DB browser) | http://127.0.0.1:54323 |
Done for the day? npx supabase stop.
This repo is the project foundation: Next.js (App Router), Tailwind CSS v4,
shadcn/ui, Supabase (auth + Postgres), ESLint, Prettier, and CI. Email OTP login,
projects (dashboard, create, edit, delete, REST API), sources (upload, list, remove,
live status, retry), account settings (change email, delete account), and a first
workspace chat work. The Python
worker parses, chunks, and embeds uploads. The schema is in supabase/migrations/.
What's built per screen:
docs/design/architecture.md.
Local is the default for day-to-day work — no rate limits, no shared state, emails
land in a local inbox. supabase/config.toml already wires the one-time-code email
templates (supabase/templates/) and the email-change setting.
If you need a cloud project instead, create one at https://supabase.com/dashboard, then:
sb_publishable_...
key into .env.local.supabase/templates/magic-link.html — it must include {{ .Token }}, or Supabase
emails a link instead of a code and the login form won't work.supabase/templates/email-change.html. Same reason: Settings asks for a code.Gotcha: without custom SMTP, a cloud project's built-in mailer allows only a handful of emails per hour. Fine for one person, tight for five — another reason to use local for development.
| Script | What it does |
|---|---|
npm run dev | Start the dev server |
npm run dev:all | Supabase, the worker, and the dev server |
npm run build | Production build |
npm run start | Serve the production build |
npm run lint | ESLint (lint:fix to auto-fix) |
npm run format | Prettier write (format:check to verify) |
npm run type-check | Generate route types, then tsc --noEmit |
CI (.github/workflows/ci.yml) runs lint, format check, type-check, and build on
every pull request.
app/ App Router routes
page.tsx / — redirects to /dashboard or /home by sign-in state
home/ Landing page (public)
login/ Sign-in page (public): page.tsx, login-form.tsx, actions.ts, schema.ts
(app)/ Signed-in screens inside the app shell: dashboard, projects, settings
api/health/route.ts GET /api/health → { "status": "ok" } (public)
api/projects/ Project REST API (protected)
components/ App components; components/ui/ is shadcn (npx shadcn@latest add <name>)
lib/ Logic behind the routes: projects.ts, sources.ts, chat.ts, ai.ts, account.ts
lib/supabase/ Supabase clients from the docs (client.ts, server.ts, proxy.ts) + DB types
supabase/ Local Supabase config, migrations, email template
worker/ Python worker that parses, chunks, and embeds uploads (worker/README.md)
scripts/dev.sh What `npm run dev:all` runs
proxy.ts Calls lib/supabase/proxy.ts on every request (Next 16's "middleware")
public/ Static assets
Passwordless email OTP via Supabase Auth. Signup and login are the same flow: enter an email, get a 6-digit code, enter the code. Unknown emails get an account automatically.
The setup follows Supabase's Next.js server-side auth guide file for file.
lib/supabase/proxy.ts. Only /home, /login, and /api/health
work signed out (/ redirects by sign-in state); any other page redirects to /login,
any other /api/* route answers 401. Add a path to PUBLIC_PATHS there to open it.const supabase = await createClient() from
@/lib/supabase/server, then supabase.auth.getClaims() to read the user.
Never trust getSession() on the server — it doesn't verify the JWT.createClient() from @/lib/supabase/client.app/login/login-form.tsx — react-hook-form + zod, shadcn Field.
Server actions in app/login/actions.ts (sendCode, verifyCode, signOut).Import alias: @/* maps to the repo root (e.g. @/components/ui/button).
docs/README.md — map of all project docs: product spec, use cases, design, rulesAGENTS.md — entry point for AI coding agents; the rules in docs/rules/ are for
humans toodocs/agents/code-style.md — how code is shaped hereCONTEXT.md — domain glossary: the words the code usesdocs/adr/ — architecture decision recordsJira: https://quintessentialalgorithms.atlassian.net/browse/CECS491