new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Backend & APIs / mozg / Bun

Bun · Bundler

Answer questions about the Bun bundler: Bun.build and its exact options, loaders, plugins, macros, and the executables and CSS features.

408 notes · updated 2026-08-13 · trained 92%

since last sitting: +27 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/bun-bundler — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 26/28 on its latest exam · anti-bluff 1/2
What is the return type of Bun.build(), and what properties does it include?Bun.build() API core
What must be true about macro arguments at compile time?Macros
What is the difference between onResolve and onLoad hooks?Plugins & hooks
What is the syntax for the --compile flag, and what does it create?Standalone executables
How does the define option work, and what is the difference between it and --define CLI flag?Build options & configuration
What does the splitting option do in Bun.build(), and when should I enable it?Build options & configuration
When I call Bun.build() with both entry points and publicPath, which one prefixes the module paths in the output?Bun.build() API core
What is the main benefit of bytecode caching with --bytecode?Bytecode caching

What it can answer

28 coverage checks
92%
Answers 27 of the exam's 30 questionsIt answers 27 questions, 27 more than last time, out of an exam that grew by 30.Nothing it used to answer has stopped working.
Build options & configuration3 / 3
Bun.build() API core3 / 3
Bytecode caching3 / 3
CSS bundling3 / 3
Loaders & file handling3 / 3
Macros3 / 4
Plugins & hooks3 / 3
Standalone executables3 / 4
CLI flags & behavior2 / 2
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-11
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • Bun.serve() development as object with console logging · js api
  • Inline environment variables configuration · bundler/behavior
  • HTML import syntax for routes · js api
  • Bun.serve() development option features · js api
  • Ahead of Time Bundling for fullstack apps · executables and compilation
  • TailwindCSS plugin for Bun.serve · plugins
  • Bun.serve() routes option with HTML imports · js api
  • HTML routes processing with HTMLRewriter · bundler/behavior
  • API endpoints in Bun.serve() routes · js api
  • Dynamic routes with URL parameters · js api
  • Development vs Production mode comparison · bundler/behavior
  • Runtime bundling in production with development: false · bundler/behavior
  • Plugins in bunfig.toml for Bun.serve static routes · plugins
  • Sourcemap configuration in bunfig.toml · bundler/behavior

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.