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

requestizer

v0.9.3

Published

HTML contact requests made easy

Downloads

21

Readme

requestizer

By Oceanhouse21

Build Status

requestizer

requestizer is a leightweight tool enabling your oganisation to receive contact requests via email, built upon express.

Features:

DEPENDENCIES

USAGE

Install, configure and deploy on heroku:

git clone https://github.com/oceanhouse21/requestizer
heroku create
git push heroku master

Copy and paste the returned Heroku URI. Add Heroku config variables:

heroku config:set SENDGRID_USERNAME="your_username"
heroku config:set SENDGRID_PASSWORD="your_password"
heroku config:set FROM_EMAIL="[email protected]"
heroku config:set TO_EMAIL="[email protected]"
# If using custom templates
heroku config:set TEMPLATE_URL="http://s3.yourtempalte.de/config.json"

Finally embed this script in any of your html files and change the heroku link.

<form id="requestizerForm" action="javascript:submit();"> 
  <label for="email">Email:</label>
  <input type="text" name="email">
  <label for="message">Message:</label>
  <input type="text" name="message">
  // If using custom templates, otherwise skip next line
  <input type="hidden" name="template" value="starter_template">
  <button id="submitForm">Submit</button>
</form>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript">
  function submit () {
    var formData = JSON.stringify($("#requestizerForm").serializeArray());
    $.ajax({
      type: "POST",
      url: "http://yourapp.herokuapp.com/request",
      contentType: "application/json",
      data: formData,
      success: function(){
        window.alert("Thank you for your request!");
      },
      error: function(){
        window.alert("Sorry, something went wrong ;-(\nPlease try again.");
      }
    });
    return false;
  };
</script>

CUSTOM TEMPLATES

Custom templates are defined in an additional JSON file that may be placed anywhere, e.g. on S3 or in a public git repo, gists do not work. Example configuration (see also config_sample.json](https://github.com/oceanhouse21/requestizer/blob/master/config_sample.json)):

// config.json
{
  "starter_template": {
    "request": {
      "from": "[email protected]",
      "to": "[email protected]",
      "subject": "New request",
      "html": "<h1>Yo, new request</h1>",
      "text": "Yo, new request",
      "type": "request"
    },
    "thanks": {
      "from": "[email protected]",
      "subject": "Thank you",
      "html": "<h1>Thank you!</h1>",
      "text": "Thank you!",
      "type": "thanks"
    }
  }
}

Make sure to configure custom templates on Heroku and in the HTML form field.

LICENSE

MIT License. Copyright 2014-2015 Oceanhouse21 GmbH. http://www.oceanhouse21.com

You are not granted rights or licenses to the trademarks of Oceanhouse21 GmbH, including without limitation the requestizer name.