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

@frostycle/rime

v0.2.0

Published

Headless, snippet-based UI primitives for Svelte 5.

Readme

@frostycle/rime

Headless, snippet-based UI primitives for Svelte 5: a small API with no nested components. The library applies no styles except inline popup positioning.

Install

pnpm add @frostycle/rime

Requires svelte@^5.29.0 and a browser with the popover attribute (Baseline 2024). The automated browser suite runs on Chromium, WebKit and Firefox.

Date pickers

<script>
	import { DateRangePicker, addDays, today } from '@frostycle/rime/date-picker';

	let period = $state(null);

	const presets = [
		{ label: 'Today', value: () => ({ start: today(), end: today() }) },
		{ label: 'Last 7 days', value: () => ({ start: addDays(today(), -6), end: today() }) }
	];
</script>

<DateRangePicker
	bind:value={period}
	months={2}
	{presets}
	locale="id-ID"
	startName="from"
	endName="to"
	classes={{ popup: 'rounded-lg border bg-white p-4', day: 'size-9 data-[selected]:bg-blue-600' }}
>
	{#snippet trigger({ props, label, clear, value })}
		<button {...props}>{label || 'Choose dates'}</button>
		{#if value}<button type="button" onclick={clear}>Clear</button>{/if}
	{/snippet}
</DateRangePicker>

Values are YYYY-MM-DD strings, never Date objects, so a selection cannot shift by a day across timezones. A range is { start, end }.

Dropdown menu

A button that opens a list of actions and links, defined as data.

<script>
	import { DropdownMenu } from '@frostycle/rime/dropdown-menu';

	const items = [
		{ label: 'Edit', onselect: edit },
		{ label: 'View docs', href: '/docs' },
		{ type: 'separator' },
		{
			type: 'group',
			label: 'Danger zone',
			items: [{ label: 'Delete', onselect: remove, disabled: !canDelete }]
		}
	];
</script>

<DropdownMenu {items} label="Actions" />

Select

A button that opens a list of options and sets one value, defined as data.

<script>
	import { Select } from '@frostycle/rime/select';

	let country = $state(null);

	const items = [
		{ value: 'id', label: 'Indonesia' },
		{ value: 'th', label: 'Thailand' },
		{ type: 'separator' },
		{
			type: 'group',
			label: 'Coming soon',
			items: [{ value: 'vn', label: 'Vietnam', disabled: true }]
		}
	];
</script>

<label for="country">Country</label>
<Select id="country" {items} bind:value={country} name="country" placeholder="Choose a country" />

NativeSelect

A real <select> that takes the same items as Select and submits the same form data. On touch devices it opens the operating system's picker; choose between the two with a media query in your app.

<script>
	import { NativeSelect } from '@frostycle/rime/select';
</script>

<label for="country">Country</label>
<NativeSelect id="country" {items} bind:value={country} name="country" placeholder="Choose a country" />

Combobox

A text input that narrows a list as the user types and sets one value. You filter items yourself from the bound query.

<script>
	import { Combobox } from '@frostycle/rime/combobox';

	let timezone = $state(null);
	let query = $state('');

	const visible = $derived(timezones.filter((zone) => contains(zone.label, query)));
</script>

<label for="timezone">Timezone</label>
<Combobox id="timezone" items={visible} bind:value={timezone} bind:query name="timezone" placeholder="Search timezones" />

Documentation

Props, snippets, keyboard support, state attributes and Tailwind recipes are on https://rime.frostycle.com.

License

MIT