# Swapy: 3.9 out of 10

Keep, but not for new work. 6th of 9 in [Drag and drop libraries](https://elestia.ai/opensource/drag-and-drop/index.md).

Swapy is a small, framework-agnostic library that turns a grid of slots into a drag-to-swap layout with smooth animations. It has not had a commit or release since January 2025 and it is GPL-3.0 with a paid commercial licence, so for most new projects a maintained peer such as dnd kit, Pragmatic drag and drop or SortableJS is the safer pick.

**Best for:** GPL-compatible open-source projects, or buyers of the commercial licence, who need a quick animated drag-to-swap dashboard or card grid.

## Scores

- **Overall: 3.9** (likely 2.9 to 5.0)
  - Claude Opus 5.5 (3.5): Swapy is a neat tool for animated swap grids, but it has been dormant for almost two years and has unfixed bugs. Its GPL-3.0 licence with a paid commercial option is a hurdle for most commercial apps. dnd kit, Pragmatic drag and drop and SortableJS are maintained, permissively licensed and can also build swap layouts. Keep Swapy where it already runs, but choose a peer for new work.
  - GPT-6.2 Sol (4.3): Swapy is easy to set up when the requirement is to exchange tiles in predefined positions. SortableJS is a better fit for framework-agnostic list sorting, and dnd kit is a better fit when users need to reorder with a keyboard. The release gap and open dynamic-layout reports lower confidence in adopting Swapy today, especially when the layout will change over time.
- **Needed by many: 3.5** (likely 2.5 to 4.9)
  - Claude Opus 5.5 (3.5): Many web apps need drag and drop, but Swapy covers only one part of the job: swapping items between fixed slots, as in dashboards and card grids. It does not sort lists or move items between lists, which is what most users of the category need. Its GPL licence narrows the audience further.
  - GPT-6.2 Sol (3.5): Swapy works across browser frameworks and fits dashboards, tile grids, and other layouts with named positions. Its one-item-per-slot model limits its fit for lists where users insert items or move them between groups. Developer surveys offer little evidence on how often teams need fixed-position swaps.
- **Helps a lot: 5.2** (likely 3.9 to 6.6)
  - Claude Opus 5.5 (5.0): For its narrow job it is pleasant to use: setup is short, animations look polished, there are framework examples, and it ships types. But it has no accessibility support, open bugs affect dynamic React use, CSS transforms, modals and fast dragging, and users report slowdowns with many items. dnd kit and Pragmatic drag and drop do more, and do it more reliably.
  - GPT-6.2 Sol (5.4): Version 1.0.5 makes simple swaps easy with typed events, configurable animation, and framework examples. Dynamic layouts need manual state updates, and several React users report crashes even when starting from the official example. Swapy lacks built-in keyboard reordering, while dnd kit documents keyboard support and sorting across groups. Independent performance measurements are scarce.
- **Holds up over time: 2.6** (likely 1.5 to 4.0)
  - Claude Opus 5.5 (2.5): There have been no commits and no releases in the last year. The last push was January 2025. Issues filed through late 2025 have no fixes, only 4 pull requests have ever been merged, and one person maintains it. The code is small and has no dependencies, so it may keep working, but bugs are unlikely to be fixed.
  - GPT-6.2 Sol (2.6): Swapy had zero commits or releases in the measured year, and the last release was in January 2025. Several layout bugs are still open, and one account is listed as an npm collaborator. Paid licenses provide a possible funding source, but ongoing maintenance capacity is unclear.
- **Used widely: 3.4** (likely 2.2 to 4.6)
  - Claude Opus 5.5 (3.5): About 149k downloads in 4 weeks is tiny next to peers that have millions to hundreds of millions. Its year-over-year ratio of 2.3 is well below the median of 4.1, so it is losing ground. Its 8.5k stars come mostly from the launch buzz, and there is almost no Bluesky or Hacker News attention.
  - GPT-6.2 Sol (3.2): Four-week npm downloads rose from about 64,000 to 149,000, or 2.33 times, well below the catalog median of 4.1 times. Swapy has about 8,500 stars, but it has the fewest installs in this peer set and little recent social activity in the bundle. Some use can bypass npm through a CDN, and ecosyste.ms supplies no dependent count, so the number of projects choosing it is uncertain.
- **Vouched for: 2.8** (likely 1.6 to 4.2)
  - Claude Opus 5.5 (2.5): Its support comes from launch coverage: Product Hunt, CSSScript, Korben and awesome lists. There are UI-component reuses such as 21st.dev cards and wrappers such as ngx-swapy and an OutSystems component. I found no well-known company running it in production, no survey data and no independent benchmarks.
  - GPT-6.2 Sol (3.0): An independent Next.js dashboard and an Angular wrapper show that other developers have built on Swapy. The public evidence supports its use for tile swapping, with little verified production use at scale or independent benchmarking to judge how it holds up across projects.
- **Safe: 5.5** (likely 4.1 to 6.9)
  - Claude Opus 5.5 (5.5): It has zero dependencies and no advisories, so the attack surface is small. But there is no OpenSSF Scorecard, a single maintainer publishes it, and it has no active upkeep. The GPL-3.0 licence restricts closed-source commercial use unless you buy a commercial licence, which lowers the score.
  - GPT-6.2 Sol (5.4): Zero runtime dependencies limit exposure to upstream packages, and OSV lists no known advisories. npm lists one collaborator, GitHub shows no security policy, and the bundle has no OpenSSF Scorecard to assess release controls. GPL-3.0 carries source-sharing obligations for covered distributed code, and Swapy sells a commercial license for proprietary distribution.

## Good

- A few data attributes turn an existing layout into an animated drag-to-swap grid.
- It has no dependencies, ships TypeScript types, and works with vanilla JS, React, Vue and Svelte.
- It has three swap modes (hover, stop, drop), drag handles, axis locking and auto-scroll.
- No security advisories on record.

## Bad

- No commits or releases since v1.0.5 in January 2025, and bug reports through November 2025 have gone unanswered.
- GPL-3.0 licence: closed-source commercial use requires buying a commercial licence.
- It only swaps items between fixed slots. It does not sort lists, move items between lists, or offer keyboard and screen-reader support.
- Open bugs report broken dynamic React use, problems with CSS transforms and modals, and slowdowns with many items.

## The numbers

- Downloads, 4 weeks: 149k
- In a year: ×2.3
- GitHub stars: 8.5k
- Commits, 12 months: 0
- Last npm release: Jan 2025
- Advisories, 24 months: 0
- Licence: GPL-3.0
- GitHub: https://github.com/TahaSh/swapy
- npm: https://www.npmjs.com/package/swapy

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
