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

netget

v2.4.35

Published

Rette Adepto/ Recibido Directamente.

Downloads

2,016

Readme

NetGet


Unleash the Cyberspace Within

In development stage and subject to changes.

Learn more at: netget.me

NetGet streamlines the orchestration of digital domains with the simplicity of a pedal's press, enabling seamless symphonies across networked realms. Acts as a dynamic conduit, directing internet traffic to local services. Inspired by the vast digital landscapes of cyberpunk lore and the simplicity of guitar pedals.

Installation

NetGet is available as an npm package and can be installed globally using npm. This allows you to use NetGet from anywhere on your system.

npm install -g netget

Starting the CLI

Once installed, you can start the NetGetX CLI by simply running the following command in your terminal:

netget

What Does NetGetX Do?

NetGetX serves as the backbone for configuring NGINX under the NetGet ecosystem. Here’s what it primarily focuses on:

  • Verifying NGINX Server Block: Ensures the default NGINX server block matches the expected setup for optimal traffic handling.
  • Handling Permissions: Manages permission issues that might occur during the configuration process, offering solutions like elevated privileges or manual instructions to proceed.
  • Routing Traffic: Configures NGINX to listen on public IPs and route incoming HTTP requests to designated internal servers, making it ideal for environments that require efficient traffic management.

By using NetGetX, you ensure that NGINX is optimally configured to act as a robust, efficient gateway, directing incoming traffic to the right internal endpoints without manual intervention.


NetGet GateWays

NetGet is particularly useful in environments where multiple services or applications must be accessible through a single entry point, commonly known as a reverse proxy setup.

Local NetGet Setup: On your local machine, NetGet operates within your Node.js environment, managing local traffic and processing requests according to your configured rules. The GateWays doesn't directly face the internet and instead communicates with an external NetGetX instance that does.

Install as a Node Module Dependency.

npm install netget

GateWay SetUp

// NETGET
import NetGet from 'netget';
import { routes } from './GET/routes.js';
let netget = new NetGet();
netget.Gateway({ routes: routes }).listen();

If no port specified the Gateway listens at http://localhost:3004/

This will set up a gateway that will listen to all traffic in a specific port, detect the domain, host, subdomain and act accordingly.

Constructor:

  • Initializes a new instance of the Gateway class.
  • @param {Object} config - The configuration object for the gateway.
  • @param {Object} [config.host='localhost'] - The host name on which the gateway will listen.
  • @param {number} [config.port=3432] - The port number on which the gateway will listen.
  • @param {Object} [config.routes={}] - An object mapping domains to their respective request handlers.
  • @param {string} [config.domainsConfigPath='./config/domains.json'] - The path to the domains configuration file.
class Gateway {
  constructor({   
   host = process.env.HOST || 'localhost', 
   port = process.env.NETGET_PORT || 3432, 
   routes = {},
   domainsConfigPath = process.env.DOMAINS_CONFIG_PATH || './config/domains.json' 
  } = {}) {
   this.host = host;
   this.port = port;
   this.routes = routes;
   this.domainsConfigPath = domainsConfigPath;
   this.app = express();
   this.initialize().catch(err => console.error('Initialization error:', err));
  }

It detect the host making the request, domain, subdomain and acts accordingly through the routes given and its handlers.

Scalable Web Services

In a microservices architecture, NetGet can route requests to different services within your infrastructure, making it an ideal solution for developers looking to scale their applications horizontally. Each service can have its own domain, and NetGet will ensure that requests are forwarded to the correct service.

Personal Hosting Solutions

For personal web hosting, NetGet provides an easy-to-set-up gateway for routing traffic to various self-hosted applications. Users with several web applications running on a home server can use NetGet to manage access to these applications through different domains.

Secure Access Control

Combined with authentication layers, NetGet can control access to various parts of a web infrastructure, ensuring that only authorized users can access specific services.


About All.This

Modular Data Structures:

this.me - this.audio - this.text - this.wallet - this.img - this.pixel - be.this - this.DOM - this.env - this.GUI - this.be - this.video - this.atom - this.dictionaries

Each module in all.this represents a specific datastructure. These classes encapsulate the functionalities and data specific to their domain.

Utils

all.this not only aggregates these modules but also provides utilities to facilitate the integration, management, and enhancement of these data structures. For example:

The integration with cleaker ensures each module instance has a unique cryptographic identity, enhancing security and data integrity.

Neurons.me Ecosystem Glossary:

visit: Neurons.me Glossary

License & Policies

  • License: MIT License (see LICENSE for details).

  • Privacy Policy: Respects user privacy; no collection/storage of personal data.

  • Terms of Usage: Use responsibly. No guarantees/warranties provided. Terms | Privacy

    Learn more at https://neurons.me

    Author: SuiGn

    By neurons.me