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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@luis.bs/obsidian-components

v0.5.1

Published

Plugin to use template components on render time

Downloads

3

Readme

obsidian-components

example on the test-vault

Features


Instalation

From source

You can activate this plugin, building from source by doing the following:

  • Clone the repository
  • Install the dependencies
  • Run pnpm build or npm run build from a cli
  • Copy the content of the repository dist folder to your vault, the path should look like your-vault/.obsidian/plugins/obsidian-components
  • Open your vault in Obsidian and activate the newly installed plugin

From within Obsidian

I'm working ⚒️ on making this posible.


Usage

Codeblock syntax

All the Codeblocks support the use of YAML and JSON. So the next two Codeblocks will generate the same output.

```use book
title: Lord of the rings
author: J. R. Tolkien
```
```use book
{
	"title": "Lord of the rings",
	"author": "J. R. Tolkien"
}
```

If Dataview is installed and enabled the obsidian syntax can also bee used

```use books
TABLE title, author FROM "books"
```

Custom Codeblocks

This behavior is disabled by default and can be enabled with the Custom Codeblocks Setting.

The custom Codeblocks allow a user to use components avoiding the use word. It uses the components custom names defined by the user instead. Example:

```book
title: 'Cien años de Soledad'
author: 'Gabriel García Márquez'
```

Supported Components Syntax

Each supported syntax can be enabled as a format on the settings. The formats defines how each component file is handled.

  • HTML Components are defined using HTML.
  • Markdown Components are defined using Markdown.
  • Javascript_HTML Components are defined using Javascript and should return a HTML string.
  • Javascript_Markdown Components are defined using Javascript and should return a Markdown string.
  • Javascript_code Components are defined using Javascript and works over the runtime elements.

Dataview Support

When a Dataview query is identified, it is queried against Dataview Plugin and the result is piped into the Component.

The piped values can be checked with the successful flag, when something fails something similar to the next object is passed.

{ successful: false, value: undefined }

For details on the passed data structure, check documentation of Dataview.


Pricing

This plugin is provided to everyone for free, however if you would like to say thanks or help support continued development, feel free to send a little through the following method:

Notes

The plugin is not on active development, new features or changes are developed when there is an oportunity. But issues and bugs will have especial priority.

Obsidian Mobile

There is no current support for Obsidian mobile.