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

git-lfs-lambda

v1.0.1

Published

Deployment logic for git-lfs-lambda-server

Downloads

6

Readme

Git LFS Lambda

Git-lfs-lambda (GLL for short) is intended to be an easy, push-button solution to deploying a git-lfs endpoint for a git repo. It uses AWS Lambda and AWS API Gateway to handle requests and instructs the git lfs client to store binary files in AWS S3. The actual server implementation is in a separate project; this project focuses on the deployment of a service instance.

Caution!

This project is not production ready. Using the create command will generate a production stack that does not implement any form of authorization or authentication. This means that anyone with the REST API endpoint url can use it to store files in your S3 bucket. This will eventually be corrected, but in the meantime use at your own risk!

If you need a temporary solution that is less risky, the core server code project contains instructions on how to use it locally, independent of a full AWS deployment.

Getting Started

Install by cloning this repository or via NPM with:

npm install git-lfs-lambda

The gll script in the root directory is the primary entry point, and currently features two commands.

Create

gll create myRepoName

This will create and deploy the entire git-lfs-lambda server setup, configured for a repo named 'myRepoName'. The primary AWS artifacts that will be created are:

  • S3 bucket: myRepoName-git-lfs-lambda
    • The primary artifacts bucket where the repo's binary files will go.
  • S3 bucket: myRepoName-git-lfs-lambda-deployment
    • Another S3 bucket used in the deployment of the service. If desired, this can be removed once the deployment is complete.
  • Lambda functions: myRepoName-git-lfs-lambda-*
    • There are 6 lambda functions in total. 5 as part of the git-lfs server spec and an additional one to serve the optional 'verify' action.
  • REST API: myRepoName-git-lfs-lambda-stack
    • The API Gateway endpoints for the git-lfs functions.
  • CloudFormation stack: myRepoName-git-lfs-lambda-stack
    • Entire service stack entity.

Details on other minor artifacts such as IAM roles and permissions can be found in the CloudFormation stack details.

Delete

gll delete myRepoName

Delete will attempt to remove the entire git-lfs-lambda stack, as well as the deployment bucket. For safety, no non-empty buckets will be removed.

Built With

Contributing

There's lots to do, go for it.

Versioning

GLL uses SemVer for versioning. For the versions available, see the releases page

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details