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

serverless-form

v1.0.6

Published

This project is made for those who need to add custom HTML forms a static page or static website.

Downloads

10

Readme

Serverless Forms

This project is made for those who need to add custom HTML forms a static page or static website.

It is a simple nodejs server which forwards all POST submission by email. Inspired by the excellent formspree with the goal to be simpler to install and cheaper to host. No database, 100% server (nodejs), just sends the submissions by email.

Suggestion: you can automate the management of the subissions with tools like Huginn, node-red, IFTTT, Zappier

Links:

1 click deploy

Deploy in 1 click on heroku

Deploy in 1 click

Local install and use

1- type these 2 commands

$ npm install
$ EMAIL_USER="[email protected]" \
  EMAIL_PASS="abcd" \
  EMAIL_HOST="mail.gandi.net" \
  EMAIL_PORT=587 \
  TO="[email protected]" \
  npm start

2- Open http://localhost:8080 to see the HTML form which resides in form.html. Submit the form and it will send you an email with the content of the form.

3- You can customize the form, it will keep sending you all the field of the form by email.

Config

Here are all the environment variables you can use

| Env var | description | |---|---| | MESSAGE | Message to displayed after the form submission. May contain HTML. Default: 'Thank you for your submission.' | | TO | Email address to send the form to (your email) | | FROM | Email address to use as sender address | | SITE_NAME | Name of your site, will be displayed in the email title | | PORT | Port to listen to for form submissions | | FORM | Path to the HTML file containing the example form, defaults to ./form.html | | EMAIL_HOST | SMTP config: see these options here | | EMAIL_PORT | SMTP config: see these options here | | EMAIL_USER | SMTP config: see these options here | | EMAIL_PASS | SMTP config: see these options here |