#3232nd of 34 in RAG and searchFor data and documents, data analysis

natural-language-postgres

Next.js text-to-SQL over Postgres with auto-picked charts

Releases and problems feed (RSS)

Stars
333
License
Apache-2.0
Last commit
Apr 2026
Language
TypeScript
Stars, last 34 weeks+33
28 Mar 2026: 300 stars4 Apr 2026: 301 stars11 Apr 2026: 301 stars18 Apr 2026: 302 stars25 Apr 2026: 306 stars2 May 2026: 308 stars9 May 2026: 309 stars16 May 2026: 309 stars23 May 2026: 309 stars30 May 2026: 311 stars6 Jun 2026: 312 stars13 Jun 2026: 313 stars20 Jun 2026: 314 stars27 Jun 2026: 315 stars4 Jul 2026: 316 stars11 Jul 2026: 317 stars18 Jul 2026: 318 stars25 Jul 2026: 319 stars1 Aug 2026: 319 stars8 Aug 2026: 321 stars15 Aug 2026: 322 stars22 Aug 2026: 322 stars29 Aug 2026: 323 stars5 Sept 2026: 323 stars12 Sept 2026: 324 stars19 Sept 2026: 324 stars26 Sept 2026: 324 stars3 Oct 2026: 325 stars10 Oct 2026: 325 stars17 Oct 2026: 326 stars24 Oct 2026: 327 stars31 Oct 2026: 327 stars7 Nov 2026: 330 stars14 Nov 2026: 332 stars21 Nov 2026: 333 stars

300 on 28 Mar 2026333 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Vercel is hiring: 86 open roles

Overview

A Next.js app where the AI SDK and GPT-4o turn a plain-English question into SQL, run it against Postgres, show the rows, pick a chart type and render it with Recharts, and explain the query on request. It ships with a seed script for a unicorn-companies CSV you download yourself; there is no auth and no history. For developers who want a text-to-SQL and charting pattern to copy.

Who it is for: Developers copying a text-to-SQL and charting pattern

Strengths

  • Shows the full loop: generate SQL, execute, explain, chart config, render
  • Deployed demo on Vercel
  • Two secrets to run: OPENAI_API_KEY and a Postgres URL

Weaknesses

  • Single hardcoded dataset; the schema prompt must be rewritten for your tables
  • OpenAI GPT-4o only
  • No auth, tests or history
  • Dataset CSV must be fetched manually from CB Insights

What it needs

  • TypeScript, openai, ai-sdk
  • Needs postgres, openai-api-key
  • env example file

Also in RAG and search

See all 34
Also in RAG and search
RankProjectScore
#29nextjs-openai-doc-searchBuild-time embeddings of your MDX docs into Supabase pgvector1.7k starsApache-2.030 out of 100
#30azure-search-openai-demo-csharp.NET RAG chat sample over your documents with Azure OpenAI and AI Search846 starsMIT30 out of 100
#31lightningragGo and Vue RAG platform with knowledge bases, agent canvas and admin UI456 starsApache-2.022 out of 100
#33vectordbC++ vector database with REST API and Python, JavaScript and Ruby clients873 starsApache-2.0no commits in a year7 out of 100
#34openai-support-agent-demoSupport console where the model drafts and a human approves209 starsMIT2 out of 100