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

@fiscalisto/react

v0.1.228

Published

Componentes de React para mostrar en su página la autofactura de Fiscalisto y la liga de datos fiscales de un cliente.

Readme

@fiscalisto/react

Muestre en su aplicación de React la autofactura de Fiscalisto y la liga de datos fiscales de un cliente, sin que su comprador salga de su página.

npm install @fiscalisto/react

Autofactura de un ticket

En su servidor registre la venta con el SDK (fiscalisto.tickets.create) y mande ticket.url a su página. Ahí:

import { FiscalistoEmbed } from "@fiscalisto/react";

export function Facturar({ url }: { url: string }) {
	return (
		<FiscalistoEmbed
			url={url}
			onComplete={(e) => {
				if (e.kind === "ticket") console.log("Factura timbrada", e.uuid);
			}}
		/>
	);
}

El comprador escribe el total de su ticket y sus datos fiscales, y la factura se timbra en ese momento con sus timbres. El marco crece con su contenido.

En una ventana encima de su página

import { useFiscalistoDialog } from "@fiscalisto/react";

export function BotonFacturar({ url }: { url: string }) {
	const { open, dialog } = useFiscalistoDialog({ heading: "Facture su compra" });
	return (
		<>
			<button onClick={() => open(url)}>Facturar mi compra</button>
			{dialog}
		</>
	);
}

FiscalistoDialog hace lo mismo controlado con open y onClose.

La ventana se acomoda a la pantalla: en un teléfono ocupa toda la pantalla; en una computadora es una caja tan alta como el paso (nunca más que la ventana del navegador), con la factura junto al formulario si la pantalla es ancha. El botón principal se queda abajo, a la vista.

Datos fiscales de un cliente

Con customer_data_request.url (POST /v1/customer_data_requests) el mismo componente muestra el formulario de datos fiscales: su cliente los escribe o los toma de su constancia, y Fiscalisto los revisa con las reglas del SAT. onComplete llega con { kind: "customer_data" }.

Qué llega a su página

Solo que terminó (y el UUID de la factura de un ticket). Los datos fiscales de su comprador nunca pasan por su página: léalos con la API o espere su webhook (ticket.invoiced, customer_data_request.completed).

Sin React, use <script src="https://fiscalisto.com/js/fiscalisto.js" defer></script> y Fiscalisto.open(url) o Fiscalisto.mount("#factura", url).

Guía completa: https://fiscalisto.com/docs/api/autofactura