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

@fleetbase/verdaccio-fleetbase-s3-storage

v0.0.4

Published

AWS S3 storage implementation for Verdaccio modified for Fleetbase extensions.

Downloads

8

Readme

Fleetbase Verdaccio S3 Storage Plugin

The Fleetbase Verdaccio S3 Storage Plugin enables the storage of registry files on AWS S3 or similar providers. It is designed to enhance the Verdaccio package registry by providing robust, scalable storage solutions. Additionally, this plugin supports manual uplinks to ensure reliability and accessibility, even when direct downloads from the S3-backed registry encounter issues.

This plugin is integral to the official Fleetbase registry (https://registry.fleetbase.io), a customized Verdaccio instance that supports both npm and composer protocols. It includes specific modifications to serve the unique needs of the Fleetbase ecosystem, particularly for handling Fleetbase extensions.

Features

  • S3 Storage: Seamlessly integrates with AWS S3 to store Verdaccio registry files, ensuring scalable and reliable package management.
  • Fallback Uplink Management: Provides manual uplinks for package retrieval to maintain uptime and access even if the primary S3 connection fails.

Installation

To install the plugin, use the following npm command:

npm install @fleetbase/verdaccio-fleetbase-s3-storage

Configuration

After installation, configure the plugin in Verdaccio's config.yaml file. Below is a sample configuration snippet:

store:
  '@fleetbase/verdaccio-fleetbase-s3-storage':
    bucket: fleetbase-registry
    keyPrefix: flb
    region: ap-southeast-1
    endpoint: http://minio:9000
    accessKeyId: foobar
    secretAccessKey: 1234567e
    s3ForcePathStyle: true

Replace the placeholder values with your actual S3 bucket details and AWS credentials.

Environment Variables Configuration

The Fleetbase Verdaccio S3 Storage Plugin can also be configured using environment variables, providing a flexible way to manage configuration without hard-coding sensitive information directly into the config.yaml file. Below are the environment variables supported by the plugin:

  • AWS_BUCKET: Specifies the S3 bucket name where registry files are stored.
  • AWS_KEY_PREFIX: Allows specifying a prefix to be added to all keys stored in the bucket, useful for namespacing within the bucket.
  • AWS_ENDPOINT: Sets the endpoint URL for the S3 API, useful for using S3-compatible services like MinIO.
  • AWS_REGION: Defines the AWS region where your S3 bucket is located.
  • AWS_ACCESS_KEY_ID: Your AWS access key ID for authentication.
  • AWS_SECRET_ACCESS_KEY: Your AWS secret access key for authentication.
  • AWS_SESSION_TOKEN: The session token for AWS access, necessary if using temporary credentials provided by AWS Security Token Service (STS).

These environment variables can be set in your system's environment settings or included in a .env file, depending on your deployment setup. Make sure to keep your AWS access keys and session tokens secure and do not expose them in public code repositories.

Here is an example of how you might set these variables in a .env file:

AWS_BUCKET=fleetbase-registry
AWS_KEY_PREFIX=flb
AWS_ENDPOINT=http://minio:9000
AWS_REGION=ap-southeast-1
AWS_ACCESS_KEY_ID=foobar
AWS_SECRET_ACCESS_KEY=1234567e
AWS_SESSION_TOKEN=your-session-token-here

Ensure that the environment variables are loaded into your environment where Verdaccio runs so that they can be appropriately used by the plugin.

Usage

Once configured, Verdaccio will automatically begin using the configured S3 bucket for storing and retrieving package data. Ensure that your AWS credentials and bucket permissions are set correctly to avoid any access issues.

Contributing

Contributions to the Fleetbase Verdaccio S3 Storage Plugin are welcome! Please refer to the project's CONTRIBUTING.md for guidelines on how to make contributions.

License

This project is licensed under the AGPL v3 License - see the LICENSE.md file for details.

Support

For support, feature requests, or any queries, please visit the issues section of our GitHub repository.

Acknowledgments

  • Thanks to the Verdaccio community for the extensive support and plugins ecosystem.