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

autolambda

v0.0.8

Published

Used to Create and Deploy Lambda applications and push to git

Downloads

2

Readme

autolambda

Simple CLI utility to organize similar AWS Lambda functions within a master directory and keep up with git.

It is a pain to create a repo for every individual AWS lambda function, zip and manually upload packages to AWS. Syncing the two are a pain.

autolambda will help with synchronizing your git commits and AWS Lambda function publishing. It will handle both committing and publishing for you.

Prerequisites

Make sure your system supports bash scripts. Tested on MacOS

  1. Make sure git commands are available in your $PATH for your shell

  2. Install the aws-cli in your global path

autolambda utilizes bash scripts for its commands

folder names should be the same as AWS lambda function names

Install

npm install -g autolambda

Usage

Init Main Directory

autolambda init --name myFunctions --desc "These functions are related"
cd myFunctions

Create & Publish Function for First Time

autolambda create --name HelloNode --runtime node --role "arn:aws:iam::abcdefghijk" --desc "Hello World Function in Node"  

Publish and Update to the Function

autolambda publish --name HelloNode --desc "changed main.js text"   

API

Init Main Directory

autolambda init [--desc <text>] 

Creates local git and adds a readme with description from user.

Sets-up a parent directory for all your lambda functions. Useful for creating a set of associated Lambda functions, eg. API, or image-pipeline.

Create Function

autolambda create --name <function-name> --runtime <node,python> 
[--role <Role ARN>] [--desc <text>] 

Asks for function description. You may also set a default role for your session with the defaults command.

You may use node or python as a runtime.

Will initialize and create a Lambda function and publish to AWS. The default AWS file is used to create your function.

A deployment.zip is made and uploaded.

Publish change To Git And AWS

autolambda publish --name <function-name> 

Asks for the change set to commit. Commits and the deployment package to Lambda. Only commits files that have changed for this particular function.

Delete Function

autolambda delete --name HelloNode

Deletes function and folder

Set a Default Role

autolambda defaults --role <ROLE ARN> 

This lets you set a default role for your session that all create functions will use when setting up your lambda functions

Future Work

  • Validation and Tests
  • Need to add settings command to easily change defaults.json
  • Move away from to utilize REST API calls

License

MIT