Skip to the content
Gridkiln
Menu
Guide contents

Guide Guide

Projects and sharing

A project is an ordinary folder you own. It holds everything for one body of work: sources, pipelines, workflows and run history. Nothing in it is locked to the app: the documents are readable text files you can copy, back up, sync, compare line by line and keep in version control.

Opening and starting projects#

The project switcher at the left of the top bar shows the open project’s name. Its menu lists your Recent projects (one whose folder has moved or gone is marked, and taken off the list when you try it), then Open a file…, Open project…, New project…, and Reveal project in Finder (Show project in Explorer on Windows, Show project in file manager on Linux). The same items are in the File menu of the menu bar, with Open Recent (macOS menus use title case: Open Project…, New Project…).

  • Open project…, or Open a project folder on the welcome screen and Home: give the folder that holds gridkiln.project.yaml. “Nothing in the folder is changed by opening it.”
  • New project… makes a new project folder.
  • Try the sample project, or Start from a template (New pipeline from a template…): a working pipeline for a common job with sample data.

If you open a file before choosing a project, your work goes into a scratch project in the app’s own data folder, so nothing is lost; it behaves like any other project. Scratch projects are not listed under Recent projects. To keep one somewhere of your choosing, while it is open choose Save scratch project to a folder… (project switcher, File menu or command palette): give the project a name and “A new folder, or an empty one. Everything in the scratch project moves there.” Then Save to folder. “Sources, pipelines, history and run records come along; caches are rebuilt when needed.”

What is in the folder#

my-project/
  gridkiln.project.yaml     the project
  sources/                one file per source; pasted data in sources/data/
  connections/            database, storage and mail connections (host and user names, never passwords)
  pipelines/              one file per pipeline, and its canvas layout
  workflows/              one file per workflow
  blocks/                 reusable blocks
  tests/                  pipeline tests and their data
  dictionary/             table and column descriptions
  decisions/              remembered reconciliation and review decisions
  mappings/               stored AI and web-lookup answers
  calendars/              holiday calendars
  versions/               named versions
  history/                who changed what, one file per person
  plugins/                plugins that travel with the project
  functions.yaml          the project's own formula functions
  .gridkiln/                local to this computer: cache, snapshots, run records, logs

Paths inside documents are relative to the project folder, so the folder can be moved or copied. .gridkiln/ holds what is local or large: cached step results, snapshots, run records and logs. It is excluded from version control (it contains its own .gitignore), and you should keep it out of syncing and backups too; Settings › Storage shows its size and can clear what can be rebuilt. Passwords and keys are never in the folder: they live in this computer’s keychain.

Saving, versions and history#

  • There is no Save button. Work is saved continuously; the status bar says “Saved”. Closing the window never asks about unsaved changes.
  • Undo (⌘Z / Ctrl+Z) and Redo (⇧⌘Z / Ctrl+Y) cover every change to pipelines, workflows, sources and settings of steps, without limit, and survive closing the app.
  • Name this version… (⌘S / Ctrl+S) names the pipeline as it is now. The Versions tab lists named versions; any version can be compared with another, in its steps and in its output (Compare the latest named version with now), and restored.
  • History (⌥8 / Alt+8, Show the history of changes) lists every change, by whom, and can bring back an earlier state.

Working as a team#

A project can live in a shared folder (a network drive, Dropbox, OneDrive) or in a git repository. There is no server.

  • The file format is designed so two people’s changes merge cleanly: items are identified by id, not position, and one edit touches only its own lines.
  • When someone else changes a document while you have the project open, it is reloaded and you are told: “Ana changed Monthly sales”, with Show what changed. If you were editing the same thing, the app keeps your unsaved edit and combines it with theirs, or asks you to choose (“Keep mine”, “Take theirs”).
  • Undo never reverts a teammate’s change. To go back past one, use History.
  • Your name in the history (Change your name in the history…) is how others see your changes; it is saved on this computer only.
  • Each person’s passwords, local folder aliases (such as @shared/) and preferences stay on their own computer.
  • Only one computer runs a project’s schedules at a time; see The background agent.

Git#

For a project in a git repository, Set up merging for git in the command palette writes a .gitattributes file so project files merge by id when git merges branches, and shows the one command to run in each clone:

git config merge.gridkiln.driver "gridkiln merge-driver %O %A %B %P"

“Gridkiln never changes your git settings.” Commit .gitattributes so everyone gets it. When both sides change the same field, the file is left with a conflict the app can read: Show merge conflicts, then Choose what to keep field by field (Keep mine, Keep theirs, or edit the value), and commit the result. gridkiln merge-driver --setup does the same set-up from the command line.

Sharing one pipeline as a file#

Share as a file (File › Export › Share as File…) writes the pipeline and everything it uses as one .gridkiln file: its sources as definitions, blocks, dictionary, calendars, decisions and, if you choose, its tests. “Connections go by name only; nothing secret is included.” Choose the Sample data for each input:

  • No data: the recipient connects their own files.
  • Safe sample: “Made-up rows with the same columns, patterns and spread; no real personal values.”
  • Real rows: “anyone with the file can read them.”

To open one, use File › Open Shared Pipeline… (Open a shared pipeline), or drop the .gridkiln file on the window. It shows What’s inside, then walks you through connecting each input: My file, A source here, the Included sample, or Later. For each one, it checks how your file fits what the pipeline expects. Choose where it opens: this project, or A new project in a folder you name. A file made with a newer version of the app opens read-only.

Sharing results#

  • Share the run report as a page or PDF…: one run’s report, written to be forwarded.
  • Write up the pipeline as a document…: the pipeline in plain words, for someone who will never open the app.
  • The data dictionary can be exported as a document too.

Leaving: running without the app#

File › Export › Export Pipeline… (Export pipeline) writes a pipeline in a form that reproduces its result without Gridkiln:

  • One SQL script that runs in the standard DuckDB command line;
  • SQL models (dbt) or SQL models (plain), one file per model with their dependencies;
  • a Python script that needs only the duckdb package (and openpyxl for Excel outputs).

Steps that cannot be SQL, such as scripts and plugin steps, are listed in the export. Schedules export as entries for the operating system’s scheduler (Settings › Background agent › Export schedules for the operating system’s scheduler…). gridkiln export does all of this from the command line.

Arriving: bringing work in#

  • File › Import › SQL Script… (Import SQL script…) turns a SQL script or saved query into a pipeline of SQL steps; New pipeline from SQL… takes pasted SQL.
  • Turn a workbook into a pipeline… records the operations on a hand-maintained workbook once, as steps.

Finding things#

  • Search this project finds sources, columns, pipelines, steps, notes, checks and runs. The Library’s search box filters its tree as you type.
  • Star or unstar the open source or pipeline, Show starred items, and Tags and folder… organise the Library.
  • The data dictionary (Show the data dictionary, Describe this table…) holds a description, tags and an owner for each table and column; descriptions follow a column through the pipeline to its outputs.

Browse the gallery… lists templates and plugins that come with the app, and Save as template… saves one of your pipelines as a template. The online gallery index is off by default; see Settings › Gallery.