Direct answer: jQuery, released in January 2006 by John Resig, gave one clean API over browsers that disagreed about nearly everything. Selectors first, methods that return the set, and chaining: design choices modern libraries still copy.

The trending query jquery/jquery sits on GitHub Trending's JavaScript page on November 25, 2026, twenty years after the library first shipped. A two-decade-old codebase trending again is its own kind of lesson.

John Resig announced the project at BarCamp NYC in 2006 and released it that January, while he was still a college student. Its tagline promised writing less and doing more, and the promise held for a generation of developers. What lasts is the API design, and three of its habits are worth stealing today.

The chainable set

Start with a selector, get back a wrapped set of matched elements, call a method, and the method hands back the same kind of wrapped set. That one return rule makes calls compose into readable sentences: select the tabs, add a class, bind a click, all in one expression. Batch behavior came along for free, since a method acting on one element or a hundred looks identical.

The economics are the quiet part. Every keystroke you remove from a common operation compounds across a codebase, and discoverability improved because every object offered the same method menu. Writing less and doing more was an API budget, spent deliberately.

the same setselectoraddClassonEach call returns the set, so calls compose

The abstraction that let standards catch up

In 2006 the browsers agreed on almost nothing. Internet Explorer needed one incantation for an event listener, Firefox another, and animation code forked into branches nobody wanted. jQuery absorbed all of it behind one function call, so application code stopped caring which engine was underneath. That is the compat-layer pattern: wrap the chaos at the boundary, keep your core clean.

The standardization jQuery pressed for eventually arrived. querySelectorAll, classList, and fetch brought selector queries, class toggling, and clean requests into the platforms themselves, and the library's share of new code shrank on purpose. A good abstraction works itself out of a job; the ideas it proved outlive the wrapper.

jQuery habitWhat it solvedWhere it lives now
Chained calls.Five lines became one sentence.Promise and iterator chains.
Selector API.One query syntax for all browsers.querySelectorAll, built in.
Compat layer.Browser quirks absorbed at the edge.Framework renderers and polyfills.
Batch actions.One element or one hundred, same code.Array methods and React lists.
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

What survived the wrapper

Modern frameworks still write in the grammar jQuery proved. Declarative libraries let you describe the set you want and react to changes, which is the selector-first idea wearing new clothes. Utility libraries keep the chain discipline. And the deeper habit endures: meet developers where the pain is, absorb the mess at one boundary, and keep the API small enough to hold in your head.

The repository trending two decades on is the receipt. Code becomes legacy, but design habits compound, and a library that taught a generation how an API should feel keeps teaching after its job is done.

Key takeaways

  • One return rule, every method hands back the set, is what made chaining compose into readable sentences.
  • Wrapping browser quirks at one boundary kept application code clean and let standards catch up later.
  • querySelectorAll, classList, and fetch are the library's ideas after the platforms adopted them.
  • Small APIs with a strict return rule scale across a codebase, which is the budget behind writing less and doing more.

Quick answers

Who created jQuery and when?
John Resig announced it at BarCamp NYC in 2006 and released the library that January.

What does write less, do more mean as API design?
Common operations take minimal code, because selectors, batch actions, and chaining remove ceremony from every call.

Why is jQuery still studied?
Its interface habits, chainable methods, selector-first queries, and one clean boundary for chaos, still shape how libraries get designed.

Did browsers replace jQuery?
The platforms adopted its best ideas, so querySelectorAll and classList now do natively what the library provided.

What is a compat layer?
A thin boundary that absorbs inconsistencies between environments, keeping application code the same underneath.

One thing to do tonight

Open the jQuery repository tonight and read one plugin or the core source for ten minutes. Watch for the return rule: nearly every method ends with a return of the collection. Then try writing one small helper of your own that follows it, even a two-function chain over an array. Feeling the composition click is the fastest way to see why the pattern spread.