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.
Installation
Section titled “Installation”FlowScope is available as an NPM package:
npm install @pondpilot/flowscope-coreOr use the React component:
npm install @pondpilot/flowscope-reactQuick Example
Section titled “Quick Example”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);Features
Section titled “Features”Table-Level Lineage
Section titled “Table-Level Lineage”Understand which tables are read from and written to.
Column-Level Lineage
Section titled “Column-Level Lineage”Track how individual columns flow through transformations, JOINs, and aggregations.
CTE Support
Section titled “CTE Support”Full support for Common Table Expressions with proper lineage tracking.
Multiple SQL Dialects
Section titled “Multiple SQL Dialects”- PostgreSQL
- Snowflake
- BigQuery
- ANSI SQL
React Component
Section titled “React Component”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" /> );}