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

h0ck-infrastructure

v0.96.0

Published

Repository for H0ck Framework Infrastructure. In this repository all the configuration, data and files for the deployment in AWS is stored.

Downloads

3,310

Readme

H0ck Framework - Infrastructure

Repository for H0ck Framework Infrastructure. In this repository all the configuration, data and files for the deployment in AWS is stored.

This is also a NPM package that can be executed in with a command line interface:

npx h0ck-infrastructure

The stacks used in the deployment are specified in the /lib folder. There is one file for each one of the component. This component implements the AWS CDK framework. All the info about this framework can be found on

https://aws.amazon.com/es/cdk/

Services deployed

EC2 Machine

By default one instance of a T2 micro with linux is deployed. A docker compose is sent to the EC2 and executed to deploy the H0ck Core API together with a Redis database. Finally the IP of the machine is extracted to a environment variable used in the deploy for the next service, the AWS S3 Bucket.

S3 Bucket

The deployment creates a S3 buckets with all the files contained in the frontfiles folder. The front files are already in the folder, but the react app will be built before deployment to have the latest version and to create the infrastructure.json file with the IP of the EC2 machine previously deployed on it.

By default, once the application is destroyed the bucket together with all the files are removed.

Lambda functions

The final service to be deployed are the specified lambda functions. The amount of lambda deployment and its configuration can be changed in the h0ck-infrastructure.yaml file. This file contains which amount of lambdas should be deployed for each one of the frameworks availables.

Lambdas uses AWS Lambda Layers so each instance of a Lambda only takes some bytes of space. The more lambdas are deployed, the more IPs will be available for the H0ck framework to use and to distribute the jobs.