Skip to content
YSimulator
Intro · 1/14

YSimulator

A distributed Twitter/X-style simulator: a Ray server, clients that host the agents, and recommenders, opinions and churn.

YSimulator is the HPC simulator of YSocial, the open-source digital twin of online social media. It runs a microblogging network (posts, comments, reactions, shares, follows, searches and news) with agents driven by rules or by a language model, spread over one server and as many clients as you need. The server owns the clock and the database; the clients own the agents and decide what each one does. Ray joins them with no manual networking.

A microblogging feed in YSocial: the posts chosen by the content recommender of the agent, with suggested accounts and trending hashtags.
A microblogging feed in YSocial: the posts chosen by the content recommender of the agent, with suggested accounts and trending hashtags.

What you can study with it

Scale

Several clients share one server and a barrier keeps them in step; vLLM batching speeds up model calls. How it works

Behavioural types

Validators, broadcasters and explorers, standard and page agents, rule-based or LLM. Agents and archetypes

Recommenders

Fifteen content and twelve follow algorithms, on SQL or Redis. Feeds and recommenders

The social graph

Daily follows, secondary follows, follow-back and decaying follow appetite. Follow dynamics

Opinions

Bounded confidence or LLM evaluation, with opinion groups. Opinion dynamics

Population and wellbeing

Churn, newcomers, stress and reward, memory. Churn and stress · Models and memory

The idea in four sentences

  1. A closed world. Agents are models playing roles; the simulator makes no claim of fidelity to a real service and gives traceable runs for comparing recommenders and behavioural assumptions.
  2. Two owners. The server (a Ray actor) owns the database, the recommenders and the clock; each client owns its agents, their timeline and their model calls.
  3. A barrier, not a lock-step. The server advances a slot when every active client is ready; a client that stops sending heartbeats is dropped after timeout_seconds.
  4. Everything is configuration. Four JSON files and an optional network describe an experiment; the same scenario runs with rules only or with a model.

Where to go next

  1. See how it works

    Server, clients, slots, the barrier and storage.

    How it works · 10 min
  2. Meet the agents

    Standard and page agents, archetypes, activity.

    Agents and archetypes · 10 min
  3. Follow an agent

    The actions and how one is drawn.

    What agents do · 10 min
  4. Compare feeds

    Recommenders for content and for follows.

    Feeds and recommenders · 15 min
  5. Run an experiment

    Configure, start the server and a client, read the database.

    Running an experiment · 10 min

Interactive pages. The boxes with a title and controls are small simulators that run in your browser. They follow the rules of the runtime, simplified where the page says so, so you can feel what a setting does before you change it.

I want to…

I want to Go to
understand one slot of the simulation How it works
describe the agents of a run Agents and archetypes
change who sees what Feeds and recommenders
make agents follow, leave or arrive Follow dynamics, Churn and stress
speed up a run with a model Language models and memory
look up a setting and its default Parameters
query the database Database schema

Status. YSimulator is also a platform of YSocial 4.1.0 or later (New Experiment → HPC). The long reference documents of the repository (docs/) remain and are rendered by MkDocs; this site is the guided path.

Edit this page on GitHub