Quick Start
Prerequisites
- Node.js 20+ — check with
node -v - VS Code (or Cursor / VSCodium)
Install from the VS Code Marketplace or download a VSIX for editor forks.
Option A: Scratch Mode (zero config)

No project, no dependencies, no setup. Perfect for trying Glubean for the first time.
- Create any file ending in
.test.js(e.g.demo.test.js). - Type
gb-scratchand press Tab to expand the snippet — it generates a complete test with import, HTTP request, and assertions. - Click the Play button in the gutter next to
test(.
The extension detects you are outside a Glubean project and runs in Scratch Mode automatically. A one-time notification confirms: “Running in scratch mode — great for trying things out!”
Why
.test.jsand not.test.ts? Scratch Mode skips TypeScript compilation to stay zero-config. Use.test.jsfor scratch files. In a full project,.test.tsworks normally.
Option B: Clone the Cookbook (recommended)
The fastest way to see the full picture — 23 real test files covering every feature.
git clone https://github.com/glubean/cookbook.git
cd cookbook
npm installOpen any file in explore/ or tests/, click Play, and explore. This is the best way to learn Glubean patterns before building your own project.
Option C: Project Mode
For new projects with environment variables, shared config, and CI integration.
mkdir my-project && cd my-project
npx glubean initThis creates:
my-project/
├── explore/ # API collection — pick one case, run it (replaces Postman)
├── tests/ # regression suite — CI runs all cases every time
├── data/ # shared test data (JSON/YAML/CSV) — used by both explore/ and tests/
├── .env # environment variables
├── .env.secrets # sensitive values (gitignored)
└── package.json # scripts and @glubean/sdk dependencyOpen the generated *.test.ts file and click Play in the gutter. The Result Viewer opens beside your code with the full trace.
You can also run Glubean: Initialize Project from the Command Palette (Cmd+Shift+P) to scaffold into the current workspace.
What’s next?
- Writing Tests — Snippets, CodeLens, data-driven patterns
- Running Tests — All the ways to run tests from the editor
- Result Viewer — Understand traces, assertions, and history
- Generate Tests with AI — One sentence to a working test