Skip to content

Getting Started with FlowScope

FlowScope is a privacy-first SQL lineage engine that analyzes SQL queries to produce detailed lineage graphs showing how tables, CTEs, and columns flow through data transformations.

FlowScope is available as an NPM package:

Terminal window
npm install @pondpilot/flowscope-core

Or use the React component:

Terminal window
npm install @pondpilot/flowscope-react
import { analyzeLineage } from '@pondpilot/flowscope-core';
const sql = `
SELECT
orders.id,
customers.name,
orders.amount
FROM orders
JOIN customers ON orders.customer_id = customers.id
`;
const lineage = await analyzeLineage(sql);
console.log(lineage);

Understand which tables are read from and written to.

Track how individual columns flow through transformations, JOINs, and aggregations.

Full support for Common Table Expressions with proper lineage tracking.

  • PostgreSQL
  • Snowflake
  • BigQuery
  • ANSI SQL

Use the React component for interactive visualization:

import { LineageGraph } from '@pondpilot/flowscope-react';
function App() {
return (
<LineageGraph
sql="SELECT * FROM orders JOIN customers ON orders.customer_id = customers.id"
dialect="postgresql"
/>
);
}