Skip to content

Latest commit

 

History

187 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Query.Farm website

The static Astro site for query.farm: product pages, DuckDB extension marketplace and reference material, Haybarn SQL functions, the VGI SDK docs, blog, and company pages.

Requirements

  • Node.js 22
  • npm
  • Optional: uv for refreshing generated extension snapshots

Install dependencies with npm ci.

Development

npm run dev       # local server at http://localhost:4321
npm run check     # Astro and TypeScript diagnostics
npm run build     # deterministic production build plus Pagefind index
npm run validate  # current CI gate: deterministic production build
npm run preview   # serve dist/ locally

npm run build consumes only files committed to the repository. It does not fetch or rewrite release, usage, or binary-size data.

Generated data

Each extension under src/data/extensions/<slug>/ has two inputs:

  • generated/ contains machine-produced function, compatibility, and usage snapshots. Do not hand-edit these files.
  • augment/ contains curated metadata, descriptions, examples, and category information.

Refresh all remote snapshots explicitly with:

npm run refresh:snapshots

This command can rewrite tracked files and requires uv; usage refreshes also read CF_API_TOKEN and CF_ACCOUNT_ID from .env. Review and commit the resulting snapshot changes separately from application changes. Individual refresh commands are fetch:versions, snapshot:usage, and snapshot:binary-sizes.

Project map

  • src/pages/ — Astro routes and static endpoints
  • src/components/ — layout, product, documentation, diagram, and UI pieces
  • src/content/ — blog and Starlight VGI documentation
  • src/data/ — typed product data and extension discovery/merging
  • src/lib/repl/ — in-browser Haybarn/DuckDB shell
  • src/haybarn-functions/ — extracted function catalogs, guide components, and scoped search
  • scripts/haybarn-functions/ — function capture, verification, and indexing
  • scripts/ — snapshot, documentation-generation, and search-index tooling
  • extension-diff-tools/ — extension introspection and example validation

The extension loader validates merged data with Zod and intentionally fails the build on schema mismatches. VGI SDK reference pages are generated from their language repositories; see VGI_DOCS_GUIDE.md before editing those pages. Visual changes should follow DESIGN_BRIEF.md.

Haybarn function guide

The guide is part of this site at /products/haybarn/functions/. It uses the shared Query Farm header and Haybarn navigation. See HAYBARN_FUNCTIONS.md for routes, search scopes, release updates, WASM hosting, and verification commands.

Haybarn community extensions

The discovery directory at /products/haybarn/extensions lists confirmed published Haybarn builds. Query Farm extensions reuse their existing pages; independent reference prototypes use shared documentation components and inventories captured from loaded extensions. See HAYBARN_EXTENSIONS.md for data sources, refresh commands, search behavior, and verification.

Deployment

.github/workflows/deploy.yml validates the site before deploying it to Cloudflare Pages. Pushes to main publish production; pull requests receive a preview deployment. The workflow requires the CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID repository secrets.

CI checks Astro types, the function catalogs, the combined build, exported references, and browser behavior before deployment. Browser tests execute the real pinned WASM package and serve its artifacts locally for deterministic CI.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages