Skip to content
المشاريع

حول

The data transformation tool the open-source community deserves. Build visual DuckDB pipelines in SQL or Python and trace a result cell back to the rows behind it.

البيانات والتحليلات

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١٢
خلال 15 يومًا
؜-١٠
خلال شهر
+٧

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Duckpad

See the flow. Trust the result.

Duckpad is a free, open-source visual tool for building data pipelines.
Connect steps on a canvas, write SQL or Python where you need it, and see the data at every step. Powered by DuckDB.

Tests PyPI version Python versions License: MIT

Website · Quickstart · Documentation · Releases

A Duckpad pipeline: two sources are joined, filtered and aggregated into two exports, with the result table of the selected step under the canvas

▶ Watch Duckpad in action

What is Duckpad?

Duckpad is a workspace for preparing and transforming data. You build a pipeline by connecting steps on a canvas: load files or database tables, join, filter, aggregate, export. Each step is a SQL query or a Python class that you can read and edit, and each step keeps its result. You can open any table along the way instead of guessing what the pipeline did.

It runs on your laptop or on a server your team shares. There is no cloud service, no sign-up and no paid edition.

Use it to:

  • Prepare data. Combine CSV, Parquet and JSON files with PostgreSQL, Oracle or S3 data, using guided forms or your own SQL. DuckDB extensions add more formats, such as Excel.
  • Build results people can trust. Data tests block a result that contains bad rows before it is published or exported, and you can trace a number back to the source values behind it.
  • Run it again tomorrow. Every save is a Git commit. Review a change, then run the approved version from the interface, the command line, a schedule or a webhook.

Try it

Docker. Start a local instance with its own persistent data volume:

docker run -d --name duckpad -p 127.0.0.1:8765:8765 -v duckpad-data:/data ghcr.io/hugues31/duckpad:latest

Open the one-time setup link from docker logs duckpad and choose your admin password. See Docker requirements, Compose, Coolify and upgrades.

Python. With Python 3.11+ and Git, run pip install duckpad, then duckpad start. The default mode requires Linux with Landlock. For your own trusted projects on a single-user macOS or Windows workstation, see trusted local mode.

Team instance. Open the address your administrator gave you and sign in.

On Projects, choose Open example project, then Run in dev. Select Regional revenue → Data → report and click South’s net_share cell to trace it to the source orders. Next, upload your own CSV in a new project, or follow the 15-minute quickstart to build a pipeline.

A closer look

Trace a number back to its source

Click a cell in a result to see how it was calculated: the rows behind a total, through joins and aggregates, down to the original source cells. Coverage is explicit: when a step cannot be explained, Duckpad tells you.

The lineage of a regional revenue total: the first five of the 27 source amounts behind the sum

Write SQL and preview it on real rows

Guided forms cover the common steps: select and rename columns, clean values, filter, join, aggregate. When you need more, open the code. It is plain DuckDB SQL, with the input columns one click away, and you can preview the query you are typing on real rows.

The default palette also includes union, sorting, deduplication, calculated columns, pivot/unpivot, reproducible sampling, ranking, running totals and Parquet export. Every default has its own icon, and its SQL and form parameter types are available to user-created nodes too.

A SQL node edited beside the canvas, with its input columns and a preview of the result

Review changes before they run

Work on a branch, compare two versions node by node, check the impact on the data and merge after review. Projects are ordinary Git repositories, so you can also push and pull them.

Two branches compared: the modified node stands out on the flow, with the changed parameter before and after

And also

  • Data tests and messages next to the SQL they check, with the failing rows one click away.
  • Variables and environments: define a value once and adapt it for development and production.
  • Charts of any result, declared with Vega-Lite and versioned with the project.
  • Jobs and scenarios that run a reviewed version, launched from the interface, duckpad run, the automation API, a built-in schedule or a webhook, with notifications of the outcome.
  • An AI assistant that explains a flow, makes edits you can undo and asks before running anything. It is off until you connect a provider of your choice, including a local model.
  • Team features: accounts, project roles, API tokens and single sign-on.

Build your own nodes

The built-in nodes are a starting point. A node is a file: a SQL query with a few comment directives, or a Python class. Duckpad reads the declarations and turns them into ports, a parameter form and a palette entry. There is nothing to compile or register.

A SQL node declares its inputs, typed parameters, outputs and tests in comments, and optionally its icon and color:

-- @label Revenue breakdown
-- @description Total revenue for each value of the column you choose.
-- @icon chart-bar
-- @color green
-- @input orders
-- @param dimension: column(orders) = "region"
-- @param minimum: number = 100
-- @output result
SELECT {{ dimension }}, SUM(amount) AS revenue
FROM {{ orders }}
WHERE amount >= {{ minimum }}
GROUP BY ALL
ORDER BY revenue DESC;
-- @test revenue_is_positive
SELECT * FROM {{ result }} WHERE revenue <= 0;

A Python node is a class with typed attributes, and typed keywords for its label, icon and color. It receives and returns DuckDB relations, and can use the packages your project declares:

import duckpad as dp
from duckdb import col


class Split(dp.Node, label="Split orders", icon="split", color="purple"):
    minimum: int = dp.param(default=300, ge=0)
    column: dp.Column = dp.param(default="amount", input="orders")

    class Outputs(dp.Outputs):
        accepted: dp.Relation
        rejected: dp.Relation

    def run(self, orders: dp.Relation) -> Outputs:
        return self.Outputs(
            accepted=orders.filter(col(self.column) >= self.minimum),
            rejected=orders.filter(col(self.column) < self.minimum),
        )

Click SQL or Python at the bottom of the palette, paste the code, and the node is ready to drop into a pipeline. Python nodes are available once an administrator enables Python for the project.

Both nodes in a pipeline: Duckpad generated their ports, their palette entries, their icons and the parameter form from the code

More ways to extend Duckpad:

  • Components: group several steps into one reusable node with its own parameters, and import it into other projects.
  • Connectors: describe another database or storage system in a short JSON definition.
  • DuckDB extensions: enable core and community extensions per project, even on a server without Internet access.
  • Python packages: declare dependencies in the project's pyproject.toml; Duckpad locks and installs them.

See the SQL syntax and Python nodes guides for the full contracts.

How Duckpad compares

Duckpad sits between visual data preparation tools and SQL frameworks.

If you come from You will recognize What Duckpad does differently
Visual data preparation tools such as Alteryx Designer, Dataiku DSS or KNIME A canvas of connected steps, with a result to inspect at each one Every step, including the guided ones, is SQL or Python you can read, edit and diff. See the vocabulary map for Dataiku and Alteryx users.
SQL frameworks such as dbt or SQLMesh SQL files in Git, tests and environments A visual canvas, with a result to inspect at each step and cell-level lineage through SQL. Duckpad computes in DuckDB, not inside your warehouse.
Notebooks and scripts SQL and Python, quick iterations on real data A dependency graph instead of cell order, a form for each step's parameters, and runs you can review and repeat.

Duckpad is probably not what you need for:

  • Data that requires a cluster. DuckDB computes on a single machine.
  • Streaming. Pipelines run as batches.
  • Dashboards. Charts illustrate a result; Duckpad is not a BI tool.

Duckpad is young and moves fast. Releases are frequent, and a breaking one can require a fresh instance: read the release notes before upgrading.

Free and open source

Duckpad is released under the MIT license and has nothing to sell.

  • Everything is in the package. There is no paid edition, no hosted plan and no feature kept back for one: single sign-on, roles and Jobs come with pip install duckpad.
  • It runs where you decide. No license key and no telemetry. Nothing leaves your machine or your server unless you connect it to something: a database, a Git remote or an AI provider.
  • Your work stays yours. A project is a Git repository of plain-text files (SQL, Python, JSON) that you can read, diff and move.

If Duckpad is useful to you, star the repository and tell a colleague: that is how other people find it.

Find the right guide

I want to… Guide
Install Duckpad or join a team instance Installation and accounts
Learn the basics with a small example Duckpad in 15 minutes
Upload my data and download a result Use your own data
Navigate, save and run a pipeline Workspace
Write SQL or prepare data with forms SQL syntax · Data preparation
Create my own nodes and reuse them SQL syntax · Python nodes · Components
Read from S3 or a database Connections
Check or explain a result Results · Data tests · Lineage
Review changes and automate a version Git · Jobs · CLI and automation · External agents and MCP
Fix a startup, source or execution problem Troubleshooting

The documentation index also covers variables, the assistant and instance administration. Reference material includes project files, architecture, validation, releases and security.

Contributing

Bug reports, ideas and pull requests are welcome. Open an issue or start with CONTRIBUTING.md.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…