npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lemonadejs/transferlist

v6.0.0-beta.0

Published

LemonadeJS transfer list block — contract-verified, framework-agnostic.

Readme

<Transferlist /> — @lemonadejs/transferlist

LemonadeJS transfer list block — contract-verified, framework-agnostic.

✓ verified — 12 contract checks · framework-agnostic · zero dependencies

Overview

— two side-by-side lists with a middle column of controls that move checked items between them (on the v6 contract model).

Left list: the items NOT chosen, in data order. Right list: the chosen items, in chosen order. Each row carries a checkbox; the controls move all/checked items right/left and disable when nothing applies. Checked state is internal — one Set per side — and clears after every move.

bind="${state}" holds the CHOSEN side's values as an array. User moves commit through set() (fires onchange with the new chosen array); external writes stay silent. data is read BY REFERENCE: live data changes keep the chosen values that still exist.

Install

npm install @lemonadejs/transferlist
import Transferlist from '@lemonadejs/transferlist';
import '@lemonadejs/transferlist/style.css';

Usage

import { html, mount } from 'lemonadejs';

const App = () => html`<div>
    <${Transferlist} />
</div>`;

mount(App, document.getElementById('root'));

Three deployment forms, one component:

html`<${Transferlist} />`                       // by value (no registration)
setComponents({ Transferlist });               // then <Transferlist /> by name anywhere
createWebComponent(Transferlist);              // <lm-transferlist> in plain HTML/any framework

Props

Every declared prop arrives as a live state — pass a value for a snapshot or a state for a two-way live wire. Attribute strings are coerced to the declared type.

| Prop | Type | Default | Description | |---|---|---|---| | bind | array | — | Two-way bound value. .set() fires onchange; plain assignment is silent. the chosen values, as an array (two-way) | | data | array | — | TransferItem[] — strings/numbers normalize | | titles | array | ["Available","Chosen"] | | | search | boolean | false | a filter box above each list | | height | number | 280 | list viewport height (px, scrollable) |

Events

All event names are lowercase (the platform convention — LJS-305 warns otherwise).

  • onchange — (chosen) on user moves; external writes silent

API (via ref)

import { ref } from 'lemonadejs';
const transferlist = ref();
html`<${Transferlist} ref="${transferlist}" />`;
// transferlist.current.getChosen(...)  ·  transferlist.current.moveAll(...)  ·  transferlist.current.reset(...)
  • getChosen()
  • moveAll()
  • reset()

Styling

All classes follow the lm-transferlist-* convention; visual variants are data-* attributes on the root. Override freely — there is no styling engine to fight.

Contract

The machine-readable schema ships with the package:

import contract from '@lemonadejs/transferlist/contract.json';

verify.json carries the conformance proof produced by verify(Transferlist).