Your first report
This guide walks through creating a new report bundle, previewing it in the browser, and exporting a PDF.
It assumes you have bino installed and available on your PATH.
-
Create a new workdir
A workdir is the root directory of a report bundle. Run
bino initto scaffold a new project. By default, it creates a directory namedrainbow-report.bino initWithout flags,
bino initasks a few questions (target directory, report name, title, language). Use-y/--yesto accept defaults non-interactively. -
Inspect the generated files
Navigate into the newly created directory:
cd rainbow-reportAfter initialization, the workdir contains YAML manifests, data files, and helper files. Typical contents include:
- A
bino.tomlproject configuration file marking the project root - One or more
ReportArtefactmanifests describing the report outputs DataSourceandDataSetmanifests defining input data and SQL transforms- At least one
LayoutPagedescribing page layout ComponentStyleandInternationalizationmanifests for styling and translations- A
.bnignorefile tuned for bino caches and build artefacts
Use your editor to explore these files. The manifests all share
apiVersion: bino.bi/v1alpha1and akindthat selects the spec. - A
-
Preview the report
Start a live preview server from the workdir:
bino previewbino scans the directory for manifests, starts a local HTTP server (by default
http://127.0.0.1:45678/), and opens your default browser. As you edit YAML or data files, it reloads the preview automatically. -
Build a PDF
When you are happy with the preview, export a PDF:
bino buildThis runs schema validation, executes datasets in the embedded query engine, renders HTML for each report artefact, and converts the pages to PDF using the rendering engine. By default, PDFs are written into a
dist/directory under the workdir.Example using a custom output directory:
bino build --out-dir dist/reports
Where to go next
Section titled “Where to go next”- Learn about workdirs and manifests.
- Explore the schema reference to understand each
kindin detail. - Browse how-to guides for common tasks like connecting CSVs, databases, and styling layouts.