Blocks / AI

Summaries

A feature that is not a conversation: a text goes in, a background job summarises it for a price per page, and the result is saved as a document.

$pnpm exec shadcn add @intelligo/summaries

Run it inside an app made by intelligo create. Anywhere else, name the registry and install the base first.

Loading preview…
about this block

A feature that is not a conversation: a text goes in, a background job summarises it for a price per page, and the result is saved as a document. The page starts the work and lists the caller's own with its stage, result and charge.

yours to edit
  • lib/summary-config.ts

messages/en/summaries.json

Everything else is used verbatim; a deployment varies through these files and translations.How seams work →

requires
built from

button, card, input, label, skeleton, spinner, textarea, page-header, status-badge

npm packages it adds

@intelligo-dev/auth · @intelligo-dev/core · @intelligo-dev/executions · @intelligo-dev/jobs · @intelligo-dev/next · ai · lucide-react · server-only · next-intl · zod

what shadcn add writes · 11 files
Routes
  • app/[locale]/(app)/summaries/page.tsx
  • app/[locale]/(app)/summaries/loading.tsx
  • app/[locale]/(app)/summaries/error.tsx
Components
  • components/summaries/summaries-panel.tsx
  • components/summaries/summary-form.tsx
  • components/summaries/summary-list.tsx
Actions, config and messages
  • actions/summaries.ts
  • lib/summaries.ts
  • lib/summary-config.ts
  • messages/en/summaries.json
  • messages/mn/summaries.json

Ready to try it? Three commands and the app runs against a stub model.