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 🙏

© 2024 – Pkg Stats / Ryan Hefner

sayer

v0.4.1

Published

## Why ?

Downloads

2

Readme

Sayer - The Tiny But Fully Functional RTE for the Web

Currently very buggy, but only due to massive refactoring. And more refactoring is going to be needed. But soon. Ish. Hopefully by the middle of summer this will be ready in all of its glory.

And now for some quotes to distract you from the mess.

Always the seer is a sayer. Somehow his dream is told: somehow he publishes it with solemn joy: sometimes with pencil on canvas: sometimes with chisel on stone; sometimes in towers and aisles of granite, his soul's worship is builded; sometimes in anthems of indefinite music; but clearest and most permanent, in words.

  • Ralph Waldo Emerson

(...) we will call here, the Knower, the Doer, and the Sayer. These stand respectively for the love of truth, for the love of good, and for the love of beauty.

  • Ralph Waldo Emerson

Why ?

Simply because there are no other really good, bare-bone text editors using contentEditable. Most browsers behave very differently in handling line breaks, new blocks, backspaces, deletes, formatting etc. So basically we have overriden all these actions with our own DOM manipulating actions. The only things we use native actions for is actual typing and text traversal (arrow buttons, page up, etc). Even the undo/redo has been completely replaced to allow us to modify the DOM howerver we like, but still be able to go back to previous changes. This might sound like a daunting task, but it turned out to be quite simple. And thus it is also very small, just look below.

Current functions are styling text with italic, bold or underline. Change between P, H1, H2, H3, H4, H5 and H6 blocks for text. Create ordered and unordered lists and undo/redo (in the seperate module snapback).

Sayer is Tiny

Though | Unminified | Minified | Compressed ----------|-------------|-----------|------------- jQuery | Doesn't count| Doesn't count | Sayer | 33.1kb | 19.5kb | Snapback | 6.69kb | 2.94kb | Selectron | 6.27kb | 3kb | Total: | 46.06kb | 35.44kb |

Comparison to Other RTE's

Compatability

CAUTION: This chart is not up to chart. Testing will not be done until refactoring is complete.

    | Quirky    | Full Without Undo | Full      |

--------|-----------|-------------------|-----------| Chrome | 9 | 16 | 18 | IE | N/A | 9 | N/A | Firefox | 1 | 3.6 | 14 | Safari | Unknown | Unknown | 6 | Opera | Unknown | Unknown | 15 |