frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: FilterQL – A tiny query language for filtering structured data

https://github.com/adamhl8/filterql
28•genshii•2d ago
Hey all, I just released v2.0.0 of FilterQL, a query language and TypeScript library. This version adds support for Operations, which allow you to transform the data after filtering.

If you think this would be useful in a project you're working on, give it a try and let me know what you think!

Comments

cdaringe•1d ago
I like it! It’s nice offering a little DSL in various spaces. Curious where you’re plugging it in?

Any intended support for collections/sets? In JQL is do ‘“foo” not in (“evil”, “silly”)’ or similar matchers over sets, like if tags are on a ticket or if tickets an in an N states

olivergregory•2h ago
It seems nice. However is there any way to query arrays within the datastructure itself? Or go deeper in the hierarchy, such as "model.cost"?
LtdJorge•2h ago
The README is so good; visual demonstration, documentation, examples, proper Markdown formatting.. Love it.
MoyoGeorge•2h ago
Any plans on this supporting JSONSchema? Seeing as most/all popular TypeScript validation libraries, which will likely be used to define the shape of the data, support converting to JSONSchema now?
drinkcocacola•1h ago
I see a mismatch between the library API `filter` vs the supported operator `| SORT rating desc"`. You could use the API to your advantage by separating concerns: add a new `.sort("fieldName")` method.

``` const recentGoodMovies = filterql .filter(movies, "year >= 2008") .sort("rating") .desc()

```

If adding helper methods for semantics and clarity is not the intent of the library, then I'd rename the `filter` method since it doesn't communicate the intention clearly.

The function executes a full pipeline filter expression + `|` operations like `SORT` and `LIMIT` (not just a predicate filter). So for instance naming it to `query` will match your README terminology and grammar (`query := filter | operation*`)

h1fra•1h ago
why a dsl when you could do ql.filter<Movies>(movies).where('y', '>=', 2008) or even just use kysely with a plugin
silicon_laser•1h ago
is there some thing like this in python?
gritzko•28m ago
I myself made a simple query language out of necessity. My key-value CRDT store [1] needed some syntax for basic queries. It was strictly minimalistic, like {type:fruit} would produce [{type:fruit name:banana}...] and so on. When I think how to evolve it I lean towards adding lisp-like expression support. Cause I have a small lisp readily available.

I wonder if there is a good birds-eye FAQ/HOWTO/overview of all the existing (families) of query languages. Just to systematize Datalog, GraphQL, SQL, there are tons of them.

[1]: https://github.com/gritzko/go-rdx

arnley•13m ago
We wrote something quite similar for Bouygues Telecom and based it on an ANTLR grammar [2].

It offers nested filtering out of the box. All feature-packed in a lightweight package.

[1]: https://github.com/bouyguestelecom/spl [2]: https://github.com/BouyguesTelecom/SPL/blob/main/src/antlr/S...

Monodraw

https://monodraw.helftone.com/
250•mafro•2h ago•82 comments

Nx compromised: malware uses Claude code CLI to explore the filesystem

https://semgrep.dev/blog/2025/security-alert-nx-compromised-to-steal-wallets-and-credentials/
111•neuroo•1h ago•51 comments

The GitHub website is slow on Safari

https://github.com/orgs/community/discussions/170758
67•talboren•3h ago•38 comments

Object-oriented design patterns in C and kernel development

https://oshub.org/projects/retros-32/posts/object-oriented-design-patterns-in-osdev
27•joexbayer•1d ago•4 comments

The Therac-25 Incident (2021)

https://thedailywtf.com/articles/the-therac-25-incident
234•lemper•6h ago•134 comments

Slowing down programs is surprisingly useful

https://stefan-marr.de/2025/08/how-to-slow-down-a-program/
24•todsacerdoti•2h ago•10 comments

Implementing Forth in Go and C

https://eli.thegreenplace.net/2025/implementing-forth-in-go-and-c/
6•Bogdanp•24m ago•0 comments

Delphi in the Age of AI

https://learndelphi.org/delphi-ai-ultimate-guide/
41•andsoitis•3d ago•12 comments

Ember (YC F24) Is Hiring Full Stack Engineer

https://www.ycombinator.com/companies/ember/jobs/OTB0qby-full-stack-engineering-intern-summer-2026
1•charlene-wang•1h ago

WebLibre: The Privacy-Focused Browser

https://docs.weblibre.eu/
60•mnmalst•5h ago•33 comments

QEMU 10.1.0

https://wiki.qemu.org/ChangeLog/10.1
121•dmitrijbelikov•2h ago•23 comments

Claude for Chrome

https://www.anthropic.com/news/claude-for-chrome
707•davidbarker•18h ago•371 comments

Gemini 2.5 Flash Image

https://developers.googleblog.com/en/introducing-gemini-2-5-flash-image/
996•meetpateltech•23h ago•444 comments

Internet Access Providers Aren't Bound by DMCA Unmasking Subpoenas–In Re Cox

https://blog.ericgoldman.org/archives/2025/08/internet-access-providers-arent-bound-by-dmca-unmas...
30•hn_acker•2d ago•6 comments

F-35 pilot held 50-minute airborne conference call with engineers before crash

https://www.cnn.com/2025/08/27/us/alaska-f-35-crash-accident-report-hnk-ml
82•Michelangelo11•2h ago•87 comments

SpaceX's giant Starship Mars rocket nails critical 10th test flight

https://www.space.com/space-exploration/private-spaceflight/spacex-launches-starship-flight-10-cr...
20•mpweiher•41m ago•2 comments

Bluesky now platform of choice for science community

https://arstechnica.com/science/2025/08/more-scientists-choose-bluesky-over-twitter/
8•carride•14m ago•1 comments

Word documents will be saved to the cloud automatically on Windows going forward

https://www.ghacks.net/2025/08/27/your-word-documents-will-be-saved-to-the-cloud-automatically-on...
121•speckx•3h ago•88 comments

Malleable Software Will Eat the SaaS World

https://www.mdubakov.me/malleable-software-will-eat-the-saas-world/
50•tablet•5h ago•53 comments

Dissecting the Apple M1 GPU, the end

https://rosenzweig.io/blog/asahi-gpu-part-n.html
589•alsetmusic•11h ago•122 comments

Show HN: FilterQL – A tiny query language for filtering structured data

https://github.com/adamhl8/filterql
28•genshii•2d ago•9 comments

ASCIIFlow

https://asciiflow.com/
4•marcodiego•1h ago•0 comments

Molluscs of the Multiverse: molluscan diversity in Magic: The Gathering

https://jgeekstudies.org/2025/08/24/molluscs-of-the-multiverse-molluscan-diversity-in-magic-the-g...
24•zdw•2d ago•9 comments

Light pollution prolongs avian activity

https://gizmodo.com/birds-across-the-world-are-singing-all-day-for-a-disturbing-reason-2000646257
89•gmays•4d ago•18 comments

Rv, a new kind of Ruby management tool

https://andre.arko.net/2025/08/25/rv-a-new-kind-of-ruby-management-tool/
284•steveklabnik•1d ago•104 comments

GNU Artanis – A fast web application framework for Scheme

https://artanis.dev/index.html
234•smartmic•17h ago•58 comments

The “Wow!” signal was likely from extraterrestrial source, and more powerful

https://www.iflscience.com/the-wow-signal-was-likely-from-an-extraterrestrial-source-and-more-pow...
151•toss1•15h ago•164 comments

Chinese astronauts make rocket fuel and oxygen in space

https://www.livescience.com/space/space-exploration/chinese-astronauts-make-rocket-fuel-and-oxyge...
262•Teever•2d ago•113 comments

First absolute superconducting switch developed in a magnetic device

https://phys.org/news/2025-08-absolute-superconducting-magnetic-device.html
4•warrenm•1d ago•0 comments

The man with a Home Computer (1967) [video]

https://www.youtube.com/watch?v=w6Ka42eyudA
57•smarm•8h ago•29 comments