import { MorphClient } from '@morphllm/morphsdk'Morph Glance
Videos of AI testing your PR, embedded in GitHub
Glance figures out what to test. Video recordings, screenshots, and error logs embedded in your PRs. Free for open source.
Morph Glance
Built to be the best at
testing code changes
Diff-powered testing
Reads your PR diff and determines what to test. No manual test scripts, no guesswork.
01
02
03
const morph = new MorphClient({ apiKey })04
05
// Give it your diff and staging URL06
const task = await morph.browser.createTask({07
diff: prDiff,08
url: 'https://staging.myapp.com',09
recordVideo: true,10
maxSteps: 30,11
})12
13
// Poll for completion14
const recording = await morph.browser.getRecording(task.recordingId)15
const webp = await recording.getWebp()Videos, in your PRs
MP4/WebM recordings, animated WebPs, screenshots, console errors, and network logs.
Tag @morph in any PR
Comment @morph or @glance on a pull request to trigger a test. Describe what to test in plain English and get results posted back to the PR.
01
// In any PR comment:02
@morph test the checkout flow on this preview03
04
// Morph reads the diff, runs the test,05
// and posts a video recording back to your PR.BYO browser support
Managed browsers or bring your own (Playwright, Puppeteer, Browserbase). You control the execution.
https://example.com/test-page
browser-use
https://example.com/checkout
browser-base
https://example.com/dashboard
playwright