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

@scriba-editor/plugin-hr

v0.1.1

Published

Horizontal line and page break for the Scriba editor.

Readme

@scriba-editor/plugin-hr

Linea orizzontale e interruzione di pagina per l'editor Scriba (menu Inserisci, come in TinyMCE).

pnpm add @scriba-editor/plugin-hr

Uso

import { Schema, basicSchemaSpec } from '@scriba-editor/core'
import { hrNodes, hrPlugins, hrSlashItems, hrToolbarItems } from '@scriba-editor/plugin-hr'

const schema = new Schema({
  nodes: { ...basicSchemaSpec.nodes, ...hrNodes },
  marks: basicSchemaSpec.marks,
})

// nello stato dell'editor
plugins: [...hrPlugins(t)]

// pulsanti (Inserisci ▸ Linea orizzontale, Interruzione di pagina) e menu slash
const [hr, pageBreak] = hrToolbarItems(schema)
const slash = hrSlashItems(schema) // "/linea", "/interruzione"

Nodi

| Nodo | HTML | Note | | ----------------- | -------------------------------- | ------------------------------------------------------------------------------------------ | | horizontal_rule | <hr> | Linea orizzontale. | | page_break | <hr class="scriba-page-break"> | Qualsiasi viewer mostra una linea; gli stili di stampa del tema iniziano una nuova pagina. |

Nessuno dei due ha attributi: altre classi o attributi di un <hr> vengono scartati.

Esportazioni

| Nome | Cosa fa | | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | hrNodes | Le due specifiche di nodo. | | insertHorizontalRule, insertPageBreak | Comandi: inseriscono nel cursore (il paragrafo viene diviso, in un paragrafo vuoto lo sostituiscono); il cursore va nel testo dopo, aggiungendo un paragrafo se non c'è. Non funzionano nei blocchi di codice. | | hrToolbarItems(schema) | Due pulsanti: linea e interruzione di pagina. | | hrSlashItems(schema) | Due voci del menu slash. | | hrPlugins(t) | Dà un nome alle interruzioni di pagina per i lettori di schermo. | | PAGE_BREAK_CLASS | La classe fissa scriba-page-break. |

Con @scriba-editor/plugin-markdown, scrivere ---, ___ o *** da soli in un paragrafo vuoto inserisce la linea orizzontale.

Sicurezza e accessibilità

  • La classe dell'interruzione è fissa: nessuna classe proveniente dall'esterno viene accettata (vedi sicurezza).
  • Nell'editor ogni interruzione di pagina riceve un aria-label (un <hr> da solo è soltanto "separatore"); l'etichetta esiste solo nel DOM dell'editor, l'HTML salvato resta semplice.
  • Il salvataggio come pagina HTML di @scriba-editor/plugin-file e la stampa rispettano l'interruzione.

Vedi anche plugin e accessibilità.