Hacker ApprovedDepartments

ggsql

Hacker Approved

Ranked 4 of 19 charting libraries by recommenders

Lets you plot charts directly from SQL using a ggplot-style layered grammar. Main caveat: critics say the docs are thin and it adds little beyond R or Python.

Lets you plot charts directly from SQL using a ggplot-style layered grammar. Main caveat: critics say the docs are thin and it adds little beyond R or Python.

21 people gave an opinion

recommend it
19
criticize it
2
approval share
90%
Each figure is one person. RecommendsCriticizes

Recommended in 4 of 13 months

  1. November 2025: not recommended
  2. December 2025: not recommended
  3. January 2026: not recommended
  4. February 2026: not recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: recommended
  12. October 2026: not recommended
  13. November 2026: not recommended (month in progress)

Why it carries the badge

  • 19 people recommend itNeeds 10 or more, met.
  • 9.5 recommenders for every criticNeeds 2 to 1 or better, met.
  • Recommended in 4 of 13 monthsNeeds 4 or more, met.

The same three rules apply to every product, and the badge can’t be bought. How the badge works

What people say about it

The reasons people give, with the number of comments that give each one. Open a reason to read what they said.

Why people recommend it

Each mark is one comment

  • Plots charts directly from SQL

    “Brings plotting to Sql instead of “transforming” sql for plotting.”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

    “plotting directly from SQL would be great”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

    “There’s certainly some benefit in a declarative language for creating charts from SQL. Obviously this doesn’t do anything that you can’t also do easily in R or Python”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”
  • Useful for agents and dbt

    “implements it as SQL user defined functions which is even more agent friendly”

    Comment from 1 Aug 2026 in “Flint: A Visualization Language for the AI Era”

    “I think this could be incredible for agentic analytics.”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

    “I like it. I can see a world where these visuals become my serving layer in dbt.”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”
  • Fits ggplot and Posit ecosystem

    “I love ggsql, the team behind it, ggplot and the tidyverse in general!”

    Comment from 15 Sep 2026 in “Charts built for Chat”

    “ggsql looks great for Posit's ecosystem (ggplot2 and plotnine).”

    Comment from 22 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”
  • Promising general visualization standard

    “this is a very promising idea for the visualization standardisation”

    Comment from 21 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

    “it has potential as a general solution for that space between data”

    Comment from 21 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

What people warn about

Each mark is one comment

  • Documentation is incomplete

    “A notable omission in the ggsql docs: I cannot find any mention of the possible outputs.”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

    “Please just document the library itself before making a bunch of videos”

    Comment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

Other charting libraries people recommend

The four most recommended other charting libraries, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.

ggsql compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
ChartGPU352558%1——
ggplot229585%10—Approved
plotnine22292%5—Approved
ggsqlThis page19290%4—Approved
Matplotlib171553%8——
See all 19 charting libraries, ranked

What people said

20 of the 25 comments that mention it, newest first. Each links to the original comment.

“I love ggsql, the team behind it, ggplot and the tidyverse in general!”

RecommendsComment from 15 Sep 2026 in “Charts built for Chat”

“implements it as SQL user defined functions which is even more agent friendly”

RecommendsComment from 1 Aug 2026 in “Flint: A Visualization Language for the AI Era”

“ggsql looks great for Posit's ecosystem (ggplot2 and plotnine).”

MixedComment from 22 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“I completely agree, and I think this is also where I'm quite excited.”

RecommendsComment from 21 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“it has potential as a general solution for that space between data”

RecommendsComment from 21 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“this is a very promising idea for the visualization standardisation”

RecommendsComment from 21 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“Would be quite compelling if the CLI worked with nushell.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“I like it. I can see a world where these visuals become my serving layer in dbt.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“There’s certainly some benefit in a declarative language for creating charts from SQL. Obviously this doesn’t do anything that you can’t also do easily in R or Python”

MixedComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“it's primarily useful in the context of exploratory analysis and makes iteration on a plot much slower”

CriticizesComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“A notable omission in the ggsql docs: I cannot find any mention of the possible outputs.”

MixedComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“This seems really cool, will try it out soon!”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“Please just document the library itself before making a bunch of videos”

CriticizesComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“This is neat. I do wish there was a way for this to gracefully degrade in contexts without support for the grammar”

MixedComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“Feels like something that should've been in there from the start!”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“This can replace a lot of Excel in the end.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“plotting directly from SQL would be great”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“I think this could be incredible for agentic analytics.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“Love the layering approach - that solves a problem I’ve had with other sql/visual hybrids as you move past the basics charts.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

“Brings plotting to Sql instead of “transforming” sql for plotting.”

RecommendsComment from 20 Apr 2026 in “ggsql: A Grammar of Graphics for SQL”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.