{"id":15047988,"url":"https://github.com/aydreas/logicsim","last_synced_at":"2025-10-04T07:31:00.219Z","repository":{"id":44161205,"uuid":"156890840","full_name":"aydreas/LogicSim","owner":"aydreas","description":"Multi-Threaded Simulator for Logic Circuits","archived":true,"fork":false,"pushed_at":"2022-12-08T11:41:53.000Z","size":113,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-21T22:22:37.091Z","etag":null,"topics":["c-plus-plus","cpp","logic","logic-circuit","multithreading","node","node-gyp","node-module","nodejs","simulation"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aydreas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-09T16:45:49.000Z","updated_at":"2024-11-21T10:38:55.000Z","dependencies_parsed_at":"2023-01-25T12:45:40.297Z","dependency_job_id":null,"html_url":"https://github.com/aydreas/LogicSim","commit_stats":null,"previous_names":["yeinfallslos/logicsim"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/aydreas/LogicSim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydreas%2FLogicSim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydreas%2FLogicSim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydreas%2FLogicSim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydreas%2FLogicSim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aydreas","download_url":"https://codeload.github.com/aydreas/LogicSim/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aydreas%2FLogicSim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283485,"owners_count":25961309,"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-10-04T02:00:05.491Z","response_time":63,"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":["c-plus-plus","cpp","logic","logic-circuit","multithreading","node","node-gyp","node-module","nodejs","simulation"],"created_at":"2024-09-24T21:06:34.482Z","updated_at":"2025-10-04T07:30:59.895Z","avatar_url":"https://github.com/aydreas.png","language":"C++","readme":"# LogicSim\nMulti-Threaded Simulator for Logic Circuits as Node.JS Native C++ Module.\n## Getting Started\n### Prerequisites\nYou need to have node and npm installed to use this module.\n#### Debian\n```\napt install npm\n```\n### Installation\nDownload the contents of the repository, open the command line in that directory and install it using ```npm install```.\n#### Linux / Unix\n```\ngit clone 'https://github.com/yEinFallsLos/LogicSim.git' \u0026\u0026 cd ./LogicSim \u0026\u0026 npm install\n```\nalternatively, you can install it using npm:\n```\nnpm install logicsim -g\n```\n## Usage\nImport the module in your Node.JS Script: ```const logicsim = require('./index');``` (if you installed it using npm, use ```const logicsim = require('logicsim');```)\n### Functions\n| Function  | Decription |\n| --- | --- |\n| ```logicsim.newBoard(\"*unique identifier for your board*\", *object with the contents of the board, see below for an example*);```  | Creates a new Board |\n| ```logicsim.startBoard(\"*identifier*\" [, *amount of ticks the simulation will run, leave out for endless simulation*]);``` | Start your Board |\n| ```logicsim.stopBoard(\"*identifier*\");``` | Stop your Board, if simulation is running |\n| ```logicsim.getBoardStatus(\"*identifier*\");``` | Get the current Status of the Board, like passed ticks, current execution state or current simulation speed |\n| ```logicsim.getBoard(\"*identifier*\");``` | Get the components and their current state of the board |\n| ```logicsim.triggerInput(\"*identifier*\", *index of component to trigger*, *index of input on component*, *input event (0 = down, 1 = up)*)``` | Trigger an input element on the board |\n### Sample Board Object:\n```\n{\n  \"links\": 4,\n  \"threads\": 1,\n  \"components\": [\n  \t{\n  \t\t\"type\": \"SWITCH\",\n  \t\t\"inputs\": [\n  \t\t],\n  \t\t\"outputs\": [\n  \t\t\t0\n  \t\t]\n  \t},\n  \t{\n  \t\t\"type\": \"XOR\",\n  \t\t\"inputs\": [\n  \t\t\t0, 1\n  \t\t],\n  \t\t\"outputs\": [\n  \t\t\t2\n  \t\t]\n  \t},\n  \t{\n  \t\t\"type\": \"AND\",\n  \t\t\"inputs\": [\n  \t\t\t0, 2\n  \t\t],\n  \t\t\"outputs\": [\n  \t\t\t3\n  \t\t]\n  \t}\n  ]\n}\n```\n\n## License\nThis Project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydreas%2Flogicsim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faydreas%2Flogicsim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faydreas%2Flogicsim/lists"}