{"id":30897641,"url":"https://github.com/atothey/sim","last_synced_at":"2025-09-09T00:44:41.972Z","repository":{"id":312620600,"uuid":"1048085351","full_name":"AtotheY/sim","owner":"AtotheY","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-31T23:50:46.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-01T00:33:00.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AtotheY.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T22:03:27.000Z","updated_at":"2025-08-31T23:50:50.000Z","dependencies_parsed_at":"2025-09-01T00:33:04.953Z","dependency_job_id":"bb5e765c-4396-4c49-ba7b-c94c32a4da9e","html_url":"https://github.com/AtotheY/sim","commit_stats":null,"previous_names":["atothey/sim"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/AtotheY/sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtotheY%2Fsim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtotheY%2Fsim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtotheY%2Fsim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtotheY%2Fsim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AtotheY","download_url":"https://codeload.github.com/AtotheY/sim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AtotheY%2Fsim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231031,"owners_count":25245688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-09T00:44:40.944Z","updated_at":"2025-09-09T00:44:41.960Z","avatar_url":"https://github.com/AtotheY.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @fallom/sim\n\nUniversal simulation framework for AI agents and autonomous systems.\n\n## Library Structure\n\n```\nlib/                    # Core simulation library\n├── index.ts           # Main exports\n├── simulation.ts      # Simulation engine\n├── telemetry.ts       # Telemetry system\n└── instrumentation.ts # OpenTelemetry setup\n\nexamples/              # Example implementations\n├── energy-rng/        # Random energy simulation\n├── pawn/             # Basic pawn simulation\n└── energy-ai/        # AI-powered energy simulation\n    ├── agent.ts      # AI agent logic\n    ├── tools.ts      # Agent tools\n    └── simulation.ts # Simulation runner\n```\n\n## Quick Start\n\n### Using the Library\n\n```typescript\nimport { createSimulation } from \"@fallom/sim\";\n\nconst simulation = createSimulation({\n  maxTicks: 10,\n  \n  onTick: async (state) =\u003e {\n    console.log(`Tick ${state.tick}`);\n    return true; // continue simulation\n  },\n  \n  onEnd: (state, reason) =\u003e {\n    console.log(`Ended: ${reason}`);\n  }\n});\n\nawait simulation.run();\n```\n\n### Running Examples\n\n```bash\n# Install dependencies\nbun install\n\n# Run example simulations\nbun run example:pawn        # Basic simulation\nbun run example:energy-rng  # Random agent\nbun run example:energy-ai   # AI agent (requires OpenAI API key)\n```\n\n## Features\n\n- **Universal simulation loop** - Works with any agent type\n- **Built-in telemetry** - JSON Lines logging with OpenTelemetry\n- **TypeScript support** - Full type safety\n- **Extensible** - Easy to build custom agents and environments\n- **Observable** - Rich telemetry and debugging\n\n## Development\n\nThe library is designed to be framework-agnostic. Examples show how to integrate with:\n- Random/programmatic agents\n- AI frameworks (Vercel AI SDK)\n- Custom agent logic\n\nEach example is self-contained with its own agents and simulation logic.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatothey%2Fsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatothey%2Fsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatothey%2Fsim/lists"}