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

@kadal/deck-solid

v0.12.0

Published

The Solid renderer for Kadal Deck (@kadal/deck): Solid components as islands on a slide.

Readme

@kadal/deck-solid

Build it. Rehearse it. Own the room. Kadal Deck has your back for the whole talk, from the first idea to the last applause. This package is part of building it: a live Solid component on a slide, so your demo runs in front of the room, not in a screenshot.

Take the tour · Docs

The Solid renderer for Kadal Deck, presentations written in MDX: Solid code as an island on a slide, loaded only when its slide appears.

Solid islands guide · Islands in any framework · Docs · Source

npm install @kadal/deck-solid solid-js vite-plugin-solid

Solid components on a deck slide.

// vite.config.ts — both plugins want .tsx, so each is told which files are whose
import { deckSolidFiles } from "@kadal/deck-solid";
import react from "@vitejs/plugin-react";
import solid from "vite-plugin-solid";

plugins: [react({ exclude: [...deckSolidFiles] }), solid({ include: [...deckSolidFiles] })];
/** @jsxImportSource solid-js */
// chart.solid.tsx — the pragma is the type-level half of the same statement
export const Chart = deckSolid((props: { data: number[] }) => <svg>…</svg>);
<Island load={() => import("./chart.solid.tsx").then((m) => m.Chart)} props={{ data }} />

The .tsx collision

React's JSX transform and Solid's are mutually unintelligible, and both plugins claim .tsx. A deck that uses both has to say which files belong to which — there is no detecting it, because the two look identical until they are compiled. This engine's convention is *.solid.tsx, exported as deckSolidFiles so a deck's Vite config imports one glob and hands it to both plugins, and the two filters cannot drift apart.

The same collision exists at the type level: the deck's tsconfig points JSX at React, so a Solid file opens with /** @jsxImportSource solid-js */. Both are needed; neither implies the other. Astro avoids all of this by owning the file extension. A deck, whose slides are MDX and whose components are the author's own, cannot.

No owns(), and no plugin either

A Solid component is a plain function returning DOM. A React component is a plain function returning elements. A production-compiled Svelte component is a plain function too. Nothing at runtime tells them apart, so this renderer gives no answer — the contract's rule that a wrong yes is worse.

Unlike Svelte, there is no deckSolidPlugin(). *.solid.tsx is a naming convention rather than a compiler output, so a plugin stamping it would be guessing from a filename. deckSolid() wraps the component instead, which is one word at the definition and says exactly what is true.

Props are getters, not values

A Solid component body runs once; what re-runs is the small reactive computation around each value it read. Hand it a plain object and the island freezes at the props it was born with. The renderer passes a createStore proxy, so update is a reconcile that touches only the keys that actually changed — a component that read step re-runs only the expression that read step. This is the cheapest island update of any framework here.

No JSX in this package

Solid's JSX is a compiler that emits createComponent calls, and this package is plain TypeScript nobody runs Babel over. It calls createComponent directly — the same thing, written out.

Licence

AGPL-3.0-or-later, with a commercial licence available — the same terms as the engine. See LICENSING.md.