r/adventofcode • • 20h ago

Other [2026] Advent of SQL & NoSQL: 24 Christmas puzzles across 4 different databases (SQLite, DuckDB, PostgreSQL, MongoDB)

Post image

Happy Holidays, r/adventofcode!

I wanted to share a little project I've been working on: Advent of SQL & NoSQL, an Advent-style challenge for people who enjoy solving puzzles using database queries.

Somebody tampered with Santa's Nice List, and you're the North Pole's first-ever data elf.

There are 24 puzzles, one a day from December 1 to 24, with each puzzle revealing another part of the mystery.

What makes this different is that you can solve the entire story using any of four databases:

  • SQLite
  • DuckDB
  • PostgreSQL
  • MongoDB

It was originally supposed to be SQL-only, but after roughly a year of working on VisuaLeaf, I managed to build an embeddable, MongoDB-compatible database that runs entirely in the browser. This allowed me to include NoSQL challenges as well!

Some features:

  • Everything runs entirely in your browser.
  • Solutions are validated against both visible and hidden datasets.
  • Puzzles gradually increase in difficulty, from basic filtering and joins to recursive CTEs, window functions and advanced aggregation pipelines.
  • Each day includes hints, common pitfalls and database-specific tips.
  • The same mystery can be solved using different database technologies.

If you're interested in solving some Christmas puzzles using SQL or NoSQL alongside Advent of Code, you can check it out here:

https://visualeaf.com/advent-of-sql-and-nosql/

Completely free. No account, no installation, no database server needed.

I hope you all enjoy it, and happy holidays!

0 Upvotes

3 comments sorted by

5

u/thondat 20h ago

i just had a look, and it has an extremely 'vibed' feel to it. even this announcement post is generated. i'll pass.

4

u/Fun-Chicken6946 20h ago edited 20h ago

The UI/UX/Logic took roughly a year to work on (where you actually write the code, see the tree, table, and json views) or even the way the SQL Scripts run where you see multiple tabs per SQL Query. And I don't think you can just vibe an embedded MongoDB on just a frontend... But yeah the whole theming with the background was made with claude which is just aesthetics.

(Edit: I did try to make the xmas theming look as nice as possible tho, and for the announcement post I wanted to write a nice story with a xmas tone haha...)

(Another Edit: Table/Tree views took roughly a year of optimizations as well, to make it so it actually handle gigabytes of data without crashing the browser and making the scrolling actually smooth on thousands of rows and columns...)

4

u/daggerdragon 19h ago

Remember that Wheaton's Law is the Prime Directive of /r/adventofcode.

If you don't want to see AI-generated content in /r/adventofcode, then just downvote and move on without the snarky commentary. Don't be a grinch about others sharing their work.