Hacker GitHub

← All repos

gnat/surreal

View on GitHub ↗ ★ 1,747 JavaScript

🗿 Mini jQuery alternative. Dependency-free animations. Locality of Behavior. Use one element or arrays transparently. Pairs with htmx. Vanilla querySelector() but better!

10 mentions on Hacker News by 5 people: 3 stories, 7 comments · first 2023-06-23 · latest 2026-06-15

Mentions per year 10 mentions · busiest year 2024 (4)
20082026
  1. ▲ 3
    Surreal.js – 320 line jQuery alternative with inline Locality of Behavior
    story by ethanpil · 2026-06-15 · 0 comments
  2. I recently had a similar junk PR on my 1,700 star repository: https://github.com/gnat/surreal/pull/56 I'm fairly convinced these are bot / LLM generated; the content is nonsensical garbage. PS: If an LLM needs a whole seperate fork to…
  3. Another interesting approach IMHO is https://github.com/gnat/surreal
  4. …of the art. Honestly, it's very common for me to feel torn about ideals vs actual pragmatism. [1]: https://github.com/gnat/surreal [2]: https://github.com/gnat/css-scope-inline [3]: https://github.com/leafo/lapis [4]: https://gittup.org/tup
  5. …inventing unique "one time" names. * Vanilla first. Zero dependencies. 1 file. Under 340 lines. https://github.com/gnat/surreal
  6. Yeah, go w/ htmx + vanillajs (or possibly alpine.js or https://github.com/gnat/surreal ) would be a reasonable option for many government projects. You can audit the htmx codebase and it is dependency free (same w/ alpine & surreal) and…
  7. …inventing unique "one time" names. * Vanilla first. Zero dependencies. 1 file. Under 340 lines. https://github.com/gnat/surreal That said, it's fantastic to see 4.0 here, and I'll certainly be upgrading my many sites that use it!
    comment by geenat · 2024-02-07 · in jQuery v4.0 Beta
  8. ▲ 30
    Show HN: Tiny jQuery alternative with inline Locality of Behavior
    story by geenat · 2023-10-07 · 0 comments
  9. ▲ 1
    Surreal – A small jQuery-like utility that pairs with Htmx
    story by mharju · 2023-09-21 · 0 comments
  10. …ms)); </script> </div> </body> </html> If you like this, you may also want to check out: https://github.com/gnat/surreal