Open source CapCut alternative.
TypeScript
feat(site): add eval-backed use-cases library route
David Lea17507ede9ac
diff --git a/site/public/use-cases/artifacts/donkeyuse.md b/site/public/use-cases/artifacts/donkeyuse.mdnew file mode 100644index 00000000..1de0a2cd--- /dev/null+++ b/site/public/use-cases/artifacts/donkeyuse.md@@ -0,0 +1,18 @@+# Donkey++Your Mac, on autopilot.++## What it is++Donkey is a general-purpose desktop agent for macOS. Describe a task in plain language and it drives your apps, runs shell workflows, edits media, fills PDFs, and browses the web to get it done.++## Features++- Drives any app through accessibility and vision+- Media: download, trim, transcribe, and subtitle video+- Documents: fill PDF forms, convert images, crunch spreadsheets+- Web: search, scrape to markdown, and run multi-step flows++## Pricing++Free during the open beta.diff --git a/site/public/use-cases/artifacts/expenses.csv b/site/public/use-cases/artifacts/expenses.csvnew file mode 100644index 00000000..d40994ac--- /dev/null+++ b/site/public/use-cases/artifacts/expenses.csv@@ -0,0 +1,4 @@+date,merchant,category,total+2024-11-02,Blue Bottle Coffee,meals,18.40+2024-11-05,Uber,travel,32.10+2024-11-09,Office Depot,supplies,64.75diff --git a/site/public/use-cases/artifacts/q3-figures.txt b/site/public/use-cases/artifacts/q3-figures.txtnew file mode 100644index 00000000..c725fd5e--- /dev/null+++ b/site/public/use-cases/artifacts/q3-figures.txt@@ -0,0 +1,9 @@+Q3 REGIONAL FIGURES++Region Revenue Growth Churn+West 4,820,000 12.4% 1.8%+East 3,610,000 8.1% 2.3%+North 2,990,000 15.2% 1.1%+South 2,140,000 4.7% 3.0%++Totals: Revenue 13,560,000; blended growth 10.1%.diff --git a/site/public/use-cases/artifacts/sales.csv b/site/public/use-cases/artifacts/sales.csvnew file mode 100644index 00000000..f9be2b78--- /dev/null+++ b/site/public/use-cases/artifacts/sales.csv@@ -0,0 +1,19 @@+date,region,product,units,revenue+2024-01-08,West,Widget,120,3600+2024-01-22,East,Gadget,80,5200+2024-02-03,West,Widget,140,4200+2024-02-19,North,Gadget,60,3900+2024-03-11,East,Widget,200,6000+2024-03-27,South,Doohickey,45,2925+2024-04-09,West,Gadget,90,5850+2024-04-25,North,Widget,160,4800+2024-05-14,East,Doohickey,70,4550+2024-06-02,South,Widget,110,3300+2024-06-21,West,Gadget,130,8450+2024-07-07,North,Widget,175,5250+2024-08-18,East,Gadget,95,6175+2024-09-05,South,Doohickey,55,3575+2024-10-29,West,Widget,210,6300+2024-11-16,North,Gadget,120,7800+2024-12-09,East,Widget,240,7200+2024-12-23,South,Gadget,150,9750diff --git a/site/src/app/use-cases/[slug]/page.tsx b/site/src/app/use-cases/[slug]/page.tsxnew file mode 100644index 00000000..89e3de19--- /dev/null+++ b/site/src/app/use-cases/[slug]/page.tsx@@ -0,0 +1,285 @@+import type { Metadata } from "next";+import Image from "next/image";+import Link from "next/link";+import { notFound } from "next/navigation";+import { ArrowLeft, ArrowRight, Download, Play } from "lucide-react";++import { Footer } from "@/app/_components/landing/Footer";+import {+ Headline,+ PillButton,+ SectionLabel,+ TapedCard,+} from "@/app/_components/landing/LandingPrimitives";+import { TopNav } from "@/app/_components/landing/TopNav";+import { getUseCase, useCases } from "@/app/use-cases/useCases";++export const dynamic = "force-static";++type Params = {+ slug: string;+};++type PageProps = {+ params: Promise<Params>;+};++export function generateStaticParams() {+ return useCases.map((useCase) => ({ slug: useCase.slug }));+}++export async function generateMetadata({+ params,+}: PageProps): Promise<Metadata> {+ const { slug } = await params;+ const useCase = getUseCase(slug);++ if (!useCase) {+ return {+ title: "Use Case Not Found | Donkey",+ };+ }++ return {+ title: `${useCase.title} | Donkey Use Cases`,+ description: useCase.description,+ keywords: useCase.keywords,+ alternates: {+ canonical: `https://donkeyuse.com/use-cases/${useCase.slug}`,+ },+ openGraph: {+ type: "article",+ url: `https://donkeyuse.com/use-cases/${useCase.slug}`,+ siteName: "Donkey",+ title: `${useCase.title} | Donkey Use Cases`,+ description: useCase.description,+ },+ twitter: {+ card: "summary_large_image",+ title: `${useCase.title} | Donkey Use Cases`,+ description: useCase.description,+ },+ };+}++export default async function UseCasePage({ params }: PageProps) {+ const { slug } = await params;+ const useCase = getUseCase(slug);++ if (!useCase) {+ notFound();+ }++ const Icon = useCase.icon;+ const structuredData = {+ "@context": "https://schema.org",+ "@type": "Article",+ headline: useCase.title,+ url: `https://donkeyuse.com/use-cases/${useCase.slug}`,+ description: useCase.description,+ about: useCase.keywords,+ isPartOf: {+ "@type": "CollectionPage",+ name: "Donkey use cases",+ url: "https://donkeyuse.com/use-cases",+ },+ };++ return (+ <main className="min-h-screen w-full overflow-x-clip bg-background font-system text-ink antialiased">+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}+ />+ <TopNav />++ <section className="mx-auto w-full max-w-[1400px] px-6 pt-8 pb-14 md:px-12 md:pt-12 md:pb-20">+ <Link+ className="mb-8 inline-flex items-center gap-2 text-[14px] font-semibold text-ink no-underline"+ href="/use-cases"+ >+ <ArrowLeft size={16} />+ Use cases+ </Link>+ <div className="grid grid-cols-1 gap-10 md:grid-cols-[minmax(0,1fr)_420px] md:items-start">+ <div>+ <div className="mb-5 inline-flex items-center gap-2 rounded-md border-2 border-ink bg-white px-3 py-2 text-[12px] font-semibold tracking-[0.08em] uppercase">+ <Icon size={16} />+ {useCase.category}+ </div>+ <h1 className="max-w-[960px] text-[48px] leading-[0.92] font-semibold tracking-normal break-words md:text-[92px]">+ {useCase.title}+ </h1>+ <p className="mt-8 max-w-[720px] text-[18px] leading-[1.55] text-[#454545] md:text-[20px]">+ {useCase.description}+ </p>+ <div className="mt-8 flex flex-wrap gap-3">+ <PillButton href="/install" variant="dark">+ Try this with Donkey+ <ArrowRight size={16} />+ </PillButton>+ <PillButton href="/pricing" variant="secondary">+ View pricing+ </PillButton>+ </div>+ </div>++ <TapedCard color="yellow" tapeColor="cream">+ <aside className="p-7">+ <div className="mb-5 flex h-[74px] w-[74px] items-center justify-center overflow-hidden rounded-[14px] border-2 border-ink bg-white">+ <Image+ alt=""+ className="h-full w-full object-cover"+ height={74}+ priority+ sizes="74px"+ src="/donkey-site-mark.webp"+ width={74}+ />+ </div>+ <div className="text-[12px] font-semibold tracking-[0.12em] uppercase">+ Eval fixture+ </div>+ <div className="mt-2 font-code text-[14px] leading-[1.5] break-words">+ {useCase.evalFixture}+ </div>+ <div className="mt-6 text-[12px] font-semibold tracking-[0.12em] uppercase">+ Outcome+ </div>+ <p className="mt-2 text-[16px] leading-[1.5] text-[#222]">+ {useCase.outcome}+ </p>+ </aside>+ </TapedCard>+ </div>+ </section>++ <section className="mx-auto grid w-full max-w-[1400px] grid-cols-1 gap-8 px-6 pb-20 md:grid-cols-[minmax(0,1fr)_420px] md:px-12 md:pb-28">+ <div className="min-w-0">+ <SectionLabel number={1}>Workflow</SectionLabel>+ <TapedCard color="blue" tapeColor="cream">+ <div className="p-7 md:p-9">+ <div className="mb-7 rounded-xl border-2 border-ink bg-white p-5">+ <div className="text-[12px] font-semibold tracking-[0.12em] uppercase text-[#666]">+ Prompt+ </div>+ <p className="mt-2 font-code text-[15px] leading-[1.55] text-ink">+ {useCase.prompt}+ </p>+ </div>+ <ol className="grid gap-4">+ {useCase.steps.map((step, index) => (+ <li+ className="grid grid-cols-[44px_minmax(0,1fr)] items-start gap-4"+ key={step}+ >+ <div className="flex h-11 w-11 items-center justify-center rounded-lg border-2 border-ink bg-white text-[18px] font-semibold">+ {String(index + 1).padStart(2, "0")}+ </div>+ <p className="pt-2 text-[17px] leading-[1.5] text-[#222]">+ {step}+ </p>+ </li>+ ))}+ </ol>+ </div>+ </TapedCard>+ </div>++ <div className="min-w-0">+ <SectionLabel number={2}>Demo and artifacts</SectionLabel>+ <div className="flex flex-col gap-6">+ <TapedCard color="pink" tapeColor="cream">+ <div className="p-5">+ <div className="relative aspect-video overflow-hidden rounded-xl border-2 border-ink bg-ink">+ {useCase.videoSrc ? (+ <video+ className="h-full w-full object-cover"+ controls+ poster="/donkey-site-mark.webp"+ preload="metadata"+ src={useCase.videoSrc}+ />+ ) : (+ <div className="flex h-full w-full flex-col items-center justify-center gap-4 p-8 text-center text-white">+ <div className="flex h-16 w-16 items-center justify-center rounded-full border-2 border-white bg-coral text-ink">+ <Play size={28} fill="currentColor" />+ </div>+ <div>+ <div className="text-[20px] font-semibold">+ Demo coming soon+ </div>+ <p className="mt-2 text-[14px] leading-[1.45] text-white/70">+ This static page is ready for a public demo recording+ when one is available.+ </p>+ </div>+ </div>+ )}+ </div>+ </div>+ </TapedCard>++ <TapedCard color="mint" tapeColor="cream">+ <div className="p-7">+ <Headline size="lg">Artifacts</Headline>+ {useCase.artifacts?.length ? (+ <div className="mt-5 flex flex-col gap-3">+ {useCase.artifacts.map((artifact) => (+ <a+ className="flex items-center justify-between gap-4 rounded-lg border-2 border-ink bg-white px-4 py-3 text-ink no-underline"+ href={artifact.href}+ key={artifact.href}+ >+ <span>+ <span className="block text-[15px] font-semibold">+ {artifact.label}+ </span>+ <span className="mt-1 block text-[13px] leading-[1.35] text-[#666]">+ {artifact.description}+ </span>+ </span>+ <Download className="shrink-0" size={18} />+ </a>+ ))}+ </div>+ ) : (+ <p className="mt-5 text-[15px] leading-[1.55] text-[#454545]">+ This use case does not publish a downloadable fixture yet.+ Future recordings and output files can be hosted from the+ public use-cases folder.+ </p>+ )}+ </div>+ </TapedCard>+ </div>+ </div>+ </section>++ <section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28">+ <div className="relative">+ <div className="absolute inset-0 translate-x-2 translate-y-2 rounded-3xl bg-coral" />+ <div className="relative grid gap-8 rounded-3xl border-2 border-ink bg-ink px-7 py-9 text-white md:grid-cols-[1fr_auto] md:px-12 md:py-14">+ <div>+ <div className="mb-[18px] text-xs font-semibold tracking-[0.12em] text-white/55 uppercase">+ Try another task+ </div>+ <Headline size="lg">Browse the full library.</Headline>+ <p className="mt-[18px] max-w-[620px] text-[15px] leading-[1.55] text-white/72 md:text-[17px]">+ Donkey use cases cover file work, media, web research, desktop+ apps, and data tasks that usually take too many manual steps.+ </p>+ </div>+ <div className="flex flex-wrap items-center gap-3 self-center">+ <PillButton href="/use-cases" variant="primary">+ All use cases+ </PillButton>+ </div>+ </div>+ </div>+ </section>++ <Footer />+ </main>+ );+}diff --git a/site/src/app/use-cases/page.tsx b/site/src/app/use-cases/page.tsxnew file mode 100644index 00000000..db855319--- /dev/null+++ b/site/src/app/use-cases/page.tsx@@ -0,0 +1,239 @@+import type { Metadata } from "next";+import Image from "next/image";+import Link from "next/link";+import { ArrowRight } from "lucide-react";++import { Footer } from "@/app/_components/landing/Footer";+import {+ Headline,+ PillButton,+ SectionLabel,+ TapedCard,+} from "@/app/_components/landing/LandingPrimitives";+import { TopNav } from "@/app/_components/landing/TopNav";+import {+ getUseCasesByCategory,+ useCaseCategories,+ useCases,+} from "@/app/use-cases/useCases";++export const dynamic = "force-static";++export const metadata: Metadata = {+ title: "Mac Automation Use Cases | Donkey",+ description:+ "A library of practical Donkey use cases for PDFs, receipts, spreadsheets, media, images, web research, and Mac app automation.",+ keywords: [+ "Mac automation use cases",+ "AI desktop agent examples",+ "PDF automation",+ "receipt OCR automation",+ "CSV reporting automation",+ "Donkey use cases",+ ],+ alternates: {+ canonical: "https://donkeyuse.com/use-cases",+ },+ openGraph: {+ type: "website",+ url: "https://donkeyuse.com/use-cases",+ siteName: "Donkey",+ title: "Mac Automation Use Cases | Donkey",+ description:+ "Explore practical Donkey use cases for documents, data, media, web research, and Mac app automation.",+ },+ twitter: {+ card: "summary_large_image",+ title: "Mac Automation Use Cases | Donkey",+ description:+ "Explore practical Donkey use cases for documents, data, media, web research, and Mac app automation.",+ },+};++const structuredData = {+ "@context": "https://schema.org",+ "@type": "CollectionPage",+ name: "Donkey use cases",+ url: "https://donkeyuse.com/use-cases",+ description:+ "A library of practical Donkey use cases for PDFs, receipts, spreadsheets, media, images, web research, and Mac app automation.",+ hasPart: useCases.map((useCase, index) => ({+ "@type": "Article",+ position: index + 1,+ headline: useCase.title,+ url: `https://donkeyuse.com/use-cases/${useCase.slug}`,+ })),+};++const cardColors = [+ "blue",+ "yellow",+ "pink",+ "mint",+ "purple",+ "coral",+] as const;++export default function UseCasesPage() {+ return (+ <main className="min-h-screen w-full overflow-x-clip bg-background font-system text-ink antialiased">+ <script+ type="application/ld+json"+ dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}+ />+ <TopNav />++ <section className="mx-auto grid w-full max-w-[1400px] grid-cols-1 gap-10 px-6 pt-12 pb-16 md:grid-cols-[minmax(0,1fr)_420px] md:px-12 md:pt-20 md:pb-24">+ <div>+ <h1 className="max-w-[860px] text-[52px] leading-[0.9] font-semibold tracking-normal break-words md:text-[108px]">+ Use cases for real Mac work.+ </h1>+ <p className="mt-8 max-w-[650px] text-[18px] leading-[1.55] text-[#454545] md:text-[20px]">+ A growing library of tasks Donkey can run across your files, apps,+ and browser. Each page starts from a harness eval, then gives the+ workflow a permanent home for examples, demos, and artifacts.+ </p>+ <div className="mt-8 flex flex-wrap gap-3">+ <PillButton href="/install" variant="dark">+ Try Donkey+ <ArrowRight size={16} />+ </PillButton>+ <PillButton href="/pricing" variant="secondary">+ View pricing+ </PillButton>+ </div>+ </div>++ <TapedCard color="coral" tapeColor="cream">+ <div className="p-7 md:p-8">+ <div className="mb-5 flex items-center gap-4">+ <div className="flex h-[74px] w-[74px] shrink-0 items-center justify-center overflow-hidden rounded-[14px] border-2 border-ink bg-white">+ <Image+ alt=""+ className="h-full w-full object-cover"+ height={74}+ priority+ sizes="74px"+ src="/donkey-site-mark.webp"+ width={74}+ />+ </div>+ <div>+ <div className="text-[13px] font-semibold tracking-[0.12em] uppercase">+ Library+ </div>+ <div className="mt-1 text-[34px] leading-none font-semibold">+ {useCases.length} tasks+ </div>+ </div>+ </div>+ <div className="grid grid-cols-2 gap-3">+ {useCaseCategories.map((category) => (+ <div+ key={category}+ className="rounded-lg border-2 border-ink bg-white px-4 py-3"+ >+ <div className="text-[28px] leading-none font-semibold">+ {getUseCasesByCategory(category).length}+ </div>+ <div className="mt-1 text-[13px] leading-[1.25] font-semibold text-[#454545]">+ {category}+ </div>+ </div>+ ))}+ </div>+ </div>+ </TapedCard>+ </section>++ <section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28">+ <SectionLabel number={1}>Use case library</SectionLabel>+ <div className="flex flex-col gap-14">+ {useCaseCategories.map((category, categoryIndex) => {+ const categoryUseCases = getUseCasesByCategory(category);++ return (+ <div key={category}>+ <div className="mb-6 flex flex-col justify-between gap-3 md:flex-row md:items-end">+ <Headline size="lg">{category}</Headline>+ <p className="max-w-[420px] text-[15px] leading-[1.55] text-[#454545]">+ {categoryUseCases.length} static examples pulled from the+ current harness eval coverage.+ </p>+ </div>+ <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">+ {categoryUseCases.map((useCase, index) => {+ const Icon = useCase.icon;+ const color =+ cardColors[(categoryIndex * 2 + index) % cardColors.length];++ return (+ <Link+ className="block h-full text-ink no-underline"+ href={`/use-cases/${useCase.slug}`}+ key={useCase.slug}+ >+ <TapedCard+ color={color}+ fill+ tapeColor="cream"+ >+ <article className="flex h-full min-h-[334px] flex-col p-7">+ <div className="mb-6 flex items-center justify-between gap-4">+ <div className="flex h-12 w-12 items-center justify-center rounded-lg border-2 border-ink bg-white">+ <Icon size={22} />+ </div>+ <span className="rounded-md border-2 border-ink bg-white px-3 py-1 text-[11px] font-semibold tracking-[0.08em] uppercase">+ Eval-backed+ </span>+ </div>+ <h2 className="text-[28px] leading-[1.03] font-semibold">+ {useCase.title}+ </h2>+ <p className="mt-4 text-[15px] leading-[1.55] text-[#222]">+ {useCase.description}+ </p>+ <div className="mt-auto flex items-center justify-between gap-4 pt-8 text-[14px] font-semibold">+ <span>Open use case</span>+ <ArrowRight size={17} />+ </div>+ </article>+ </TapedCard>+ </Link>+ );+ })}+ </div>+ </div>+ );+ })}+ </div>+ </section>++ <section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-28">+ <div className="relative">+ <div className="absolute inset-0 translate-x-2 translate-y-2 rounded-3xl bg-coral" />+ <div className="relative grid gap-8 rounded-3xl border-2 border-ink bg-ink px-7 py-9 text-white md:grid-cols-[1fr_auto] md:px-12 md:py-14">+ <div>+ <div className="mb-[18px] text-xs font-semibold tracking-[0.12em] text-white/55 uppercase">+ More examples coming+ </div>+ <Headline size="lg">Every useful eval deserves a page.</Headline>+ <p className="mt-[18px] max-w-[620px] text-[15px] leading-[1.55] text-white/72 md:text-[17px]">+ This library is built to grow as Donkey learns more repeatable+ work: demos, downloadable outputs, and search-friendly detail+ pages can be added without changing the page system.+ </p>+ </div>+ <div className="flex flex-wrap items-center gap-3 self-center">+ <PillButton href="/install" variant="primary">+ Install Donkey+ </PillButton>+ </div>+ </div>+ </div>+ </section>++ <Footer />+ </main>+ );+}diff --git a/site/src/app/use-cases/useCases.ts b/site/src/app/use-cases/useCases.tsnew file mode 100644index 00000000..42a6c04f--- /dev/null+++ b/site/src/app/use-cases/useCases.ts@@ -0,0 +1,242 @@+import type { LucideIcon } from "lucide-react";+import {+ BarChart3,+ FileAudio,+ FileDown,+ FileSearch,+ FileText,+ ImageIcon,+ ListMusic,+ LockKeyhole,+ ReceiptText,+} from "lucide-react";++export type UseCaseArtifact = {+ description: string;+ href: string;+ label: string;+};++export type UseCaseCategory =+ | "PDF and document work"+ | "Data and reporting"+ | "Media and images"+ | "Web and app automation";++export type UseCase = {+ artifacts?: UseCaseArtifact[];+ category: UseCaseCategory;+ description: string;+ evalFixture: string;+ icon: LucideIcon;+ keywords: string[];+ outcome: string;+ prompt: string;+ slug: string;+ steps: string[];+ title: string;+ videoSrc?: string;+};++export const useCaseCategories: UseCaseCategory[] = [+ "PDF and document work",+ "Data and reporting",+ "Media and images",+ "Web and app automation",+];++export const useCases: UseCase[] = [+ {+ category: "PDF and document work",+ description:+ "Merge separate invoice PDFs into one file, then stamp footer page numbers so the packet is ready to send or archive.",+ evalFixture: "HarnessEval/merge-pdfs-add-page-numbers",+ icon: FileDown,+ keywords: ["merge PDFs", "add page numbers", "invoice packet"],+ outcome: "A single six-page PDF with consistent page numbers.",+ prompt:+ "merge invoice-jan.pdf, invoice-feb.pdf and invoice-mar.pdf into one file and add page numbers",+ slug: "merge-pdfs-add-page-numbers",+ steps: [+ "Inspects the available invoice PDFs.",+ "Combines them in the requested month order.",+ "Adds footer page numbers and writes the finished PDF.",+ ],+ title: "Merge invoice PDFs and add page numbers",+ },+ {+ category: "PDF and document work",+ description:+ "Find sensitive identifiers in a contract PDF, cover each match, and flatten the output so the redactions are baked into the file.",+ evalFixture: "HarnessEval/redact-and-flatten-contract",+ icon: LockKeyhole,+ keywords: ["redact PDF", "flatten PDF", "contract redaction"],+ outcome: "A flattened contract PDF with every SSN covered.",+ prompt: "redact every Social Security number from contract.pdf and flatten the result",+ slug: "redact-and-flatten-contract",+ steps: [+ "Reads the selectable contract text.",+ "Locates each sensitive identifier.",+ "Applies redaction boxes and exports a flattened PDF.",+ ],+ title: "Redact and flatten a contract",+ },+ {+ artifacts: [+ {+ description: "Fixture text representing the source PDF table.",+ href: "/use-cases/artifacts/q3-figures.txt",+ label: "q3-figures.txt",+ },+ ],+ category: "PDF and document work",+ description:+ "Extract a structured table from a PDF and save it as a clean CSV that can move into a spreadsheet or reporting workflow.",+ evalFixture: "HarnessEval/extract-table-from-pdf-to-csv",+ icon: FileSearch,+ keywords: ["PDF table extraction", "PDF to CSV", "financial table"],+ outcome: "A four-column CSV with region, revenue, growth, and churn.",+ prompt: "extract the table from q3-figures.pdf into a CSV",+ slug: "extract-table-from-pdf-to-csv",+ steps: [+ "Inspects the PDF contents.",+ "Identifies the table columns and rows.",+ "Writes a CSV with the extracted values.",+ ],+ title: "Extract a PDF table to CSV",+ },+ {+ artifacts: [+ {+ description: "Starting CSV used by the eval fixture.",+ href: "/use-cases/artifacts/expenses.csv",+ label: "expenses.csv",+ },+ ],+ category: "Data and reporting",+ description:+ "Read a receipt image, pull out the merchant, date, category, and total, then append the expense to an existing CSV ledger.",+ evalFixture: "HarnessEval/ocr-receipt-to-expenses",+ icon: ReceiptText,+ keywords: ["receipt OCR", "expense CSV", "expense tracking"],+ outcome: "A new expenses.csv row for Tartine Bakery totaling $42.18.",+ prompt: "OCR receipt.jpg, then append the merchant and total as a new row in expenses.csv",+ slug: "ocr-receipt-to-expenses",+ steps: [+ "Reads the receipt image and existing CSV schema.",+ "Extracts merchant, date, total, and category.",+ "Appends the normalized row to the ledger.",+ ],+ title: "Turn a receipt photo into an expense row",+ },+ {+ artifacts: [+ {+ description: "Sample source data from the eval fixture.",+ href: "/use-cases/artifacts/sales.csv",+ label: "sales.csv",+ },+ ],+ category: "Data and reporting",+ description:+ "Take raw sales rows, group revenue by month, and generate a chart image suitable for a weekly update or deck.",+ evalFixture: "HarnessEval/sales-csv-monthly-chart",+ icon: BarChart3,+ keywords: ["CSV analysis", "monthly revenue chart", "bar chart"],+ outcome: "A monthly revenue bar chart saved as monthly.png.",+ prompt:+ "take sales.csv, compute the monthly revenue totals, and turn it into a bar chart saved as monthly.png",+ slug: "sales-csv-monthly-chart",+ steps: [+ "Loads the sales CSV.",+ "Groups and sums revenue by month.",+ "Renders a twelve-bar chart image.",+ ],+ title: "Create a monthly sales chart from CSV",+ },+ {+ category: "Media and images",+ description:+ "Extract audio from a meeting recording, transcribe it, and pull out action items so the follow-up is ready to share.",+ evalFixture: "HarnessEval/transcribe-meeting-audio",+ icon: FileAudio,+ keywords: ["meeting transcription", "extract audio", "action items"],+ outcome: "An MP3 file plus a transcript with five action items.",+ prompt:+ "extract the audio from meeting.mov as an mp3 and give me a transcript with the action items pulled out",+ slug: "transcribe-meeting-audio",+ steps: [+ "Extracts the movie audio as an MP3.",+ "Transcribes the spoken content.",+ "Summarizes the transcript into action items.",+ ],+ title: "Transcribe a meeting and extract action items",+ },+ {+ category: "Media and images",+ description:+ "Batch resize travel photos, strip location metadata, and make a contact sheet for fast review or sharing.",+ evalFixture: "HarnessEval/resize-trip-photos",+ icon: ImageIcon,+ keywords: ["batch resize photos", "remove GPS metadata", "contact sheet"],+ outcome: "Twelve resized images with GPS removed and a 3x3 contact sheet.",+ prompt:+ "resize every photo in ~/Desktop/trip to 1080px wide, strip the GPS metadata, then make a 3x3 contact sheet",+ slug: "resize-trip-photos",+ steps: [+ "Inspects the photo folder.",+ "Resizes every image to 1080px wide.",+ "Removes GPS metadata and creates a contact sheet.",+ ],+ title: "Resize trip photos and remove GPS metadata",+ },+ {+ artifacts: [+ {+ description: "Markdown output captured by the eval fixture.",+ href: "/use-cases/artifacts/donkeyuse.md",+ label: "donkeyuse.md",+ },+ ],+ category: "Web and app automation",+ description:+ "Capture a web page and convert the readable page content into Markdown for notes, documentation, or archival.",+ evalFixture: "HarnessEval/markdown-of-donkeyuse",+ icon: FileText,+ keywords: ["website to Markdown", "web capture", "page archive"],+ outcome: "A Markdown document with the page title, sections, and feature list.",+ prompt: "give me a markdown of donkeyuse.com",+ slug: "markdown-of-donkeyuse",+ steps: [+ "Fetches the page content.",+ "Extracts the main readable structure.",+ "Writes a Markdown version of the page.",+ ],+ title: "Convert a website to Markdown",+ },+ {+ category: "Web and app automation",+ description:+ "Research a ranked song list, then drive Music to build a playlist from the results without making the user assemble it manually.",+ evalFixture: "HarnessEval/top-songs-2021-playlist",+ icon: ListMusic,+ keywords: ["Music playlist", "web research", "desktop automation"],+ outcome: "A Music playlist with the top ten songs from 2021.",+ prompt: "create a playlist with the top 10 songs from 2021",+ slug: "top-songs-2021-playlist",+ steps: [+ "Searches for a reliable top-songs list.",+ "Selects ten songs from the results.",+ "Creates the playlist in Music.",+ ],+ title: "Create a Music playlist from web research",+ },+];++export function getUseCase(slug: string) {+ return useCases.find((useCase) => useCase.slug === slug);+}++export function getUseCasesByCategory(category: UseCaseCategory) {+ return useCases.filter((useCase) => useCase.category === category);+}