{"id":18514954,"url":"https://github.com/mdingena/att-circuits","last_synced_at":"2025-05-14T13:30:56.872Z","repository":{"id":190415265,"uuid":"671934650","full_name":"mdingena/att-circuits","owner":"mdingena","description":"Send signals between interactive prefabs to create your own puzzles and logic contraptions.","archived":false,"fork":false,"pushed_at":"2023-08-24T14:00:51.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-12T22:54:06.997Z","etag":null,"topics":["logic-gates","township-tale","virtual-reality"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/mdingena.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"wyrmbane","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-07-28T13:37:43.000Z","updated_at":"2023-10-10T10:40:41.000Z","dependencies_parsed_at":"2023-08-24T15:38:35.497Z","dependency_job_id":null,"html_url":"https://github.com/mdingena/att-circuits","commit_stats":null,"previous_names":["mdingena/att-circuits"],"tags_count":1,"template":false,"template_full_name":"mdingena/typescript-npm-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdingena%2Fatt-circuits","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdingena%2Fatt-circuits/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdingena%2Fatt-circuits/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mdingena%2Fatt-circuits/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mdingena","download_url":"https://codeload.github.com/mdingena/att-circuits/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254150231,"owners_count":22022905,"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","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":["logic-gates","township-tale","virtual-reality"],"created_at":"2024-11-06T15:46:05.263Z","updated_at":"2025-05-14T13:30:56.848Z","avatar_url":"https://github.com/mdingena.png","language":"TypeScript","funding_links":["https://ko-fi.com/wyrmbane"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eATT Circuits\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"build status\" src=\"https://img.shields.io/github/actions/workflow/status/mdingena/att-circuits/lint-compile-test.yml?style=for-the-badge\" /\u003e\n  \u003cimg alt=\"npm version\" src=\"https://img.shields.io/npm/v/att-circuits?style=for-the-badge\" /\u003e\n  \u003cimg alt=\"peer dependency\" src=\"https://img.shields.io/npm/dependency-version/att-circuits/peer/att-string-transcoder?style=for-the-badge\" /\u003e\n  \u003cimg alt=\"node version\" src=\"https://img.shields.io/node/v/att-circuits?style=for-the-badge\" /\u003e\n  \u003cimg alt=\"typescript version\" src=\"https://img.shields.io/npm/dependency-version/att-circuits/dev/typescript?style=for-the-badge\" /\u003e\n  \u003cimg alt=\"license\" src=\"https://img.shields.io/npm/l/att-circuits?style=for-the-badge\" /\u003e\n  \u003ca href=\"CODE-OF-CONDUCT.md\"\u003e\u003cimg alt=\"contributor covenant v2.0 adopted\" src=\"https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg?style=for-the-badge\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n---\n\nAllows you to create logic gate circuits in _A Township Tale_, letting you create custom puzzles and logic contraptions.\n\n⚠️ This library has a **peer dependency** on [`att-string-transcoder`](https://github.com/mdingena/att-string-transcoder). You must manually install this peer dependency in your project in order to use `att-circuits`.\n\n⚠️ This library is meant for advanced users who already have a good understanding of ATT save strings. **Check out our [ATT String Workshop](https://github.com/mdingena/att-string-workshop) project to learn the basics.**\n\n## :sparkles: Quickstart\n\n### Installation\n\nAdd this library to your project's dependencies:\n\n```shell\nnpm install --save att-circuits\n```\n\n### Usage\n\n```ts\nimport { Circuit } from 'att-circuits';\nimport { Prefab } from 'att-string-transcoder';\n\nconst lever = Prefab.fromSaveString\u003c'MRK_Small_Lever'\u003e('...');\nconst door = Prefab.fromSaveString\u003c'MRK_gate_02'\u003e('...');\nconst circuit = new Circuit();\n\ncircuit.createWire('boolean').connect(lever, door);\ncircuit.setOrigin(door);\n\nconst prefab = circuit.toPrefab();\nprefab.print();\n```\n\nRead the [API Reference Documentation](docs/README.md) for more options.\n\n## :bow: Attribution\n\nThis project would not be possible without the knowledge revealed and shared by [poi](https://github.com/officialpoiuytrewq4645). :blue_heart:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdingena%2Fatt-circuits","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmdingena%2Fatt-circuits","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmdingena%2Fatt-circuits/lists"}