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

simiverse

v1.1.3

Published

Simiverse is a versatile simulation framework that provides a base Simulation class and modular components for creating, managing, and running simulations with or without AI assistance, applicable to a wide range of use cases such as modeling complex syst

Readme

Simiverse: Simulation Framework


Overview

Simiverse is a versatile simulation framework designed to be a universal plugin for applications, providing the necessary base simulation class and a variety of simulation modules. It allows for easy integration into different systems and can be utilized across various domains such as training data generation for machine learning models, evaluating AI alignment, simulating complex decision-making processes, and more. The framework provides tools for managing entities, environments, and decision-making within simulations, with the flexibility to use AI-driven decision models through an extensible client architecture.

Simiverse features a base class, Simulation, enabling traditional and AI-assisted decision-making workflows. It includes specialized modules like LLMClient, an abstract class for AI interactions, and OpenAIClient, an implementation example demonstrating its usage with openai. The framework integrates seamlessly with a web platform for efficient and interactive simulations.


Table of Contents

  1. Prerequisites
  2. Features
  3. Simulations
  4. Setup Instructions
  5. How to Run
  6. Early Thoughts

Prerequisites

  • Node.js installed on your machine.
  • OpenAI API key for AI-assisted decision-making.
  • Git for cloning the repository.

Features

  • Universal Simulation Framework: Build your simulations using the base Simulation class, with support for integrating custom modules.
  • Dynamic Entity Generation: Simulate diverse entities with customizable attributes.
  • AI-Assisted Decision-Making: Easily integrate AI models for decision-making processes, using the LLMClient and OpenAIClient modules.
  • Custom Simulation Modules: Extend the framework by adding specific modules to fit various use cases such as training, evaluation, and AI alignment.
  • Web Platform Integration: Seamlessly run and manage simulations on a web platform built for simulation execution and interaction.

Simulations

Survival Simulation

Description: The Survival Simulation models global and national decision-making in a resource-constrained world. It demonstrates the delicate balance between cooperation and defection, where nations must decide whether to collaborate or claim resources to survive. The simulation tracks global resource levels and the collapse of nations based on their decisions.

  • Simulation Type: Resource management, decision-making, global collapse.
  • Primary Focus: Cooperation vs. defection dynamics among nations.
  • Features:
    • Dynamic nation generation with unique resource states.
    • Resource depletion and its impact on global stability.
    • AI-assisted decision-making for nations' actions.

Example Usage:

import { SurvivalSimulation } from "simiverse/simulations";
import { OpenAIClient } from "../llms/openai";

const simulation = new SurvivalSimulation(entities, environment, {
  steps: 10,
  type: "llm",
  openaiApiKey: "your-api-key",
  onStepComplete: (eventData) => console.log(eventData),
});
simulation.run();

Setup Instructions

  1. Clone Repository:

    git clone https://github.com/dev-diaries41/simiverse.git
    cd simiverse
  2. Install Dependencies:

    npm install
  3. Configure Environment:

    • Ensure you have an OpenAI API key.
    • Create a .env file in the project root and add your API key:
      OPENAI_API_KEY=your_api_key_here

How to Run

  1. Run the Simulation:
    npm start

Early Thoughts

Here are some early ideas and potential features I may implement into the Simiverse framework in the future:

  • 3D Avatar Creation: Generate 3D avatars from uploaded images for use in simulations.
  • BCI Integration: Incorporate brain-computer interfaces for real-time neural feedback and decision-making.
  • VR Support: Enable immersive real-time simulation interaction via VR headsets.
  • Holographic Displays: Utilize 3D holographic displays for advanced, multi-dimensional data visualization. These ideas are in the early stages and will evolve as the framework continues to develop.