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

rhino-editor

v0.14.3

Published

A custom element wrapped rich text editor

Downloads

2,410

Readme

Purpose

To create a grab and go WYSIWYG editing experience that can hook into Ruby on Rails ActionText backend. Currently this package does so using TipTap but will most likely include another integration for ProseMirror to allow for both Markdown + WYSIWYG editing.

Documentation

https://rhino-editor.vercel.app

Local Development

This section is for contributing to Rhino Editor.

Getting up and running locally is hopefully quite painless. We have a test suite using Ruby on Rails and is intended to provide a good demonstration of how this package can hook into ActionText.

Contributions should be made on a feature branch in a forked repository.

Prerequisites

  • Ruby 3.1.2
  • Rails 7.0.4
  • PNPM (npm install -g pnpm)
  • Playwright (npm install -g playwright)
  • Node >= 16
  • Docker (Used to run a simulated S3 server)
  • A Docker virtualizer (Orbstack or Docker Desktop)
  • Overmind (Preferred, not needed npm install -g overmind)

Installation

Run the following commands in the bash to setup dependencies:

git clone https://github.com/konnorrogers/rhino-editor
cd rhino-editor
pnpm run setup

Running the server

The easiest way to run the server is using Overmind. First start up your Docker virtualizer, then in two termainals…

Terminal 1:

pnpm run start

Terminal 2:

cd tests/rails
overmind start -f Procfile.dev

Then navigate to localhost:5100

Without Overmind

To run the server without Overmind do the following in seperate terminals:

bin/vite dev --clobber
bin/rails s
docker compose up --build

Then navigate to localhost:5100

Running the test suite

Make sure to have the docker server up and running, the test suite will fail without it.

docker compose up --build
bundle exec rails test:all

Listening for changes to the package

To listen for changes, keep your rails server running and open a new terminal with the following:

pnpm run start

This will start an ESBuild watcher process. Vite in Rails will automatically pick up changes.

Adding a changelog entry

To add a changelog entry, we use https://github.com/changesets/changesets. Run the following command and then answer the prompts:

pnpm changeset

Roadmap to v1

  • [ ] - Collaboration Extension. Support collaboration!
  • [ ] - Document slots, CSS properties, Extending ActionText, and show common demo examples
  • [ ] - Create a ProseMirror base for a markdown + rich text editor
  • [ ] - Move the TipTap editor to extend the ProseMirror editor.
  • [ ] - Show how to do table editing
  • [ ] - Show how to do embeds
  • [ ] - Show how to do mentions
  • [ ] - Add testing for the basic operations bold, strike, etc.
  • [ ] - Add testing for ActionText / Trix compatibility.