Swapy
Keep, but not for new work. 6th of 9 drag and drop libraries.
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
Overall3.9
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- github commitsLastYear: No activity in the last year
- peers dnd kit: Peer with 516 commits and 170M downloads
- npm license: GPL-3.0 restricts closed-source use
- github.com/TahaSh/swapy/issues: Open bugs with no fixes
GPT-6.2 Sol: 4.3, likely 3.2 to 5.5
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.
- swapy.tahazsh.com: Shows the simple fixed-slot setup.
- github.com/sortablejs/Sortable: Supports insertion and moves between lists without a framework.
- dndkit.com/concepts/sortable: Provides grouped sorting and keyboard support.
- github.com/TahaSh/swapy/issues/126: Dynamic React swapping has an unresolved crash report.
- github.com/TahaSh/swapy/releases: The latest release dates to January 2025.
Needed by many3.5
How many developers need a tool for this job?
Claude Opus 5.5: 3.5, likely 2.5 to 5.0
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.
- cssscript.com/draggable-layout-swapy: Features are slot-based swapping with three modes
- github description: Described as a drag-to-swap tool, not a sorter
GPT-6.2 Sol: 3.5, likely 2.4 to 4.7
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.
- swapy.tahazsh.com: Shows the one-item-per-slot model and links to React, Vue, and Svelte guides.
- github.com/olliethedev/dnd-dashboard: An independent Next.js project demonstrates the dashboard use case.
- 2025.stateofjs.com/en-US/other-tools: The survey offers no Swapy-specific adoption estimate.
Helps a lot5.2
How well does it do the job for those who need it?
Claude Opus 5.5: 5.0, likely 3.5 to 6.5
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.
- github.com/TahaSh/swapy/issues: Open bugs: React dynamic, transforms, performance, accessibility
- cssscript.com/draggable-layout-swapy: Animation modes, handles, axis lock, auto-scroll
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 5.4, likely 4.2 to 6.6
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.
- npm hasTypes: TypeScript declarations ship with the package.
- swapy.tahazsh.com/docs/manual-swap: Dynamic framework layouts must manage their own DOM updates.
- github.com/TahaSh/swapy/issues/126: Multiple users report runtime errors when swapping newly added items.
- raw.githubusercontent.com/TahaSh/swapy/v1.0.5/src/draggable.ts: The released drag implementation uses pointer and touch events.
- dndkit.com/concepts/sortable: Documents grouped sorting, movement between lists, and a keyboard plugin.
Holds up over time2.6
Will it still be a good choice in two years?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- github commitsLastYear: 0 commits, 0 releases in the last year
- github pushedAt: Last push 2025-01-19
- github.com/TahaSh/swapy/issues: Issues through Nov 2025 have no fixes
GPT-6.2 Sol: 2.6, likely 1.4 to 4.0
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.
- github commitsLastYear: Zero commits in the measured year.
- github.com/TahaSh/swapy/releases: The latest release is v1.0.5, published in January 2025.
- github.com/TahaSh/swapy/issues: Layout and framework integration issues remain open.
- npmjs.com/package/swapy?activeTab=versions: npm lists one package collaborator.
- swapy.tahazsh.com/license: The commercial license is sold with support options.
Used widely3.4
How many use it, and is that growing?
Claude Opus 5.5: 3.5, likely 2.5 to 4.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.
- npm downloadsLast4Weeks: 148,633 now vs 63,873 a year ago (ratio 2.3)
- medianDownloadsRatio: Median ratio 4.1; Swapy is below it
- bluesky posts: Only 1 post, with no engagement
GPT-6.2 Sol: 3.2, likely 1.9 to 4.6
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.
- npm downloadsLast4Weeks: 148,633 installs in the latest four weeks.
- npm downloadsSame4WeeksYearAgo: 63,873 installs in the comparable period a year earlier.
- medianDownloadsRatio: The catalog-wide growth baseline is 4.1 times.
- peers: Every listed peer has more four-week npm installs.
- github stars: 8,488 stars.
- bluesky posts: One repository link in the measured two years.
- dependents: ecosyste.ms supplies no count.
- swapy.tahazsh.com: Documents a CDN installation path.
Vouched for2.8
Who stands behind it being good?
Claude Opus 5.5: 2.5, likely 1.5 to 4.0
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.
- producthunt.com/products/swapy: Launch page with short positive comments only
- korben.info/en/swapy-drag-and-drop-javascript-layouts.html: Blog coverage at launch
- 21st.dev/@uilayout.contact/components/swapy-draggable-card: Reused in UI component collections
GPT-6.2 Sol: 3.0, likely 1.7 to 4.4
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.
- github.com/olliethedev/dnd-dashboard: An independent dashboard implements drop-to-swap layouts.
- github.com/omnedia/ngx-swapy: An independent Angular component wraps Swapy.
- github.com/TahaSh/swapy/issues/126: Firsthand reports show problems with dynamic React layouts.
Safe5.5
How safe is it to depend on?
Claude Opus 5.5: 5.5, likely 4.0 to 7.0
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.
- npm dependencies: 0 dependencies
- advisories total: No known advisories
- npm license: GPL-3.0
- cdn.jsdelivr.net/npm/swapy@1.0.5/README.md: Commercial licence required for proprietary apps
GPT-6.2 Sol: 5.4, likely 4.1 to 6.8
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.
- npm dependencies: Zero runtime dependencies.
- advisories total: OSV records zero advisories.
- scorecard: No OpenSSF Scorecard result was collected.
- npmjs.com/package/swapy?activeTab=versions: npm lists one package collaborator.
- github.com/TahaSh/swapy/security/policy: GitHub detects no security policy.
- swapy.tahazsh.com/license: Documents GPL-3.0 and paid commercial terms.
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
- npm downloads, 4 weeks
- 149k ×2.3 in a year
- GitHub stars
- 8.5k
- Commits, 12 months
- 0
- npm version
- 1.0.5 Jan 2025
- Versions, 12 months
- 0
- Advisories, 24 months
- 0 of 0 ever
- OpenSSF Scorecard
- None
- Licence
- GPL-3.0
Read on 21 November 2026 from GitHub (TahaSh/swapy), npm (swapy), OSV and the OpenSSF Scorecard.
Drag and drop libraries
- 8.0dnd kit
- 7.5Pragmatic drag and drop
- 6.4SortableJS
- 5.8hello-pangea/dnd
- 4.9interact.js
- 3.9Swapy
- 3.7React DnD
- 3.5Dragula
- 1.6react-beautiful-dnd