Loading preview…
Loading preview…
Generate burn rate charts and financial analysis through AI chat. Creates interactive visualizations from conversation.
Loading preview…
Requirements, wiring steps, and what this pattern adds to your project.
Pick how you want to pull this pattern in — then wire env vars and routes the same way.
Install from the preview toolbar
Copy the install command above and run it in your project — Pro patterns include a short-lived token.
Add environment variables to .env.local
OPENAI_API_KEY, UPSTASH_REDIS_REST_URL, UPSTASH_REDIS_REST_TOKEN
Point client fetches at your API routes
Replace preview `/view/.../api/...` paths with `/api/...` in the installed files.
Customize the agent and tool files
Adapt prompts, tools, and stop conditions for your product — Copy for AI in the toolbar helps seed that work.
Run your dev server and open the pattern route
Install dependencies if needed, then start the app and verify responses.
AI SDK APIs
streamTextconvertToModelMessagestoolProviders
External services
app/page.tsxapp/layout.tsxapp/api/artifact/route.tscomponents/burn-rate-chat.tsxcomponents/expandable-panel.tsxcomponents/burn-rate-analysis-panel.tsxcomponents/burn-rate-chart.tsxcomponents/burn-rate-loading.tsxcomponents/left-panel-chat.tsxcomponents/message-input.tsxcomponents/message-list.tsxcomponents/intro-heading.tsxcomponents/right-panel-artifact.tsxcomponents/right-panel-header.tsxcomponents/status-indicator.tsxcomponents/types.tshooks/use-artifact-panel-state.tsxhooks/use-burn-rate-artifact.tslib/error-handler.tslib/ai/context.tslib/ai/tools/index.tslib/ai/tools/burn-rate.tslib/ai/artifacts/burn-rate.tsREADME.mdnpm packages
8
Registry components
artifact/route.tsAPI route for the burn rate chart artifact. Uses runWithContext for AsyncLocalStorage context, streamText with the analyzeBurnRate tool.
tools/burn-rate.tsImplements the analyzeBurnRateTool with a 4-stage progressive streaming pipeline: loading, processing, analyzing, and complete. Uses BurnRateArtifact.stream() for progressive UI updates.
artifacts/burn-rate.tsDefines BurnRateArtifact via artifact(). Zod schema captures: title, stage, currency, progress, chartData array, and optional summary with trends and alerts.
ai/context.tsAsyncLocalStorage-based context management for the chart artifact. Provides runWithContext, getContext, getWriter.
Loading preview…
Early-bird pricing — limited time

Open on desktop for the interactive preview.
Generate burn rate charts and financial analysis through AI chat. Creates interactive visualizations from conversation.