Skip to content
publik.
Browse appsBrowsePricing
+Publish a repoPublish
Browse appsHow it worksPublish a repoGet helpPricingDevelopersGitHubPrivacy
© 2026 publik
← All apps

Studsmith

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

by @jabir

Studsmith interface

Before you start: Studsmith runs in your browser. There is nothing to install. To open what you build you need Roblox Studio, which is free. Signing in with publik is free. Each game build uses about $1 of AI, paid from a publik plan (from $8 a month) or your own OpenAI key. A new publik account's $0.05 of free use is not enough for a build. Your games are saved in your browser only, so download a backup to keep them. Studsmith is not affiliated with or endorsed by Roblox Corporation.

↗Open directly→◆Built on Publik APIBuild yours →

publik API is one option

  • AI chat & tools: Chat completions with tool calls, JSON schemas and images, priced per tier in dollars.
  • By default, Studsmith still runs on your machine, unless you pick the cloud option.
  • Choosing it needs no key to paste. Link your publik account and start the 7-day free trial to try it.
  • Then Studsmith pays publik's published price per use, and your own key still works.
How pricing works →
Vote on Studsmith
0
Read the install guide→Open in GitHub↗

Compared with

M

Manual Roblox scripting

Paid

Make this yours→Fork Studsmith, change it, publish your version. About 30 minutes. No experience needed.

Having trouble? Tell us

Where Studsmith’s AI runs, and what it costs

Prices are for one typical use: one request of about 1,500 words sent and 375 words back. A higher quality score is better.

On your computer

Not checked yet: publik has not read whether Studsmith can run its AI on your computer.

publik API

Price
$0.0180 per use, $18.00 per 1,000 usespublik-smart, the level Studsmith uses most
Quality
GPT-6 Sol: 48
Setup
Built in. No key to paste; link your publik account and start the 7-day free trial to try it.

Your own key

Price
$0.0090 per use, $9.00 per 1,000 usesGPT-6 Sol at OpenRouter’s list price, before its fee for buying usage
Quality
GPT-6 Sol: 48
Setup
Open a provider account, add a card, paste the key into Studsmith.

Quality and price, side by side

Quality score and cost per 1,000 typical uses for local models and the three publik API levels
ModelQualityPer 1,000 uses
On your computer (Ollama, 4-bit download size)
Granite 4.2 3B2.2 GB9$0
Phi-4 Mini2.5 GB6$0
Llama 3.1 8B4.9 GB7$0
gpt-oss 20B14 GB9$0
Gemma 4 31B20 GB19*$0
Qwen3.5 35B-A3B24 GB19*$0
publik API
publik-fastGLM-5.3 Flash42$1.00
publik-balancedMiMo-V2.6-Pro46$10.00
publik-smartGPT-6 Sol · Studsmith48$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.

What you pay for

  • On your computer: nothing per use. You pay in disk space, memory and electricity, at lower quality.
  • publik API: publik’s published price for each use, in dollars, from your publik balance. It is above the model’s cost; the difference runs publik and pays the app’s builder.
  • Your own key: the provider’s price, billed to an account you keep with the provider.
Install Studsmith: publik API is built in →How publik API pricing works →

How to install Studsmith

Every step written out. No terminal experience needed. Pick your setup.

  • How to install Studsmith on Mac →
  • How to install Studsmith on Windows →

README

Open in GitHub ↗

Studsmith workspace showing Lantern Run, a 77-part lantern-lit village, in the 3D scene preview with the part inspector open on the clock tower spire

Studsmith

Studsmith

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.

Design skills

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.

  • Gameplay: audience, hook, core loop, onboarding, progression, replay, and mobile/social play.
  • Worldcraft: authored environments, recognizable landmarks, primitive-based architecture, traversal, readable hazards, and performance.
  • Economy and growth: currencies, retention, offers with clear player value, pricing and receipt requirements, discovery experiments, and defined metrics.

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.

Storage and privacy

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.

Exports

The Export tab: three steps from download to pressing Play, a Download Studio place button, and Rojo source ZIP and project backup downloads

  • Studio place: the map and scripts in one .rbxlx, no plugin required.
  • Rojo source ZIP: the place, world.rbxmx, default.project.json, src/, game instructions, and studsmith.json.
  • JSON backup: the current game and commercial plan, without revision history. Import it to continue elsewhere.

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.

Run from source

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.

Verify

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.

Generation stream

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.

Scope

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.