One-time setup

Connect your Firebase project

Quiz Battle runs entirely in the browser but needs a free Firebase project for realtime sync. Add your config and reload.

  1. Create a project at console.firebase.google.com
  2. Enable Firestore Database (start in test mode)
  3. Enable Authentication → Anonymous
  4. Add a Web App and copy its firebaseConfig
  5. Paste it into the FIREBASE_CONFIG block near the top of this file's script
const FIREBASE_CONFIG = {
  apiKey: "…",
  authDomain: "….firebaseapp.com",
  projectId: "…",
  storageBucket: "…",
  messagingSenderId: "…",
  appId: "…"
};
⚡ Live Multiplayer Quiz

LibraryQuiz

Real-time trivia game with one host, where players compete simultaneously to determine the top three winners.

Host

Staff access

Enter the staff password to create or manage rooms.

Host

Create your room

Choose a memorable room code. Players will use it to join.

6–10 characters · letters & numbers only · auto-uppercase · no spaces
Host

🗂 Manage Rooms

All rooms currently in Firestore. Delete stale rooms to free up their codes.

🎤 Host Console
Room Code
------
—

Players

🟢 OPEN
0/ 150 joined
🎮

Waiting for players…

Share the code or QR to fill the arena

Need at least 1 player to start
Host · Room ------

📚 Question Library

Load a saved set to edit and play, or start a new one. Saved sets are shared across all future games.

Host · Room ------

Question Editor

0 / 10 ready
Questions
QUESTION 1
Incomplete
รองรับภาพสเกล 1:1 · square (1:1) images display best
Choice A
รองรับภาพสเกล 1:1
Choice B
รองรับภาพสเกล 1:1
Preview
ROOM ------
Host
Question 1/10
● Live
—
15
0/0
Answered
A
Answer A
✓
0
B
Answer B
✓
0

Live Leaderboard

Scores appear as players answer.
Player

Join the battle

Enter the room code your host is showing, then pick a name.

Player Room ------
0 Points
👑
Champion
—
0 points