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

sounny-forms

v1.0.0

Published

High-speed 2.5KB serverless form backend & React hook for SounnyForms (forms.sounny.com). Built-in anti-spam honeypot, offline queue, and zero cold-start delivery.

Readme

SounnyForms Client SDK (sounny-forms)

npm version License: MIT Bundle Size

The ultra-lightweight (2.5KB) official client SDK and React hook for SounnyForms — the zero-API-key serverless form processing backend and real-time lead manager.


⚡ Features

  • Zero Configuration: Drop in and submit form data using only your email address or form ID.
  • Built-in Anti-Spam: Automatic honeypot injection and focus velocity timers block 100% of crawler bots.
  • First-Class React Hook: useSounnyForm with submitting states, error handling, and success events.
  • Zero Dependencies: Pure vanilla JavaScript, 2.5KB gzipped.
  • Universal: Works seamlessly with React, Next.js (App Router / Pages Router), Remix, Vite, Astro, and static HTML.

📦 Installation

npm install sounny-forms
# or
yarn add sounny-forms
# or
pnpm add sounny-forms

🚀 Usage

1. React / Next.js Hook (useSounnyForm)

import React from 'react';
import { useSounnyForm } from 'sounny-forms/react';

export default function ContactForm() {
  // Pass your formId or recipient email
  const { submitting, succeeded, error, handleSubmit } = useSounnyForm('YOUR_FORM_ID_OR_EMAIL');

  if (succeeded) {
    return <p className="text-green-600 font-medium">Thank you! Your message was sent.</p>;
  }

  return (
    <form onSubmit={handleSubmit} className="space-y-4">
      <div>
        <label>Your Email</label>
        <input type="email" name="email" required className="border p-2 w-full rounded" />
      </div>

      <div>
        <label>Your Message</label>
        <textarea name="message" required className="border p-2 w-full rounded" />
      </div>

      {error && <p className="text-red-500 text-sm">{error.message}</p>}

      <button
        type="submit"
        disabled={submitting}
        className="bg-orange-600 hover:bg-orange-700 text-white font-semibold py-2 px-6 rounded"
      >
        {submitting ? 'Sending...' : 'Send Message'}
      </button>
    </form>
  );
}

2. Vanilla JavaScript / TypeScript (submitForm)

import { submitForm } from 'sounny-forms';

async function handleCustomSubmit() {
  try {
    const result = await submitForm('[email protected]', {
      name: 'Alex Rivera',
      email: '[email protected]',
      message: 'Interested in enterprise licensing.',
    });

    console.log('Submission confirmed:', result.submissionId);
  } catch (err) {
    console.error('Failed to submit:', err);
  }
}

3. Pure HTML / Script Tag (Zero Build)

<script src="https://cdn.jsdelivr.net/npm/sounny-forms@1/dist/sounny-forms.min.js"></script>

<form data-sounnyform="contact_form" action="https://forms.sounny.com/f/[email protected]" method="POST">
  <input type="text" name="name" placeholder="Your Name" required>
  <input type="email" name="email" placeholder="Your Email" required>
  <textarea name="message" placeholder="Your Message" required></textarea>
  
  <button type="submit">Send Message</button>
</form>

📄 License

MIT © Dr. Moulay Anwar Sounny-Slitine