# TahaSh/swapy

✨ A framework-agnostic tool that converts any layout into a drag-to-swap one with just a few lines of code https://swapy.tahazsh.com/

Repository: https://github.com/TahaSh/swapy
Canonical: https://ross.abutalabs.com/products/swapy
Language: TypeScript
License: GPL-3.0
License Family: copyleft
Last push: 2025-01-19T12:36:20+00:00

## Health v2 (maintenance only)
Score: 26/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 2, release rhythm 40, longevity 55
- inputs: {"age_days": 779, "days_push": 591, "days_rel": 591, "gap_med": 2.5, "n_releases_24m": 13}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8510, forks 178 (observed 2026-08-28T04:10:23.234770+00:00)

## What it is
Swapy is a framework-agnostic JavaScript/TypeScript library that converts any HTML layout into a drag-to-swap layout with minimal code. It works with any frontend framework and is dual-licensed under GPLv3 or a commercial license.

## Use cases
- add drag-to-swap behavior to a dashboard grid
- let users rearrange widgets by dragging
- make sortable swap layouts without heavy drag-and-drop libraries
- build customizable home screen layouts
- swap cards in a kanban-like layout by dragging

## When to choose
- you want simple drag-to-swap interactions with a few lines of code
- you need a framework-agnostic solution usable with React, Vue, Svelte, or vanilla JS
- your project is open-source and GPL-compatible

## When to avoid
- you need full drag-and-drop features like sorting across lists or nested containers
- you cannot comply with GPLv3 and don't want to buy a commercial license
- you need touch-free accessibility-first reordering only

## Facets
- artifact type: library
- maturity: active
- function: ui-components, animation
- domain: frontend, web-development
- platform: browser, cross-platform
- tags: drag-and-drop, drag-to-swap, framework-agnostic, layout, typescript

## Member repositories
- TahaSh/swapy (main) score 26

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.234770+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:26:41.579211+00:00, confidence not recorded.
  - readme: https://github.com/TahaSh/swapy (fetched 2026-08-28T04:10:23.234770+00:00, sha fff00cef35c1)
- Data as of 2026-08-30T08:39:29.467469+00:00.
