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

lxdhub

v1.2.5

Published

Display, search and copy LXD-images using a web interface.

Downloads

11

Readme

Purpose

LXDHub is a management system for linux containers (LXC). With LXDHub you can visualize LXC images of multiple (private & public) remotes. One of the key features of LXDHub is to clone LXC images from one remote to another. Therefor you can mirror public remotes to your private remote.

Packages

Under the hood, LXDHub is split in five packages. The following graph visualizes the dependencies of each package.

Package Dependency

The packages @lxdhub/db and @lxdhub/common are solely libraries, which can not be run seperatly. Whereas the packages @lxdhub/web, @lxdhub/api and @lxdhub/dbsync can be run seperatly via Docker or NodeJS.

Installation

Prerequisites

Generate LXC Certificate

Before you can start the application, you need to add your LXC certificates. More information on generate-lxc-certificates.md

Configure Remotes

You update the lxdhub remotes by editing the lxdhub.yml file. Simply copy the given template and add / alter remotes.


mv lxdhub.yml.template lxdhub.yml
vi lxdhub.yml

Run in Docker

This script builds the project, builds the docker containers and runs them.

docker-compose build
docker-compose up

Tests

Unit / Integration Tests

Run the automated test cases with NodeJS.


# Only need to do once
npm install
# Run tests
./bin/run-tests.sh
# Get coverage report on http://localhost:8000
cd coverage && python -m SimpleHTTPServer 8000

Environment for Manual Testing

LXC

First you need to install lxd. Then run the command ./bin/setup-local-test-remote.sh which uses the port 8443 for your local LXC REST API. The default password for your local remote is unsecret.

LXDHub API

The LXDHub API offers a test environment, which can be tested manually. To run the tests, NodeJS V9 needs to be installed and run npm install. Run


./bin/start-lxdhub-api-test-env.sh

The data will no be loaded from your local SQLite database. The model data inside the test environment, are defined inside the src/api/test/fixtures/*.json files.

Related

  • @lxdhub/web: The LXDHub webinterface
  • @lxdhub/api: The REST API for the LXDHub webinterface
  • @lxdhub/dbsync: The script to synchronize multiple LXD remotes with the LXDHub database
  • @lxdhub/db: The package, which provides database functions for the @lxdhub/api and @lxdhub/dbsync packages
  • @lxdhub/common: The package, which provides common functions for all LXDHub-packages
  • CONTRIBUTING.md: The contributing guidelines
  • COPYRIGHT: Copyright informations
  • publish.md: Documentation on how LXDHub is being published
  • LXC: The underlaying technology behind LXDHub

People