{"id":30214519,"url":"https://github.com/elevenetc/p5000","last_synced_at":"2025-08-14T00:41:05.321Z","repository":{"id":269721965,"uuid":"908262503","full_name":"elevenetc/p5000","owner":"elevenetc","description":"A micro UI framework built on top of p5.js, providing a component-based system for creating canvas-based user interfaces.","archived":false,"fork":false,"pushed_at":"2025-06-27T20:57:01.000Z","size":431,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-27T21:35:12.887Z","etag":null,"topics":["framework","p5","typescript","ui-library","uikit"],"latest_commit_sha":null,"homepage":"","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/elevenetc.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}},"created_at":"2024-12-25T16:01:57.000Z","updated_at":"2025-06-27T20:57:04.000Z","dependencies_parsed_at":"2024-12-25T16:28:25.411Z","dependency_job_id":"062387ea-362d-4d14-af12-4f9f84979260","html_url":"https://github.com/elevenetc/p5000","commit_stats":null,"previous_names":["elevenetc/p5000"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/elevenetc/p5000","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenetc%2Fp5000","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenetc%2Fp5000/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenetc%2Fp5000/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenetc%2Fp5000/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elevenetc","download_url":"https://codeload.github.com/elevenetc/p5000/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elevenetc%2Fp5000/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270342210,"owners_count":24567642,"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-08-13T02:00:09.904Z","response_time":66,"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":["framework","p5","typescript","ui-library","uikit"],"created_at":"2025-08-14T00:40:55.124Z","updated_at":"2025-08-14T00:41:05.264Z","avatar_url":"https://github.com/elevenetc.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p5000\n\nA micro UI framework built on top of p5.js, providing a component-based system for creating canvas-based user\ninterfaces.\n\n## Features\n\n- Component-based UI system\n- Flexible layout management with alignment options\n- Tree visualization components\n- Interactive elements (buttons, input fields)\n- Playback controls\n- Responsive canvas handling\n- TypeScript support\n\n## Installation\n\n```bash\nnpm install @e.levenetc/p5000\n```\n\n### Prerequisites\n\n- Node.js\n- p5.js (peer dependency)\n\n## Quick Start\n\n1. Install the dependencies:\n\n```bash\nnpm install @e.levenetc/p5000 p5\n```\n\n2. Create a basic component:\n\n```javascript\nimport p5 from \"p5\";\nimport {Free} from \"@e.levenetc/p5000/src/p5000/containers/Free\";\nimport {layoutAndRender} from \"@e.levenetc/p5000/src/p5000/layoutAndRender\";\n\n// Create root container\nconst root = new Free();\n\n// Setup p5 sketch\nfunction setup(p) {\n    p.createCanvas(p.windowWidth, p.windowHeight);\n}\n\nfunction draw(p) {\n    p.background(0, 0, 0);\n    layoutAndRender(root, p);\n}\n\nconst sketch = (p) =\u003e {\n    p.setup = () =\u003e setup(p);\n    p.draw = () =\u003e draw(p);\n    p.windowResized = () =\u003e p.resizeCanvas(p.windowWidth, p.windowHeight);\n};\n\nnew p5(sketch);\n```\n\n## Components\n\n- `Free`: A container component with flexible positioning\n- `BasicTreeView`: Component for displaying tree structures\n- `PlaybackView`: Component for playback controls\n- `ColorDrawable`: Basic drawing component\n- And more...\n\n## Sample Projects\n\nThe repository includes several sample projects demonstrating different features:\n\n- [sample-alignment](sample-alignment): Demonstrates alignment options\n- [sample-basic-tree](sample-basic-tree): Shows tree visualization\n- [sample-circular-tree](sample-circular-tree): Alternative tree visualization\n- [sample-input-field](sample-input-field): Text input handling\n- [sample-interactive](sample-interactive): Interactive components\n- [sample-input-view](sample-input-view): Input handling\n- [sample-nested-free](sample-nested-free): Nested container layouts\n- [sample-text-selection](sample-text-selection): Text selection functionality\n- [sample-vertical](sample-vertical): Vertical layout examples\n\n### Running Samples\n\n1. Clone the repository\n2. Run `npm install`\n3. Import the project into your IDE\n4. Use predefined configurations to run samples\n\n## Development\n\n### Testing\n\n```bash\nnpm test\n```\n\n### Publishing New Version\n\n```bash\n# Update version (examples):\nnpm version patch  # for bug fixes (0.0.1 -\u003e 0.0.2)\nnpm version minor  # for new features (0.1.0 -\u003e 0.2.0)\nnpm version major  # for breaking changes (1.0.0 -\u003e 2.0.0)\n\n# Publish to npm registry\nnpm publish\n```\n\n## License\n\nISC License\n\n## Contributing\n\nFeel free to submit issues and pull requests on the [GitHub repository](https://github.com/elevenetc/p5000).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felevenetc%2Fp5000","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felevenetc%2Fp5000","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felevenetc%2Fp5000/lists"}