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

ember-rough-notation

v0.1.0

Published

Ember components and modifiers for the RoughNotation library.

Readme

ember-rough-notation

An Ember wrapper for RoughNotation, a small Javascript library to create and animate annotations on a web page.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-rough-notation

Usage

Rough-Notation Component

This is the main component for using an annotation.

Examples

{{!-- Inline component --}}
<Rough-Notation @type="underline" @show={{true}} @text="Lorem Ipsum" />

{{!-- Block Notation --}}
<Rough-Notation @type="underline" @show={{true}}>
    Lorem Ipsum
</Rough-Notation>

Properties

| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | type | string | underline | This is a mandatory field. It sets the annotation style. Options are underline, box, circle, highlight, strike-through, crossed-off | | show | boolean | false | Show/hide the annotation | | group | array | | an array of annotations maintained by the Rough-Notation-Group component | | text | string | | The text to be rendered inside the component if no block content exists | | animate | boolean | true | Boolean property to turn on/off animation when annotating | | animationDuration | int | 800 | Duration of the animation in milliseconds | | animationDelay | number | 0 | Delay in animation in milliseconds. | | color | string | currentColor | String value representing the color of the annotation sketch | | strokeWidth | int | 1 | Width of the annotation strokes | | padding | int | 5 | Padding between the element and roughly where the annotation is drawn | | iterations | int | 2 | By default annotations are drawn in two iterations, e.g. when underlining, drawing from left to right and then back from right to left. Setting this property can let you configure the number of iterations |

Rough-Notation-Group

Multiple annotations can be grouped together and the animations triggered in order by using a group component. It yields a group array that can be passed to Rough-Notation components.

Examples

<Rough-Notation-Group @show={{true}} as |group|>
    <p>
        Lorem ipsum dolor sit amet,
        <Rough-Notation @group={{group}} @text="consectetur adipiscing" /> elit.
        Donec condimentum nibh eleifend, egestas orci a, vulputate lorem.
        <Rough-Notation @group={{group}} @text="Fusce ornare" /> molestie ipsum sed tincidunt.
    </p>
</Rough-Notation-Group>

Properties

| Name | Type | Default | Description | | ---- | ---- | ------- | ----------- | | show | boolean | false | Show/hide the annotation |

Annotate Modifier

If you don't need a lot of control over an annotation after initial render, the {{annote}} modifier is a good lighweight option.

Examples

<p>
    <span {{annotate (hash type="box" color="red")}}>Lorem ipsum</span> dolor sit amet, consectetur adipiscing elit.
    Donec condimentum nibh eleifend, egestas orci a, vulputate lorem.
    <span {{annotate (hash type="underline")}}>Fusce ornare</span> molestie ipsum sed tincidunt.
<p>

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.