• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jjg

jjg

multiplayer-prompting

Public
Like
multiplayer-prompting
Home
Code
17
.vscode
.vt
backend
docs
frontend
shared
.vtignore
AGENTS.md
ARCHITECTURE.md
DEPLOYMENT.md
QUICKSTART.md
README.md
deno.json
index.ts
queries.ts
schema.ts
sse_hub.ts
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
…
Viewing readonly version of main branch: v20
View latest version
README.md

Backend

This directory contains the server-side logic for Vibe-Draft.

Files

  • index.ts: Main Hono application with all API routes
  • sse-hub.ts: Server-Sent Events hub for real-time multiplayer updates
  • vibe-engine.ts: Synthesizes prompt stack into OpenAI calls

Database

  • database/schema.ts: SQLite table definitions and initialization
  • database/queries.ts: Type-safe database query functions

Key Features

SSE Broadcasting

The SSE hub maintains active connections and broadcasts events to all connected clients in a session.

Vibe Synthesis

The vibe engine takes a stack of played cards and constructs a coherent system prompt for OpenAI, handling:

  • Role assignments
  • Tone modifications
  • Token limits
  • Custom instructions
  • Image context

API Endpoints

All routes are documented in the main README. The backend handles:

  • Session creation/joining
  • Card playing and turn management
  • OpenAI generation
  • Real-time updates via SSE
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.