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

destam-web-core

v1.0.1

Published

This package abstracts the core functionality of [OpenGig.org](https://github.com/torrinworx/OpenGig.org) into a reusable client-server setup for any web project. It is built on websockets for communication between the client and server.

Downloads

6

Readme

destam-web-core

This package abstracts the core functionality of OpenGig.org into a reusable client-server setup for any web project. It is built on websockets for communication between the client and server.

Features:

  • Websockets Communication: Real-time, two-way interaction between client and server.
  • Observer-based State Syncing: Uses destam, destam-dom for reactivity and to synchronize state seamlessly between client and server.
  • MongoDB Integration: A simple built in wrapper for storing state in MongoDB.
  • Flexible Job System: Infrastructure for code execution on websocket connection and client request.
  • Opinionated Authentication: Offers a built-in authentication that secures state syncing and job execution, managing user signups and logins.

Upon page load, a websocket connection is established. The server is designed to serve unauthenticated and authenticated apps.

Server Configuration

coreServer allows for a custom connection function, which is loaded and mounted. Values returned from this connection are passed to authenticated jobs, enabling seamless database logic execution per job.

Full stack example

This is a full stack web application using destam-web-core, it uses mongodb to store the state server-side.

server.js

import { coreServer } from "destam-web-core/server";

const connection = async (ws, req) => {
    console.log("User connected!")
	return;
};

coreServer(
	'./backend/jobs',
	'./frontend',
	connection
);

client.jsx

import { coreClient } from 'destam-web-core/client';

const App = ({ state }) => {
	const counter = state.client.counter.def(0);

	return <div>
        {counter}
		<button onClick={() => counter.set(counter.get() + 1)}>
            Counter
		</button>
	</div>;
};

const NotFound = () => <>Not Found 404</>;

coreClient(App, NotFound);

index.html

<!doctype html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<title>destam-web-core</title>
	</head>
	<body style="margin: 0px;">
		<script type="module" src="./client.jsx"></script>
	</body>
</html>

That's all the code needed to create a full stack app with destam-web-core, destam, and destam-dom.

With destam-web-core, you can focus on building out features, rather than setting up boilerplate infrasturcture.