Build Roblox games from an idea, refine Luau scripts, and export to Studio.
AI: publik API or your key
publik verified: the founder reviewed this exact version for malware and approved it

Prices are for one typical use: one request of about 1,500 words sent and 375 words back. A higher quality score is better.
Not checked yet: publik has not read whether Studsmith can run its AI on your computer.
| Model | Quality | Per 1,000 uses |
|---|---|---|
| On your computer (Ollama, 4-bit download size) | ||
| Granite 4.2 3B2.2 GB | 9 | $0 |
| Phi-4 Mini2.5 GB | 6 | $0 |
| Llama 3.1 8B4.9 GB | 7 | $0 |
| gpt-oss 20B14 GB | 9 | $0 |
| Gemma 4 31B20 GB | 19* | $0 |
| Qwen3.5 35B-A3B24 GB | 19* | $0 |
| publik API | ||
| publik-fastGLM-5.3 Flash | 42 | $1.00 |
| publik-balancedMiMo-V2.6-Pro | 46 | $10.00 |
| publik-smartGPT-6 Sol · Studsmith | 48 | $18.00 |
Quality: Artificial Analysis Intelligence Index v4.3.2, read 2026-09-22 (publik API models 2026-09-25); * = estimated by Artificial Analysis. Sizes: the Ollama library, read 2026-09-22.
Every step written out. No terminal experience needed. Pick your setup.

Describe a Roblox game, refine its world and Luau scripts, and export a place that opens directly in Roblox Studio.
Studsmith is not affiliated with or endorsed by Roblox Corporation. Roblox is a trademark of Roblox Corporation.
Studsmith is an open-source browser app built with Publik. Try the hosted builder. The Publik listing has an Open directly button to the hosted app. Source: jibberswrld/studsmith.
Three project-owned skills are loaded into every design, build, review, and repair request. The model applies them to the actual idea; there is no genre keyword router.
The Game plan records audience, hook, retention, proposed offers, their free alternatives and setup requirements, metrics, and launch experiments. It travels with the JSON backup and source ZIP. Paid offers are proposals; the offline export never invents product IDs or activates real purchases. Every build uses 3–7 AI calls and the selected provider's balance.
Projects, saved revisions, and unsaved script recovery stay in this browser. Workspaces are separated by the signed-in Publik account. Clearing site data removes those local copies. After the first save Studsmith calls navigator.storage.persist() and shows a dismissible reminder to download a backup. Download a JSON backup to move a project to another browser or device; automatic cloud sync is not included.
Visitor-facing privacy and terms pages live at /privacy and /terms. Keep them accurate when you change what the code sends or stores.
Each visitor gets a separate Publik install, created only when they click Sign in (opening the gate creates nothing), and encrypted, HttpOnly, SameSite session cookie. Install keys and own-provider keys are not exposed to JavaScript or stored in a shared server credential file. The server is stateless: only generation and account checks run there. Requests check the exact configured or platform-owned origin, and every AI request verifies the visitor's claimed Publik install.
Prompts and current project source go to the selected AI provider. Publik receives usage events without project content. Operators can set DO_NOT_TRACK=1 or PUBLIK_TELEMETRY=off on the server to disable usage telemetry. A 402 shows the provider's message and its single top-up link. Publik builds are refused before any AI call when the wallet balance (which includes plan money left this month) is under the $1 estimate.
The hosted own-key option supports https://api.openai.com/v1. Source installs can use other OpenAI-compatible HTTPS providers or a provider on loopback. Hosted requests cannot proxy to arbitrary internal destinations, and provider redirects are rejected.

.rbxlx, no plugin required.world.rbxmx, default.project.json, src/, game instructions, and studsmith.json.The hierarchy is the same in both Studio and Rojo exports:
Workspace.World
ServerScriptService.Server
StarterPlayer.StarterPlayerScripts.Client
ReplicatedStorage.Shared
With Rojo installed, unzip the source bundle and run:
rojo build default.project.json -o game.rbxlx
rojo serve
Live sync needs the Rojo Studio plugin. Opening the native place does not.
Requires Node.js 22+ and pnpm.
pnpm install
pnpm build
pnpm start
Open http://127.0.0.1:3018. Development: pnpm dev.
The public, app-scoped publik-app-token.txt is intentionally distributed with the source. Never copy private install keys or another app's credentials into this repo. PUBLIK_APP_TOKEN can override the public token. publik-balanced and publik-smart are the only generation models sent to Publik.
Set a private STUDSMITH_SESSION_SECRET of at least 32 random characters for stable sessions. Without one, a local source run uses an ephemeral process key and visitors must reconnect after restart. Hosted Vercel deployments require the secret and use Secure cookies. Vercel's exact deployment, branch, and production domains are recognized from system environment variables. STUDSMITH_APP_ORIGIN adds a comma-separated list of exact origins (no paths or wildcards), for example https://studsmith-jibberswrlds-projects.vercel.app,https://your-domain.example; set it for extra Vercel aliases or another hosting provider.
Next.js output tracing includes the design skills and public app token. No database is required. The app must never use one shared Publik install or a server-global AI choice for all visitors.
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm test:integration
CI (.github/workflows/ci.yml) runs all five on pull requests and pushes to main.
The tests cover no Publik install before Sign in, the low-balance gate and pre-flight 402, auth before body parsing, streamed stage events, drafts after late failures and deadline reserve, the origin allow-list, the committed example, browser workspace isolation, revision conflicts, XML/ZIP safety, Rojo builds when installed, separate encrypted visitor sessions, sign-in/plan gates, model stages and skill loading, repair/rejection, 402s, tampered cookies, cross-origin requests, telemetry, and the built-app self-test. The fixture does not make live paid AI calls or prove generated-game quality.
PUBLIK_SELF_TEST=1 pnpm start prints publik self-test: ok studsmith 0.1.0 only after the built app provisions an app-scoped install and receives a valid wallet response. This uses Publik's standard credential file only for that command. A wallet self-test is not an AI generation test.
POST /api/generate checks the session before reading the body. Auth, body, and balance errors return JSON with an HTTP status. Once a build starts the response is newline-delimited JSON (application/x-ndjson): stage events (design, build, review, repair, each started/finished with an attempt number), a ping every 15 seconds, then exactly one result ({ game, draft }, where draft is null or { reason, findings, topUpUrl }) or error line. All AI calls share a 480-second budget inside the route's 540-second maxDuration; another repair starts only if a repair and its review, timed from this run, can still finish. While a build runs the browser warns before leaving and requests a screen wake lock where supported. When the visitor disconnects, the stream's cancel() aborts the remaining AI stages; on Vercel, vercel.json also opts this route into request cancellation (supportsCancellation) so request.signal fires and the function ends. The browser stops reading at the final result/error line, so a reset after it can't lose the game. Draft status is stored per revision (needsReview), survives script saves and restores, and clears only when a build passes the AI check.
For manual fixture testing, run pnpm mock:publik and start the app in another terminal with:
PUBLIK_ORIGIN=http://127.0.0.1:4556 \
PUBLIK_APP_TOKEN=pat_studsmith_test \
STUDSMITH_SESSION_SECRET=local-fixture-session-secret-not-for-hosting \
pnpm start
The fixture logs every request it receives (fixture: POST /api/v1/installs) and exposes them at GET /mock/state. Its claimed wallet starts at $0.05 with no plan, like a new Publik account; opening its top-up link (/wallet) adds an $8 test plan, and POST /mock/wallet {"balance_micros":…,"kind":"plan"} sets any balance. POST /mock/mode {"mode":…,"delayMs":…} selects ok, 402, 402-<stage>, length-<stage>, invalid, repair, repair-twice, or reject, and slows every AI stage by delayMs. STUDSMITH_GENERATION_BUDGET_MS shortens the generation budget for tests (it can never exceed 480 seconds).
The fixture workspace is explicitly labeled. Its deterministic Cloudstep project exists only for testing, not as a user-facing demonstration of AI output.
Initial worlds support up to 500 primitive parts. Luau can create additional gameplay, UI, and procedural objects at runtime. Arbitrary generated projects require Studio playtesting. Marketplace asset imports, live purchases, persistent online progress, automatic game publishing, and a direct Studio plugin bridge are not included.
MIT license. References: Publik module, Rojo format, rbx-dom XML format.