Skip to content

Open source CapCut alternative.

TypeScript

Update donkey vision page

David Leb5269c5eb039
diff --git a/site/src/app/donkeyvision/ApiSection.tsx b/site/src/app/donkeyvision/ApiSection.tsx
index 6fbc71a3..64e3c048 100644
--- a/site/src/app/donkeyvision/ApiSection.tsx
+++ b/site/src/app/donkeyvision/ApiSection.tsx
@@ -3,8 +3,6 @@ import { ArrowDown, Braces } from "lucide-react";
import {
elementResponseExample,
features,
- groundingRequestExample,
- groundingResponseExample,
requestExample,
} from "@/app/donkeyvision/data";
import type { Feature } from "@/app/donkeyvision/types";
@@ -37,14 +35,13 @@ export function ApiSection() {
<div className="grid gap-10 lg:grid-cols-[0.85fr_1.15fr]">
<div className="min-w-0">
<h2 className="max-w-2xl text-4xl font-semibold leading-none md:text-6xl">
- One endpoint, two jobs.
+ One endpoint, one job.
</h2>
<p className="mt-6 max-w-2xl text-lg leading-8 text-[#454545]">
- Every request detects UI elements and returns IDs, labels, boxes,
- center points, and interactivity. Add an instruction and a second
- stage runs: the LLM sees only that compact element catalog and picks
- the best target. Coordinates always come from the parser, never the
- model.
+ Send a screenshot and every request returns the same compact
+ element catalog: IDs, labels, kinds, boxes, center points, and
+ interactivity flags. Coordinates come straight from the parser, in
+ the image space you sent.
</p>
<div className="mt-8 grid gap-4">
{features.map((feature) => (
@@ -54,21 +51,13 @@ export function ApiSection() {
</div>
<div className="grid min-w-0 gap-8">
<ExamplePair
- badge="Job 1"
+ badge="Parse"
caption="Detect every interactable element."
request={requestExample}
requestTitle="Request"
response={elementResponseExample}
responseTitle="Response"
/>
- <ExamplePair
- badge="Job 2"
- caption="Ground an instruction to one target."
- request={groundingRequestExample}
- requestTitle="Request"
- response={groundingResponseExample}
- responseTitle="Response"
- />
</div>
</div>
</div>
diff --git a/site/src/app/donkeyvision/HeroSection.tsx b/site/src/app/donkeyvision/HeroSection.tsx
index c732649e..683bd582 100644
--- a/site/src/app/donkeyvision/HeroSection.tsx
+++ b/site/src/app/donkeyvision/HeroSection.tsx
@@ -14,9 +14,8 @@ export function HeroSection() {
<p className="mt-7 max-w-2xl break-words text-lg leading-8 text-[#454545] md:text-xl">
Donkey Vision finds every interactable element in a screenshot —
buttons, icons, inputs, rows — and returns each one&rsquo;s box, center
- point, and label. Add an instruction like &ldquo;find the next
- button&rdquo; and it grounds to a single target. It reads pixels, so it
- works on software that exposes no API at all.
+ point, and label. It reads pixels, so it works on software that exposes
+ no API at all.
</p>
<div className="mt-9 flex max-w-full flex-wrap gap-3">
<ContactSalesButton
diff --git a/site/src/app/donkeyvision/ProofSection.tsx b/site/src/app/donkeyvision/ProofSection.tsx
index b230770f..8367053b 100644
--- a/site/src/app/donkeyvision/ProofSection.tsx
+++ b/site/src/app/donkeyvision/ProofSection.tsx
@@ -38,9 +38,9 @@ export function ProofSection() {
})}
</div>
<p className="mt-8 max-w-3xl text-sm leading-6 text-[#0F0E0D]/60">
- These are planning estimates for normal screenshot sizes. Large images,
- queueing, and the grounding step add time. For high-volume usage we tune
- the endpoint to your target latency.
+ These are measured averages for normal screenshot sizes. Large images
+ and queueing add time. For high-volume usage we tune the endpoint to
+ your target latency.
</p>
</section>
);
diff --git a/site/src/app/donkeyvision/UseCasesSection.tsx b/site/src/app/donkeyvision/UseCasesSection.tsx
index e232b40f..1b00a4b3 100644
--- a/site/src/app/donkeyvision/UseCasesSection.tsx
+++ b/site/src/app/donkeyvision/UseCasesSection.tsx
@@ -16,8 +16,7 @@ export function UseCasesSection() {
</div>
<p className="max-w-lg text-lg leading-8 text-[#454545]">
Send a screenshot from any application and get back a structured UI
- map. Add an instruction when your product needs one target instead of
- the full element list.
+ map your own agents and tools can reason over.
</p>
</div>
<div className="grid gap-5 md:grid-cols-2 lg:grid-cols-4">
diff --git a/site/src/app/donkeyvision/VisionPreview.tsx b/site/src/app/donkeyvision/VisionPreview.tsx
index 24c06eab..74ded45d 100644
--- a/site/src/app/donkeyvision/VisionPreview.tsx
+++ b/site/src/app/donkeyvision/VisionPreview.tsx
@@ -56,8 +56,8 @@ export function VisionPreview() {
<DetectionRow color="bg-[#F2B5C4]" label="search field" value="424, 112" />
</div>
<div className="mt-4 break-all rounded-md border-2 border-[#0F0E0D] bg-[#0F0E0D] p-3 font-mono text-xs leading-6 text-white">
- {`target: "find the next button"`}<br />
- {`provider_payload: ["n8x2p0", "Next", "button"]`}
+ {`element: { id: "n8x2p0", label: "Next" }`}<br />
+ {`box: [1248, 820, 84, 40] point: [1290, 840]`}
</div>
</div>
</div>
diff --git a/site/src/app/donkeyvision/data.ts b/site/src/app/donkeyvision/data.ts
index bc0c439e..a0ba74b8 100644
--- a/site/src/app/donkeyvision/data.ts
+++ b/site/src/app/donkeyvision/data.ts
@@ -3,8 +3,8 @@ import {
Crosshair,
ImageIcon,
ListChecks,
- LockKeyhole,
Monitor,
+ SlidersHorizontal,
Video,
Zap,
} from "lucide-react";
@@ -13,15 +13,10 @@ import type { Feature, Stat } from "@/app/donkeyvision/types";
export const stats: Stat[] = [
{
- eyebrow: "Full parse",
- label: "Typical time to detect and return every element in a screenshot.",
- value: "~600ms",
- },
- {
- eyebrow: "Parse + ground",
+ eyebrow: "End to end",
label:
- "Typical time to detect, then ground a natural-language instruction to one target.",
- value: "~1.2s",
+ "Typical time from request to response for a full screenshot parse, per image.",
+ value: "~0.5s",
},
];
@@ -34,9 +29,9 @@ export const features: Feature[] = [
},
{
description:
- "Ask for the play button, next button, search field, or any visible target. The LLM chooses from parsed element IDs.",
+ "Each element comes back with a pixel-space bounding box and a center point, ready to click without any coordinate conversion.",
icon: Crosshair,
- title: "Optional target grounding",
+ title: "Click-ready coordinates",
},
{
description:
@@ -46,9 +41,9 @@ export const features: Feature[] = [
},
{
description:
- "LLM inference receives detected IDs, labels, kinds, and interactivity flags. The screenshot and raw page content stay out of the grounding prompt.",
- icon: LockKeyhole,
- title: "Small LLM payloads",
+ "Tune box and IoU thresholds per request to control detection sensitivity and how aggressively overlapping elements are merged.",
+ icon: SlidersHorizontal,
+ title: "Tunable detection",
},
];
@@ -90,7 +85,6 @@ export const surfaces: string[] = [
export const requestExample = `{
"image": "<base64 png/jpeg/webp screenshot>",
- "returnElements": true,
"options": {
"boxThreshold": 0.05,
"iouThreshold": 0.1
@@ -111,24 +105,3 @@ export const elementResponseExample = `{
}
]
}`;
-
-export const groundingRequestExample = `{
- "image": "<base64 screenshot>",
- "instruction": "find the next button",
- "model": "gemini-2.5-flash",
- "returnElements": false
-}`;
-
-export const groundingResponseExample = `{
- "image": { "width": 1440, "height": 900 },
- "model": "gemini-2.5-flash",
- "target": {
- "elementId": "n8x2p0",
- "label": "Next",
- "kind": "button",
- "box": { "x": 1248, "y": 820, "width": 84, "height": 40 },
- "point": { "x": 1290, "y": 840 },
- "confidence": 0.86
- },
- "alternates": []
-}`;
diff --git a/site/src/app/donkeyvision/page.tsx b/site/src/app/donkeyvision/page.tsx
index 963d99fa..ac416b60 100644
--- a/site/src/app/donkeyvision/page.tsx
+++ b/site/src/app/donkeyvision/page.tsx
@@ -14,7 +14,7 @@ export const dynamic = "force-static";
export const metadata: Metadata = {
title: "Donkey Vision | Donkey",
description:
- "A low-latency API for detecting interactable UI elements in screenshots and grounding natural-language UI requests.",
+ "A low-latency API for detecting interactable UI elements in screenshots, with boxes, center points, and labels.",
};
export default function DonkeyVisionPage() {