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

obsidian-svelte-ui

v2.2.0

Published

Svelte 5 components and utilities for building [Obsidian](https://obsidian.md) plugins.

Readme

obsidian-svelte-ui

Svelte 5 components and utilities for building Obsidian plugins.

Often times when building Obsidian plugins with Svelte, I find myself having to choose between the ease of building UI in Svelte and the desire to leverage the UI components provided by the Obsidian plugin API. This package aims to eliminate this choice by providing Svelte components that bridge this gap, allowing the Obsidian components to be rendered easily in Svelte. These aren't components built to look like the ones provided by Svelte; these are the Obsidian components, exposed through a Svelte-friendly API.

Installation

npm install obsidian-svelte-ui
# or
pnpm add obsidian-svelte-ui

Requires obsidian ^1.12.3 and svelte ^5.0.0 as peer dependencies.

Additionally, you will need to add the svelte condition to your Obsidian plugin's esbuild config file in order to allow the external Svelte components within this package to be correctly resolved.

Uaage

Components

| Component | Description | | -------------------------------------------------------------------- | ---------------------------------------- | | Button | Wraps Obsidian's ButtonComponent | | Color | Wraps Obsidian's ColorComponent | | Dropdown | Wraps Obsidian's DropdownComponent | | ExtraButton | Wraps Obsidian's ExtraButtonComponent | | Modal | Wraps Obsidian's Modal | | MomentFormat | Wraps Obsidian's MomentFormatComponent | | ProgressBar | Wraps Obsidian's ProgressBarComponent | | Search | Wraps Obsidian's SearchComponent | | Secret | Wraps Obsidian's SecretComponent | | Setting | Wraps Obsidian's Setting | | SettingGroup | Wraps Obsidian's SettingGroup | | Slider | Wraps Obsidian's SliderComponent | | Text | Wraps Obsidian's TextComponent | | TextArea | Wraps Obsidian's TextAreaComponent | | Toggle | Wraps Obsidian's ToggleComponent |

Attachments

Svelte 5 attachments are functions that can be applied to elements using the {@attach ...} directive.

| Attachment | Description | | ---------------------------------------------------------------------- | ------------------------------------------------------------------- | | setTooltip | Attaches an Obsidian tooltip to an element | | inputSuggest | Wires up an AbstractInputSuggest instance to a text input element |

SvelteComponent

A class for rendering a Svelte component inside an Obsidian view, compatible with Obsidian's child lifecycle. See the full documentation.

Example Plugins

The following repositories my be useful as references for how this package can be used:

AI Disclaimer

This package makes use of AI as part of it's development. I would not call it vibe-coded, but Claude has been used to automate the process of generating the Svelte component wrappers once a good pattern for doing so was discovered.