Examples

Copy-paste curl, CLI, and Node snippets — all of them actually run against production.


Every command below has been run against the live environment. Swap example.com for your own page.

Run all five checks from the CLI

npx devassist-cli check https://example.com

Output looks like this:

Checking https://example.com
Checks: site-stability, site-validator, performance, wcag, computer-use

Site Stability   task=1a2b3c4d… 
  97/100  A  critical 0 · serious 1 · moderate 0

...

Done 5/5 · 42s
Average 93/100  (Stability:97  Validator:100  Performance:88  WCAG:97  Usability:84)
Use --detail for per-section breakdown

WCAG only, with fix suggestions printed:

npx devassist-cli check https://example.com -t wcag -d

One WCAG check with curl

# 1. Dispatch, grab the taskId
TASK=$(curl -s -X POST https://dev.solokit.run/api/sandbox/dispatch \
  -H "Content-Type: application/json" \
  -d '{"type":"wcag","url":"https://example.com","options":{"aiCommentary":true}}' \
  | python3 -c 'import sys,json;print(json.load(sys.stdin)["taskId"])')

echo "task=$TASK"

# 2. Poll until terminal
while :; do
  R=$(curl -s "https://dev.solokit.run/api/sandbox/tasks/$TASK")
  S=$(echo "$R" | python3 -c 'import sys,json;print(json.load(sys.stdin)["status"])')
  case "$S" in done|failed|timeout) break;; esac
  sleep 3
done

# 3. Print just score and grade
echo "$R" | python3 -c 'import sys,json;r=json.load(sys.stdin)["result"]["report"];print(r["score"], r["grade"])'

Run five in parallel, then merge

The five checks are independent — running them sequentially wastes time. Dispatch in parallel with &:

BASE=https://dev.solokit.run
URL=https://example.com

for T in site-stability site-validator performance wcag computer-use; do
  curl -s -X POST "$BASE/api/sandbox/dispatch" \
    -H "Content-Type: application/json" \
    -d "{\"type\":\"$T\",\"url\":\"$URL\"}" \
    | python3 -c "import sys,json;print('$T', json.load(sys.stdin)['taskId'])" >> /tmp/tasks.txt &
done
wait
cat /tmp/tasks.txt

Poll each taskId to completion, extract score / grade / issues from result.report, then POST them to /api/checkup/report for a weighted total, priority fix list, and AI commentary (see Developer Guide).

Site Tone

npx devassist-cli tone https://example.com -t developer-tool

Or via the API (synchronous, one request):

curl -s -X POST https://dev.solokit.run/api/agent/site-tone \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com","siteType":"developer-tool","locale":"en"}' \
  | python3 -m json.tool | head -40

The cursorPrompt field in the response is the paste-ready prompt.

A natural-language E2E run

npx devassist-cli e2e https://example.com "open home, click the first button, confirm no errors" --steps 8

Add --json for structured output — handy for scripting pass/fail.

Node: polling wrapper

const BASE = "https://dev.solokit.run";
const KEY = process.env.DEVASSIST_KEY; // starts with dav_, optional

const headers = { "Content-Type": "application/json", ...(KEY ? { Authorization: `Bearer ${KEY}` } : {}) };

async function check(type, url) {
  const r = await fetch(`${BASE}/api/sandbox/dispatch`, {
    method: "POST",
    headers,
    body: JSON.stringify({ type, url }),
  });
  if (!r.ok) throw new Error(`dispatch ${r.status}: ${await r.text()}`);
  const { taskId } = await r.json();

  for (let i = 0; i < 60; i++) {
    await new Promise((res) => setTimeout(res, 3000));
    const t = await (await fetch(`${BASE}/api/sandbox/tasks/${taskId}`)).json();
    if (t.status === "done") return t.result.report;
    if (t.status === "failed" || t.status === "timeout") throw new Error(t.status);
  }
  throw new Error("poll timeout");
}

const report = await check("wcag", "https://example.com");
console.log(report.score, report.grade, report.issues?.length ?? 0);

Turn a report into a Cursor brief

Every issue carries howToFix. The cheapest workflow: stitch the priority fixes into one paragraph together with the file path and drop it into Cursor:

Fix /app/page.tsx based on the checkup below. Go item by item; don't redesign.

1. [serious] Button text contrast too low — darken the foreground below #595959
2. [moderate] Images missing alt — use alt="" for decorative, describe content images
3. [minor] Missing lang attribute — add lang="en" to the html tag

Far more effective than "please improve accessibility".

Next