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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gepard-web

v1.0.0

Published

Web client for gepard (Browser, React, ...)

Readme

gepard-web

Web client for gepard (Browser, React, ...) General purpose communication and synchronization layer for distributed applications / Microservices / events, semaphores, locks and messages for JavaScript, Java, Python and PHP

Overview

This JavaScript module implements a simple client for the GEPARD middleware for general purpose distributed applications to be used in a Web-Browser application or in a React/React-native application for browser, iPhone and Android app.

This GEPARD client can be used also within all JavaScript-based web-framworks. It connects a WebApp directly with the GEPARD middleware on the server-side. The connection is done with pure JavaScript WebSocket features without any helper-libs like socket.io or the like. With this technology high performance is guaranteed without any overhead.

Service requests, semaphores, locks, events in an GEPARD based communication layer are directly accessible. The WebSocket server is based on an appropriate node-module on the server side.

This WebSocket server can easily be plugged into a standard web-server like apache or nginx. Example configurations and many examples can be found in gepard on npm and gessinger-hj/gepard on github

Usecases

Updating a Customer-record in the Database

Suppose there is a database containing customer base-data like for example name, id, enabled,...

The access to the database for example is done with laravel/eloquent. The UPDATE is coded with the following code-snippet:

$customer_Id = 1 ;
$customer = App\Customer::find($customer_id);

$customer->name = 'New Customer Name';

$customer->save();

Interested 3rd parties now are informed by sending an Event:

Client::getInstance()->emit('CUSTOMER_CHANGED', ['CUSTOMER_ID' => $customer_id]);

Interested parties for example are:

  • A Java program which sends an e-mail.

    Client.getInstance().on ( new String[] { "CUSTOMER_CHANGED" }, (e) -> {
    	Integer customer_id = e.getValue ( "CUSTOMER_ID" ) ;
    
    	*select customer from database with customer_id*
    	*use any mail-api to send mail*
    } ) ;
  • A JavaScript program which sends an e-mail:

    gepard.getClient().on ( 'CUSTOMER_CHANGED', (e) => {
    	let customer_id = e.getValue ( 'CUSTOMER_ID' ) ;
    
    	*select customer from database with customer_id*
    	*use any mail-api to send mail*
    } ) ;
  • A Python program which sends an e-mail:

    
    def on_CUSTOMER_CHANGED ( event ):
    	customer_id = event.getValue ( 'CUSTOMER_ID' ) ;
    
    	*select customer from database with customer_id*
    	*use any mail-api to send mail*
    
    gepard.Client.getInstance().on ( 'CUSTOMER_CHANGED', on_CUSTOMER_CHANGED ) ;
  • A single page web-app or a React-native app

    gepard.getWebClient().on ( 'CUSTOMER_CHANGED', (e) => {
    	let customer_id = e.getValue ( 'CUSTOMER_ID' ) ;
    
    	if ( customer-data are displayed in any part of the page ) {
    		*select customer from database with customer_id via a REST call*
    		*update appropriate display*
    	}
    } ) ;