genbi

Builds and deploys shareable GenBI dashboard apps from a Wren context layer to Vercel or Cloudflare.

17.7k|2.0k|Updated Mar 13, 2024
One-click install
npx skills add https://github.com/Canner/WrenAI --skill genbi-canner
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: genbi
Source: https://github.com/Canner/WrenAI/tree/main/core/wren/src/wren/skills_content/genbi
Command: npx skills add https://github.com/Canner/WrenAI --skill genbi-canner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Turning a governed Wren semantic layer into a shareable, browser-based analytics app normally requires manual frontend work, data export, and deployment setup. This Skill orchestrates the entire flow from a natural-language request to a public URL. ## Core Features & Use Cases - Project-hydrated build instructions: wren genbi build returns an authoritative instruction with the pinned wren-core-wasm version, model inventory, and acceptance criteria, so the agent authors the app against live project facts. - Snapshot and live data modes: bundle parquet/duckdb data client-side for serverless demos, or connect live to a warehouse endpoint with strict no-credentials rules. - Register, verify, and deploy pipeline: deterministic CLI commands validate the app (including credential scanning) and deploy to Vercel or Cloudflare Pages with preview-by-default safety. - Use Case: A user asks for a sales overview dashboard from their Wren project; the agent authors the app under apps/sales-overview/, exports DuckDB tables to parquet, verifies it, and deploys a shareable Vercel URL. ## Quick Start Ask the agent to build a GenBI dashboard app from your Wren project and deploy it to Vercel, for example: "Build a sales-overview dashboard from my Wren project and deploy it to Vercel."

Frequently Asked Questions about genbi

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a dashboard app from a Wren project?▼

Run wren genbi build with an app name and your request as the prompt; the CLI returns a build instruction with the project model inventory and pinned wren-core-wasm version. The agent then authors the app under apps/<name>/, registers it, verifies it, and deploys it.

What is the difference between snapshot and live data mode?▼

Snapshot mode bundles data as parquet or duckdb files queried client-side, making the app fully serverless and suited to demos and small data. Live mode calls back to a CORS-enabled warehouse endpoint at view time, fitting production-scale or always-fresh data.

Can I deploy a GenBI app to Cloudflare Pages?▼

Yes, run wren genbi deploy with --provider cloudflare. You need CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID in the environment or .env, a token scoped with Pages:Edit, and the wrangler CLI available on PATH or via npx.

Why does my deployed Vercel app URL return 401?▼

New Vercel projects enable Vercel Authentication by default, so every deployment returns 401 to logged-out visitors even though the deploy succeeded. Disable it in the Vercel dashboard under Project Settings, Deployment Protection, to make the link publicly shareable.

How do I export DuckDB data for a snapshot dashboard?▼

Connect to the project's DuckDB file in read-only mode and use COPY (SELECT ...) TO 'apps/<name>/data/<table>.parquet' (FORMAT parquet). Export only the columns and rows the dashboard uses, since verify requires at least one parquet or duckdb asset.

Is it safe to include credentials in a live-mode GenBI app?▼

No. Live mode requires an endpoint-only connection config with never any inlined credentials, because the deploy target is a public static host where every shipped file is readable. The verify step scans for credentials as best-effort defense, but the rule is on the author.