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

@dldc/docsy

v2.0.0

Published

A syntax for Component based documents

Readme

Docsy

A syntax for Component based documents

Syntax

Text

By default any content is considered as text.

Comments

You can use line comments // or block comments /* and */.
Comments also works inside elements !

Inject

You can insject value with {}:

Two plus two is {2 + 2} !

Identifier

An identifier must start with a letter ([A-Za-z]) and can contain letters, numbers and _.

Expression

An expression can be:

  • A literal value
  • An identifier
  • A function call
  • A dot member
  • A bracket member

Literal value

String

Strings works like in JavaScript:

  • Single and double quotes do not support new lines.
  • Backtick quote support new lines.

Numbers

Exponent are not supported

Boolean

true and false

Null & Undefined

null and undefined are supported

Elements

Basic elemment

<|Tag>Content<Tag/>

Raw element

Raw Element content is always treated as text.

<#Tag>Content<Tag/>

Close tag shortcut

Both normal and raw closing tag can omit the tag name:

<|Tag>Content</>
<#Tag>Content</>

Self closing element

</Tag/>

Line element

Line element end at the end of the line (or end of file)

<Tag>Content

Fragments

<|>Content</>
<#>Raw Content</>

Tag name

Tag name must be a valid identifier or a member access like foo.bar.

Examples

// Normal: open / close
<|Tag>Some content<Tag/>

// Normal: open / close shortcut
<|Tag>Some content</>

// Raw: open / close
<#Tag>Some content<Tag/>

// Raw: open / close shortcut
<#Tag>Some content</>

// Normal: line
<Tag>Hello Test

// Self closig
</Tag/>

// FRAGMENTS

// Normal fragment
<|>Some content</>

// Raw fragment
<#>Some content</>

Attributes

Any opening / self closing tag can have attributes.

Attributes are sparated by whitespace and are in the form NAME=VALUE or simply NAME.

Attribute name can be any valid identifier.

Attribute value can be any expression.