MCPcopy Index your code
hub / github.com/TahaSh/swapy

github.com/TahaSh/swapy @v1.0.5 sqlite

repository ↗ · DeepWiki ↗ · release v1.0.5 ↗
198 symbols 473 edges 23 files 1 documented · 1%
README

Swapy

A framework-agnostic tool that converts any layout into a drag-to-swap one with just a few lines of code.

Check out swapy.tahazsh.com for complete docs and demos.

Docs

Check out the full documentation with many demos at swapy.tahazsh.com/docs/installation.

License

Commercial license

If you plan to use Swapy for developing commercial sites, themes, projects, or applications, the Commercial license is the right choice. This license allows you to keep your source code proprietary. You can purchase the Swapy Commercial License at swapy.tahazsh.com.

Open-source license

If you're developing an open-source application with a license compatible with the GNU GPL license v3, you can use Swapy under the terms of the GPLv3.

Read more about Swapy's license.

Extension points exported contracts — how you extend this code

View (Interface)
(no doc)
src/view.ts
Swapy (Interface)
(no doc)
src/index.ts
Flip (Interface)
(no doc)
src/flip.ts
Draggable (Interface)
(no doc)
src/draggable.ts
ViewPlugin (Interface)
(no doc)
src/view.ts
Slot (Interface)
(no doc)
src/index.ts
Item (Interface)
(no doc)
src/index.ts
Store (Interface)
(no doc)
src/index.ts

Core symbols most depended-on inside this repo

el
called by 48
src/view.ts
view
called by 33
src/index.ts
id
called by 22
src/index.ts
config
called by 16
src/index.ts
lerp
called by 16
src/math.ts
vec2
called by 15
src/vector.ts
setTransform
called by 11
src/view.ts
eventHandlers
called by 9
src/index.ts

Shape

Function 120
Method 69
Interface 9

Languages

TypeScript100%

Modules by API surface

src/index.ts114 symbols
src/draggable.ts20 symbols
src/view.ts19 symbols
src/flip.ts13 symbols
src/rect.ts6 symbols
src/math.ts6 symbols
src/vector.ts5 symbols
src/borderRadius.ts5 symbols
src/utils.ts3 symbols
src/animators.ts3 symbols
src/easings.ts2 symbols
examples/react/App.tsx1 symbols

Dependencies from manifests, versioned

@sveltejs/vite-plugin-svelte4.0.1 · 1×
@types/node22.9.0 · 1×
@types/react18.3.12 · 1×
@types/react-dom18.3.1 · 1×
@vitejs/plugin-react4.3.3 · 1×
@vitejs/plugin-vue5.2.0 · 1×
react18.3.1 · 1×
react-dom18.3.1 · 1×
svelte5.2.7 · 1×
typescript5.6.3 · 1×
vite5.4.10 · 1×
vite-plugin-dts4.3.0 · 1×

For agents

$ claude mcp add swapy \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact