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-community-lib

v2.0.2

Published

Commonly used functions in Obsidian plugins

Readme

npm

Obsidian Community Lib

This is a community-maintaned library of commonly used functions when developing Obsidian plugins.

To use the library in your plugin:

  1. Install it using npm i obsidian-community-lib,
  2. Then grab functions out of the library using import { function } from "obsidian-community-lib".

Read more about the included methods here.

Contributing

Disclaimer: By contributing to this repository, you grant the maintainer an irrevocable license to use the contribution under the license specified in the LICENSE file found in the root of this repository. The maintainer of this project can choose to change the license, or transfer maintainer status at any time. Every contributor must not infringe any copyright in their contribution.

This library is very much made for everyone to use and contribute to. If you would like to add a function or edit existing functions, please submit a pull request with your changes.

To add new functions, go to src/utils.ts and add your code as an exported function. You can also add an entirely new file under src to better organise everything!

Then, go to src/index.ts and export your functions from the appropriate file. See src/index.ts for examples of how to do this.

Conventional Commits

In your commit messages, it is highly encouraged for you to use the Conventional Commits format. This helps keep everything standardised, and allows us to automatically create a changelog file using the commit messages.

VS Code has a conventional commits extension you can use to make this even easier!

TS Doc

In order to make your functions more useable for others, please consider using TS Doc to document your code in a standardised way.

This will show a nicely formatted description of your function when a user hovers over it:

VS Code has an extension to automate alot of this process based on the type declarations in the function definition:

image