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

@withmarsha/form-embed

v1.0.0

Published

Marsha lead intake form embed loader (inline iframe).

Readme

@withmarsha/form-embed

Loader del formulario de captación de Marsha (iframe inline), distribuido por npm para poder servirlo vía CDN (unpkg).

La Recepcionista web es un paquete aparte, con su propia versión: @withmarsha/embed (embed.js). Se versionan y publican de forma independiente para que un cambio en uno no toque al otro.

El loader vive commiteado aquí en form.js (es un fichero suelto de navegador, IIFE, sin build). El paquete se distribuye solo por npm/unpkg; no se sirve self-hosted.

Una sola vez: cuenta y login

  1. Tener una cuenta npm con acceso al scope @withmarsha (crear la org en npmjs.com; gratis para paquetes públicos).
  2. Iniciar sesión en la máquina:
    npm login          # abre el navegador para autenticar
    npm whoami         # confirma que estás logueado
    La sesión queda guardada; no hay que repetirlo en cada publicación.

Publicar una versión nueva

  1. Edita el loader en packages/form-embed/form.js.
  2. Sube la versión en packages/form-embed/package.json (semver):
    • parche (1.0.01.0.1) para fixes,
    • minor (1.0.01.1.0) para cambios compatibles,
    • major (1.0.02.0.0) para cambios que rompen el snippet del cliente.
  3. Publica (o taguea form-embed-v<version> y deja que lo haga la GitHub Action .github/workflows/publish-form-embed.yml):
    cd packages/form-embed
    npm publish
    publishConfig.access: "public" ya lo deja como paquete público.

unpkg lo sirve automáticamente (no se "sube" nada a unpkg):

https://unpkg.com/@withmarsha/[email protected]/form.js

Comprobar qué se va a publicar sin publicar:

npm pack --dry-run

Snippet que pega el cliente

<div data-marsha-form="form_xxx"></div>
<script async src="https://unpkg.com/@withmarsha/form-embed@^1.0.0/form.js"></script>
  • ^1.0.0 = el cliente recibe la última 1.x automáticamente; un cambio que rompa exige publicar 2.0.0 y que el cliente actualice el rango a mano.
  • data-marsha-form = leadFormPublicId de la organización (form_…); se copia desde el editor del formulario (pestaña «Insertar»). El iframe solo carga en los dominios de leadForm.allowedDomains.
  • data-origin (en el <script>) = opcional, solo para apuntar a un backend que no sea prod (dev/staging/preview). Por defecto usa https://withmarsha.com.