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
20082026
-
▲ 3
Surreal.js – 320 line jQuery alternative with inline Locality of Behaviorstory by ethanpil · 2026-06-15 · 0 comments
-
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…
comment by geenat · 2026-01-07 · in Creators of Tailwind laid off 75% of their engineering team -
Another interesting approach IMHO is https://github.com/gnat/surreal
comment by ethanpil · 2025-11-09 · in Marko – A declarative, HTML‑based language -
…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
comment by pull_my_finger · 2024-12-21 · in How do you do, fellow web developers? A growing disconnect -
…inventing unique "one time" names. * Vanilla first. Zero dependencies. 1 file. Under 340 lines. https://github.com/gnat/surreal
comment by geenat · 2024-11-03 · in Cash: A small jQuery alternative for modern browsers -
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…
comment by recursivedoubts · 2024-07-23 · in Switzerland now requires all government software to be open source -
…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 -
▲ 30
Show HN: Tiny jQuery alternative with inline Locality of Behaviorstory by geenat · 2023-10-07 · 0 comments
-
▲ 1
Surreal – A small jQuery-like utility that pairs with Htmxstory by mharju · 2023-09-21 · 0 comments
-
…ms)); </script> </div> </body> </html> If you like this, you may also want to check out: https://github.com/gnat/surreal
comment by geenat · 2023-06-23 · in Anime.js – A lightweight JavaScript animation library