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

@farsoc/atlas

v1.0.5

Published

Abstract Tree-Like Adaptive State

Downloads

20

Readme

Documentation

You can find documenation (work is still in progress) in required part of following wiki.

About

ATLAS stands for Abstract Tree-Like Adaptive State. This state management system was designed to give you freedom of organizing your state in required way in simple manner. So, ATLAS does not have:

  • required boilerplate code
  • unnecessary layers of abstraction
  • "golden hammer"-like principles in its core

Instead of it Atlas offers:

  • compact and intuitive syntax
  • opportunity to write easily reusable state logic modules
  • simple and scalable design

Bindings

ATLAS has simple and flexible events system which makes easy to bind it to diffirent systems. You might be interested in React bindings for ATLAS.

Main concept

We treat state as collection of nodes in ATLAS. So, every state operation basically becomes an operation with node. ATLAS provides multiple manners of updating data (including mutations, immutable updates and plain rewrites). Let's take a look at simple example:

import { readAll, write, mutate } from "@farsoc/atlas";

type Greeter = { name: string };
const greeter: Greeter = { name: "P1" };

write("test", 1);
write("hello.world", greeter);

// {test: 1, hello: { world: { name: "P1" }}}
const currentState = readAll();

/*
 * Let's make this example more complex and 
 * change some existing data!
 */

mutate<Greeter>("hello.world", (x) => (x.name += " mutated"));

// { name: "P1 mutated" }
const worldGreeter = read<Greeter>("hello.world");

This approach is flexible, but not very reliable, because we have to duplicate node pathes when we work with same nodes. So, there is a solution for this trouble - we can treat nodes isolated with help of @farsoc/entity-atlas-nodes package. It contains very useful node abstractions you can use right out of the box! Let's take a look at this approach:

import { MutableObjectNode } from "@farsoc/entity-atlas-nodes";
import { readAll } from "@farsoc/atlas";

type Greeter = { name: string };

const worldGreeter = new MutableObjectNode<Greeter>({
    initialValue: { name: "P1" },
    nodePath: "hello.world"
});

worldGreeter.mutate((x) => (x.name += " mutated"));

// { name: "P1 mutated" }
const greeter = worldGreeter.value;

// { hello: { world: { name: "P1 mutated" }}}
const state = readAll();