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

@rimltempest/riml-ds-svelte

v0.3.1

Published

riml-ds の Svelte 5 部品と svelteHTML 型。CEM とマークアップ契約から生成する

Readme

@rimltempest/riml-ds-svelte

riml-ds の Svelte 5 部品と svelteHTML 型。手で書かない:custom-elements.json(CEM)と マークアップ契約(ADR-0012)から bun run gen が生成する。

導入

bun add @rimltempest/riml-ds-svelte @rimltempest/riml-ds-elements \
        @rimltempest/riml-ds-tokens @rimltempest/riml-ds-css

.svelte はビルドせずそのまま配る(svelte フィールドが src/generated を指す)。 素の <script>(TypeScript ではない)なので、利用側に preprocess を強制しない。

このパッケージは define を import しない。 強化が要るページで利用側が読む:

import '@rimltempest/riml-ds-elements/dialog/define'

使い方

部品を使う:

<script>
  import { RdButton, RdTextField } from '@rimltempest/riml-ds-svelte'
</script>

<RdTextField label="メール" name="email" type="email" required />
<RdButton type="submit">保存</RdButton>

生の要素を書く(skills/riml-ds §3 の書き方):

<rd-button onrd-press={save}><button type="button">保存</button></rd-button>

/experimental — @status experimental の部品

rd-select / rd-checkbox / rd-disclosure の .svelte は @rimltempest/riml-ds-svelte/experimental から (semver の対象外。ADR-0009)。svelteHTML の型は全部品を持つ。

型を入れる

svelteHTML.IntrinsicElements の拡張はグローバル宣言なので、アプリの tsconfig.json(または src/app.d.ts)から読み込ませる:

// tsconfig.json
{ "compilerOptions": { "types": ["@rimltempest/riml-ds-svelte/types"] } }

イベントは onrd-press / onrd-dismiss / onrd-announce(DOM のイベント名そのまま)。

保守

部品を足す = contract.ts を書く。bun run gen で .svelte と型が揃う。 .npmignore(空ファイル)があるのは、生成物の src/generated が .gitignore に 入っているため。npm は .npmignore があればそちらを見るので、生成物が同梱される。