archiewood
Embedded Analytics as Code
1. Build something custom in js
2. Use a drag and drop BI tool
(1) works if you are a front-end dev, but then it means the dev team need to own it forever, deal with customer requests etc
(2) means the data team can run it, but there's poor release management, and normally doesn't look good in your app
Evidence's version tries to hit the sweet spot: It's still written in code so you have version control and flexibility for customization, but it's SQL and Markdown so the data team can maintain it
DuckDB GSheets: Read and Write Google Sheets Using SQL
The ecosystem is very active, and they have recently opened up "community extensions" to bring your own functions, data types and connections. A barrier at the moment is that extensions are written in C++, though this limitation should be removed soon.
I've been building a lot on top of DuckDB, two of the projects I'm working on are linked in the article:
- Evidence (https://evidence.dev): Build data apps with SQL + Markdown
- DuckDB GSheets (https://duckdb-gsheets.com): Read/Write Google Sheets via DuckDB
-- Install
install gsheets from community;
load gsheets;
-- Authenticate with the browser
create secret (type gsheet);
-- Read
select * from 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...'
-- Write
COPY <table_name> to 'https://docs.google.com/spreadsheets/d/11QdEasMWbETbFVxry-Ss...' (format gsheet);
DuckDB-GSheets: Read and Write Google Sheets in Pure SQL
BI-as-Code Tooling: A Review
This was a learning exercise for me as much as anything
GoSQL: A query engine in 319 LoC
So I built a minimum viable SQL engine in Go.
- Supports CSV files as tables
- Supports SELECT, FROM, WHERE, LIMIT
It's very simple:
1. Parses query string
2. Converts it into an AST representation
3. Executes the query against the CSV
4. Returns the results
Publishing to NPM Is Down
Pass data from CLI arguments, or a CSV file, get a nice chart with zero config:
`plot data.csv`
Plot: A minimal terminal charting tool
SQL Prophet: Time-series forecasting with DuckDB
Any serious Excel user has a PC.
One of the few places remaining where Windows > Mac
It’s basically RMarkdown for SQL
would you use another keyframe or did you have something else in mind
Pure CSS Website
No JS, No other HTML, just CSS.
What’s the best way to go about this?
I see you support csv uploads but it’s going to take me a decent amount of wrangling to unpack the json blobs slack spits out.
Feel free to reach out: archie at evidence.dev