Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

typebulb

Latest version: v0.64.6

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: typebulb
2 Stars
0 Forks
67 Versions
2.5K Downloads
TypeScript Repo language

Scan summary

typebulb was last scanned on 23 Nov 2026 at version 0.64.6. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 67 versions; the latest 5 were published within 2 days (22 and 23 Nov 2026).
  • Findings: No rules fired in version 0.64.6.
  • Downloads: 2,532 downloads.

Versions

67 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.64.6 LATEST 23 Nov 2026 No rules fired
0.64.5 23 Nov 2026 No rules fired
0.64.4 22 Nov 2026 No rules fired
0.64.3 22 Nov 2026 Not shown
0.64.2 22 Nov 2026 Not shown

No rules fired in 0.64.6

Findings

Findings for v0.64.6. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.64.6; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

typebulb

Typebulb runs apps in markdown files called bulbs. Perfect for tools, visualizations & experiments. A bulb is a single self-contained file, so an agent can inline a working app right into its reply, and the same file can be published as a stand-alone web app. The "markdown with code blocks" format is one LLMs find natural to write.

Two ways to create and run bulbs:

  • typebulb CLI: Lets a coding agent (Claude Code, Codex, or Pi) build and run bulbs locally. Local bulbs can also call Node.js via a secure bridge.
  • typebulb.com: Share and publish bulbs. Also the quickest way to test AI models (BYOK) with zero setup. See FAQ.

One API runs everywhere: the same bulb works locally and in typebulb.com's sandbox, and can call AI models at runtime.

This document is dedicated to the typebulb CLI. At its core, it compiles and serves hot-reloadable bulbs locally. A .bulb.md file bundles code, styles, data, and config in one file.

This document doubles as a skill: it is written so an LLM agent can read it and successfully write and run bulbs with the typebulb CLI.

Features

  • Server-side code — Add a **server.ts** section; exported functions become callable from the browser via tb.server.<name>() (e.g., export async function query(...) → await tb.server.query(...)). An export async function* streams: consume it with for await (const chunk of tb.server.gen()). Requires --trust.
  • CLI logging — tb.log(...) prints to the CLI's stdout, from code.tsx and server.ts alike (no trust needed)
  • Wake-on-event — typebulb wait <file|agent> blocks until the target server logs a new line, prints it, and exits. Run in the background, that exit is an agent's wake-up: a user action a bulb logs, or an inline bulb's render outcome — no polling.
  • Env files — .env / .env.local load from cwd, .env.local overriding .env (an exported shell var wins over both). --mode <name> adds .env.<name> to switch environments (local/staging/prod); a startup line reports which keys loaded from where.
  • Server mode — --server runs only the **server.ts** section in Node, skipping the web server. Bulbs with only **server.ts** (no **code.tsx**) use this mode automatically.
  • Type-check without running — typebulb check <file> runs tsc --noEmit against the bulb: non-zero exit with diagnostics on errors, a one-line all-clear on stderr on success.
  • Filesystem access — tb.fs.read() (UTF-8 text), tb.fs.readBytes() (raw Uint8Array), tb.fs.write() (text or bytes), tb.fs.list() (a folder's immediate children as { name, dir, mtime }), and tb.fs.remove() (a file, or a folder and its contents); relative paths land in the bulb's own folder, and nothing reaches outside it (../ throws). Requires --trust.
  • Hot reload — Recompiles on save and refreshes the browser (on by default; disable with --no-watch)
  • Package resolution — Client dependencies are automatically resolved by generating import maps (same resolver as typebulb.com). Server dependencies are automatically installed via npm.
  • Replace dependency — --replace <name>=<path> replaces a declared dependency with a local built package folder (browser-ready ESM, no external bare imports) instead of a CDN, for testing an unpublished build. Supplies both runtime bytes and types; applies to run and check. Under --watch the folder is watched and the browser reloads on rebuild (--no-watch freezes it). Dev-only; nothing is written to the bulb.
  • Local caching — Resolver metadata and CDN package bytes are cached under ~/.typebulb/cache/, so repeat runs don't re-hit the network and warm runs work offline.
  • tb.ai() — a bulb's own code calling AI providers at runtime (chatbots, agents, experiments). tb.models() lists available models. Set API keys in .env (see below). Requires --trust.
  • tb.infer() — one-shot runtime inference over the bulb's own blocks (infer.md + data.txt → insight.json), with a confirmation modal, streaming, and share/save of a good run. Requires --trust.
  • Restricted by default — A plain npx typebulb my-app.bulb.md runs with no filesystem or server.ts (like typebulb.com); --trust grants those for a run. Trust is remembered: typebulb trust <file> elevates a bulb once so later plain runs are trusted, untrust revokes it, and --no-trust forces a Restricted run.
  • Predict trust — typebulb predict <file> reports the capability a bulb will likely need (fs / AI / server.ts) without running it, so you can decide on --trust up front rather than after a mid-run permission failure.
  • Agent mirror — a browser view of your coding agent's sessions, rendering inline bulbs, KaTeX, and mermaid live in the conversation, plus runs/stops local bulbs and keeps a board of the questions an orchestrating agent asks the user. On Pi it also carries a prompt panel, so the user can drive their pi sessions from the mirror directly. typebulb agent brings it up, auto-detecting your harness (Claude Code, Codex, or Pi). Bulbs the agent runs open where the mirror is: in VS Code beside it, or in your browser.
  • Proxying Claude — the agent mirror lets you proxy Claude with a model from OpenRouter. This will apply to your project only.

Usage

typebulb [file.bulb.md]        Run a bulb (defaults to .bulb.md in cwd)
typebulb agent                 An agent's first command — auto-detects the harness, starts the mirror detached, prints its URL, exits 0
typebulb agent:{claude|codex|pi}  Open a named harness's mirror in the foreground — the explicit form, or to override auto-detect
typebulb call <file> <fn> […]  Invoke one server.ts export headlessly: prints its return as JSON to stdout, logs/errors to stderr (needs --trust)
typebulb send <file> [msg]     Push a message into a running bulb's page (its tb.onMessage handlers); the client-side twin of call, no --trust.
                               A '-' message reads it from stdin (like call --args -)
                               With --wait, a handler's non-undefined return prints on stdout (JSON; a bare string raw)
typebulb send <file> tb:snapshot  Print the live page's rendered outline (roles, names, visible text), headed by a viewport/content fit line
typebulb send <file> tb:rect …    Print a named control's rect ('tb:rect button "Pass"' → {x,y,width,height} + viewport)
typebulb send <file> tb:click …   Click a control by role+name ('tb:click button "Pass"'); the reply is a fresh snapshot
typebulb send <file> tb:set …     Set a form control ('tb:set combobox "level" = hard'), firing input+change
typebulb send <file> tb:png …     Save the live canvas as PNG, print its path (sole canvas needs no name; 'tb:png "<name>"' among several)
typebulb send <file> tb:theme …   Flip the page's theme for a probe ('tb:theme dark'; bare clears) — transient, never saved
typebulb get <file> <kind>     Print one block's content (data, insight, code, …) to stdout
typebulb put <file> <k>=<src>  Write a file's (or stdin's) content into a block, surgically
typebulb pull <url|file>       Fetch a bulb from typebulb.com into typebulbs/u/<user>/<slug>.bulb.md
typebulb push <file>           Upload a local bulb to typebulb.com as you (needs TYPEBULB_TOKEN in .env)
typebulb check [file.bulb.md]  Type-check a bulb without running it (exit 2 = no TypeScript installed)
typebulb predict [file]        Report the capability a bulb probably needs, without running it
typebulb models                List AI models for tb.ai, filtered by your .env API keys
typebulb slug <name>           Print the slug a title derives to — the filename to save the bulb as
typebulb logs [file|agent]     Print a running bulb's (or `agent` mirror's) captured console (no arg: list running servers; -f follow, -n N tail, --run latest|N for one reload's output, --clear to empty it)
typebulb wait [file|agent]     Block until the target logs a matching line, print it, exit — an agent's wake-up
                               (run it backgrounded; --match <substr> filters; exit 2 = gave up)
typebulb stop [file|pid|agent] Stop a running bulb or mirror (no arg: list this project's running servers)
typebulb stop --bulbs          Stop this project's bulbs; the agent mirror keeps running
typebulb stop --agent          Stop this project's agent mirror; its bulbs keep running
typebulb stop --global         Stop every running bulb and mirror, all projects (housekeeping)
typebulb restart [file|pid|agent] Relaunch running servers on this version, flags and port kept (no arg: this project's bulbs and mirror)
typebulb trust [file]          Remember a bulb as trusted (no arg: list trusted bulbs)
typebulb untrust <file>        Forget a bulb's trust (back to Restricted)
typebulb status [agent]        A sub-agent's status: what it waits on, its commands and files (no arg: the session's overview)
typebulb status --slow <dur>   When a call counts as slow for this session (default 3m)
typebulb babysit               Watch your session silently; a line wakes you when a sub-agent or the user's answer needs you (Claude Code: run it once, it stays on until the session ends; Codex: run it in the background, and again after each wake)
typebulb babysit --slow <dur>  When a call counts as slow for this session (default 3m)
typebulb --no-watch <file>     Disable hot reload
typebulb --no-open <file>      Open nothing at launch, not even inside VS Code
typebulb --mode <name> <file>  Also load .env.<name> on top of .env / .env.local
typebulb --trust <file>        Grant filesystem + AI + server.ts for this run (default: Restricted)
typebulb --no-trust <file>     Force Restricted even if the bulb is remembered-trusted
typebulb --server <file>       Run server.ts only, no web server (needs --trust)
typebulb --replace <name>=<path> Replace a dependency with a local build
typebulb --help                Show help
typebulb --version             Show version

Bulb Format

A bulb is a single markdown file — the minimum viable structure for a small app. Its named blocks hold the code, plus optional styles, data, and config. Every block except code.tsx is optional. Mechanically, each block is a **name** header on its own line followed by a fenced code block, and the file opens with YAML frontmatter (format: typebulb/v1, name:).

Block Purpose
**code.tsx** Required. App logic and UI (TypeScript/TSX).
**index.html** The mount container. Include it — nearly every bulb does (e.g. <div id="root"></div>). Only pure console apps omit it.
**styles.css** CSS.
**config.json** dependencies and a description.
**data.txt** Read-only data your code processes via tb.data(n) (raw string) / tb.json(n) (parsed) — JSON, CSV, XML, YAML, or plain text. Multiple chunks are separated by two blank lines.
**infer.md** / **insight.json** Runtime one-shot LLM call via tb.infer(): instructions + example output. tb.insight() reads the result. Requires --trust locally.
**notes.md** Persistent context for the AI assistant, carried across conversations and clones. Not run.
**server.ts** Node.js code; its exports become tb.server.<name>() in the browser. Mostly plain Node — log with console.log — but tb.fs and tb.ai/tb.ai.stream/tb.models are callable here too (under --trust). Local only.
Frontmatter and config
  • name: (frontmatter) is the bulb's title — a few words, not a sentence — and the file takes its slug: <slug>.bulb.md, in the project's typebulbs/ folder. The slug is derived, not chosen: Counter → counter.bulb.md is obvious, Rock & Roll → rock-and-roll is not, so run npx typebulb slug "<name>" rather than guess. Once pushed, that name is the bulb's URL.
  • description (in config.json) is the bulb's search-result blurb: what makes someone open it, read cold by someone who has never seen the bulb, so every reference must resolve inside the sentence. Keep it short; it truncates past ~160 chars.
Example
---
format: typebulb/v1
name: Counter
---

**code.tsx**

```tsx
import React, { useState } from "react"
import { createRoot } from "react-dom/client"

function App() {
  const [n, setN] = useState(0)
  return (
    <div className="card">
      <h1>Count: {n}</h1>
      <button onClick={() => setN(n + 1)}>increment</button>
    </div>
  )
}

createRoot(document.getElementById("root")!).render(<App />)
```

**index.html**

```html
<div id="root"></div>
```

**styles.css**

```css
.card {
  max-width: 360px;
  margin: 0 auto;          /* horizontal centering only */
  padding: 24px 16px;      /* vertical space as padding, never margin (see Sizing) */
  font: 14px system-ui, sans-serif;
  display: grid;
  gap: 12px;
  text-align: center;
}
h1 { font-size: 20px; margin: 0; }
button {
  font: inherit;
  padding: 6px 14px;
  border: 1px solid currentColor;   /* theme-aware: inherits light/dark */
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
```

**config.json**

```json
{
  "description": "A button that increments a counter.",
  "dependencies": {
    "react": "^19.2.7",
    "react-dom": "^19.2.7"
  }
}
```

Run it:

npx typebulb my-app.bulb.md

Or install globally:

npm install -g typebulb

The tb.* API

tb is a pre-declared global your code can use without importing. One access rule covers the whole table: the Needs trust rows are the privileged tier — locally they 403 until the run is trusted (--trust), and they are exactly the calls an inline bulb doesn't have at all (an inline bulb can never be trusted; the call throws "not available in an inline bulb"). Everything else works everywhere.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm typebulb

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229