← Market Pulse · Nov 10
dragology: a library for adding drag interactions to web SVG with declarative codeGitHub · created Oct 29 (12 days ago) · original page ↗
Stars / day ×8.338 → 316

Drag and drop without callbacks, just list the states: a best paper gets picked up by HN

What it isA React library: list the states an element can be dragged into, and it generates animated SVG drag interactions automatically.

Why it grewAn old HN post was re-pushed to the front page on Nov 9, peaking at #3 with 746 points and staying up for almost a day.

What to takePutting a demo you can drag right on the first screen, then comparing code size against older approaches with measured numbers, worked better than explaining the philosophy.

Who built itThree US researchers: Horowitz, Blinn, and HeerHow it makes moneyFree and open source (MIT), an academic project with no path to chargingStaying powerPulse: only about 12 new stars on Nov 11, very few people are using it
The diagram on the official site: write out the data states the drag might reach, and the library pre-renders them and works out the drop positions and animation itself

Positioning and edge

Who it's forReact front-end developers building interactive charts, teaching demos, and editorsThe job it doesAdd drag and drop with snapping, previews, and animation to SVG graphicsWhat people did beforeWriting piles of drag callbacks with dnd-kit and the like, and computing drop positions and animations by handThe wedge"Weird drags" beyond lists: trees, formulas, card stacks, puzzles, and similar graphics

How it differs from the rest

  1. Write no drag callbacks; just list the states the graphic might turn into after the dragMeasured in the paper: AI writing the same interaction with it averages 346 lines, versus 650–700 lines with other tools
  2. Mid-drag, it previews how the whole graphic will rearrange, and settles on releaseHN comment: it captures the essence of why drag is hard: speculative live editing of a data view
  3. Discrete snapping and free dragging can be combined like building blocksIt has combinators such as between, closest, and whenFar; g9 only handles continuous dragging
  4. Ships with instructions written for AI, which suits having an agent generate interactionsIn the same experiment, AI scored full marks 4 times out of 5 with it, versus 0–2 times with the others

Who else is in the space

Similar productHow it differs from this one
dnd kitThe mainstream React drag library, 17,800 starsIt handles DOM drag for list and board UIs; this one handles SVG graphics and needs no callbacks
Pragmatic drag and dropMade by Atlassian, 12,800 starsIt is built on native drag and drop and can drag files; this one supports only React + SVG
MotionA React animation library with drag gestures, 35,000 starsMotion gives you only gestures and animation, and you write the drop positions yourself; this one derives them from state
g9An auto-interactive graphics library, about 2,000 starsIt also drives drag by pre-rendering, but only supports continuous dragging, with no discrete snapping or composition

Can it hold?Can't be defended: the idea is in a public paper and the code is MIT; all you can take away is the best-paper reputation and the first-mover lead.

Last two weeks · Stars / day
11-0731611-10

How it happened

  1. Blinn was prototyping a math game, found "pick a transform from a menu" lacked feel, and came up with the rough idea ↗

  2. Sketched "model-driven drag" on a whiteboard, then shelved it for two years ↗

    Blinn's whiteboard sketch from Jun 2023; the idea sat on a whiteboard for two years before anyone built it
  3. Horowitz committed the first line of code; of the 1,072 commits so far, nearly all are his ↗

  4. npm package dragology 0.1.0 released, and nobody noticed ↗

  5. A few days before the UIST conference, the repo went public on GitHub under the MIT license ↗

  6. Won best paper at UIST 2026; Blinn posted with a demo video, 108,000 views ↗

    Blinn's launch post: the selling point in one sentence, plus a video full of draggable demos, 1,778 likes, 108,000 views
  7. 0.2.0 released, and people on X showed off their own remakes; GitHub +64 stars in a day ↗

  8. The old HN post returned to the front page, peaking at #3 with 746 points; GitHub +316 stars in a day ↗

    The trigger: this post on Hacker News (745 points at screenshot time), whose top comment is a complaint about "drag and drop? That takes a whole week"
    Three voices in the HN comments: one compares it to Netflix's Reactive Extensions, one asks whether it can work without React, one complains that even the small demos lag
  9. The post fell off the front page; stars at 628, with only about 12 gained in a day ↗

In detail

What using it looks like

Ordinary drag libraries (dnd kit, Pragmatic) make you mark the draggable elements and drop zones, then write a string of drag callbacks and work out which slot to insert into and what animation to play. Dragology flips this: you write the UI as a "state → SVG" function, and attach one line to a draggable element, d.between([off, on]) or d.closest([all possible new arrangements]). Once a drag starts, the library renders each of these future states, sees where the dragged element lands in each, and automatically derives the drop zones, the in-drag transition frames, and the release animation. The site's 8 demos (moving terms in an algebraic expression, a twisting tree, a card stack, a domino puzzle) are all written this way, and they happen to be the hardest scenarios for libraries aimed at lists and boards.

Why people buy in

The paper gives hard numbers: for the same "list inside a list" interaction, Claude Code was asked to write it 5 times with each of 7 approaches. With Dragology the average was 346 lines and 4 runs fully met the spec; with Motion, dnd kit, Pragmatic, react-spring, or hand-written code the average was 647–704 lines and at most 2 runs fully met it. This is the authors' own small-sample experiment, so treat it as directional only. The HN comments hit two points: the old pain of "drag looks simple, takes a week to build," with the top comments mostly about underestimating it; and some saying it "captures the essence of why drag is hard," while others compared the API to Reactive Extensions back in the day. Chinese-language retellings land on "adding drag to AI-generated interfaces": it ships with an AGENTS.md written for AI, which fits that need exactly.

Discounts on the numbers

Whether to follow, and how

It's a paper project, MIT open source, not monetized, and can't be defended: the ideas are all in a public paper, and it would not be hard for a big library to add a "derive drop zones from state" mode. Don't follow it as a business. Two things are worth taking: first, the launch method: the first screen is a demo you can drag, one sentence, "just list the states it can be dragged to," was retold dozens of times without distortion, backed by a chart comparing code size with older approaches. Second, the gaps: a "framework-agnostic version," an "HTML version," and "draggable components for agents" are things the comments openly ask for and the author hasn't delivered for now.

The paper's appendix comparison: AI wrote the same drag 5 times with each of 7 approaches; Dragology (far left) has about half the code and the most full marks
The official homepage embeds 8 demos you can drag right away, covering formulas, trees, card stacks, and puzzles, with nothing to install