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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@techfever/nyxa-core

v0.0.2

Published

A core library for Nyxa API Visualizer

Readme

Nyxa Core : Connecting Client and API Nodes Visually

Overview

Nyxa-Core is the core engine of a larger project designed to facilitate the visual connection of client nodes to API nodes or other services. It provides a structured foundation for managing connections, handling API requests, and ensuring seamless interactions between front-end applications and back-end services through an intuitive UI.

Features

  • Node-Based Connection Management: Enables visually connecting client nodes to API or other service nodes.
  • Event-Driven Architecture: Utilizes an event bus system for optimized communication.
  • Request & Response Management: Ensures smooth and structured API interactions.
  • Reactive State Management: Built with RxJS for real-time data updates.
  • Modular and Scalable: Easily integrates into various applications with a flexible approach.

Installation

To install Nyxa-Core, use the following command:

npm install nyxa-core

Getting Started

Importing Nyxa-Core

import { NyxaConnectionManager } from "nyxa-core";

Creating a Connection & optionally a request

const connectionManager = NyxaConnectionManager.getInstance();

const clientNode: NyxaClientNodeInterface = {
  id: "login-button",
  name: "Login Button",
  type: "action",
  request: <NyxaRequestInterface>{
    method: "GET",
    endpoint: "/login",
  },
};

const apiNode: NyxaServerNodeInterface = {
  id: "login-endpoint",
  name: "Login Endpoint",
  type: "endpoint",
  endpoint: "/login",
};

const connection = await connectionManager.createConnection(
  actionNode,
  apiNode
);

console.log("connection created => ", connection);

Managing API Requests

import { NyxaRequestManager } from "nyxa-core";

const requestManager = NyxaRequestManager.getInstance();

const response = await requestManager.createRequest(connection);

console.log("API Response => ", response);

Subscribing to events

NyxaEventBus.on("connectionCreated", (connection) => {
  console.log("✅ Connection created :", connection);
});

NyxaEventBus.on("connectionCancelled", (connection) => {
  console.log("❌ Connection deleted :", connection);
});

NyxaEventBus.on("connectionUpdated", (connection) => {
  console.log("🔄 Connection updated :", connection);
});

NyxaEventBus.on("responseReceived", ({ connection, response }) => {
  console.log(
    `📩 Response received from ${connection.source.id} -> ${connection.target.id}:`,
    response
  );
});

Use Cases

  • Node-Based UI for Connecting Clients to APIs: Provides a visual interface for managing and linking different nodes.
  • Single Page Applications (SPAs): Seamless interaction between the front-end and API.
  • Microservices Communication: Managing API endpoints efficiently.
  • Real-time Data Processing: Using the event bus for real-time updates.

What's Next?

  • Explore the full API documentation (coming soon).
  • Try integrating Nyxa-Core with your own API.
  • Contribute to the project by reporting issues or suggesting improvements.

Contributing

We welcome contributions! Feel free to open an issue or submit a pull request.

License

Nyxa is released under the MIT License.

Contact

For any inquiries or support, please reach out via [email protected]