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

s3-prototype

v0.2.9

Published

Easily publish password-protected Prototypes on Amazon S3 as static websites. Forked from s3-website.

Downloads

11

Readme

s3-prototype

Notes

This was forked from https://github.com/klaemo/s3-website

Great deploy tool! But we wanted the ability to create complex s3 bucket policies that we could use for password-protected prototypes. So, we forked it for our GUI deploy tool.


Easily publish password-protected Prototypes on Amazon S3 as static websites.

Creates a bucket with the specified name and enables static website hosting on it. Also, sets up a public-read bucket policy. Can optionally password protect a static site.

Your AWS credentials should either be in ~/.aws/credentials, a file in the local directory entitled .env with the values

[default]
aws_access_key_id = MY_ACCESS_KEY_ID
aws_secret_access_key = MY_SECRET_ACCESS_KEY

or in the environment variables AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Your website policy and configuration will only be sent to S3 when it differs from the existing.

Note!

Because of limitations of the S3 API, any changes made to the website policy or configuration in the S3 web interface, or elsewhere, will be overwritten by the settings provided to s3-prototype.

Installation

s3-prototype is a node.js program/module.

npm i -g s3-prototype

Usage (CLI)


  $ s3-prototype -h
  Commands:

    create [options] <domain>      Will create and configure an s3 website
    deploy [options] <upload-dir>  Will push contents of directory to specified s3 website

To see options for each command s3-prototype command -h

Create

Usage s3-prototype create <desired.bucket.name> [options]

  • Will create a new bucket with desired name
  • Will configure bucket for static hosting

Deploy

Usage s3-prototype deploy <directory-to-upload> [options]

  • Will upload all contents of directory to bucket, replacing existing files
  • Bucket can be specified by providing command line argument -d, or --domain followed by the name of the s3 bucket. If no option is provided s3-prototype will look for config file written when bucket is created. ** Because there is an issue in the command line library, you must to put the "-d" option last. The next dependency version should fix this issue

All the options are optional ;-).

s3-prototype -r eu-central-1 cool.website.me creates a website bucket with the following URL http://cool.website.me.s3-prototype.eu-central-1.amazonaws.com. You can then set up a CNAME record for cool.website.me pointing to that hostname.

License

ISC