{"id":20649252,"url":"https://github.com/repalash/uiconfig-blueprint","last_synced_at":"2025-04-17T01:23:51.259Z","repository":{"id":213142654,"uuid":"609795656","full_name":"repalash/uiconfig-blueprint","owner":"repalash","description":"Blueprint.js wrapper and custom components for web controls UI. To be used with uiconfig.js","archived":false,"fork":false,"pushed_at":"2025-01-12T15:58:08.000Z","size":1264,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T20:36:16.597Z","etag":null,"topics":["blueprintjs","html","javascript","json","threepipe","typescript","uiconfig","wrapper"],"latest_commit_sha":null,"homepage":"http://repalash.com/uiconfig-blueprint/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/repalash.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-03-05T09:04:51.000Z","updated_at":"2025-04-06T23:10:17.000Z","dependencies_parsed_at":"2023-12-18T20:47:34.670Z","dependency_job_id":"162e0929-29b0-40d6-9e6d-975d6bb51db2","html_url":"https://github.com/repalash/uiconfig-blueprint","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"82cf3d03aad74830da837a1a108eae93d84dc8fd"},"previous_names":["repalash/uiconfig-blueprint"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fuiconfig-blueprint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fuiconfig-blueprint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fuiconfig-blueprint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/repalash%2Fuiconfig-blueprint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/repalash","download_url":"https://codeload.github.com/repalash/uiconfig-blueprint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249296256,"owners_count":21246284,"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":["blueprintjs","html","javascript","json","threepipe","typescript","uiconfig","wrapper"],"created_at":"2024-11-16T17:13:22.222Z","updated_at":"2025-04-17T01:23:51.243Z","avatar_url":"https://github.com/repalash.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UiConfig Blueprint.js\n\n[![NPM Package](https://img.shields.io/npm/v/uiconfig-blueprint.svg)](https://www.npmjs.com/package/uiconfig-blueprint)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/license/apache-2-0/)\n\nBlueprint.js theme/wrapper library for [uiconfig.js](https://github.com/repalash/uiconfig.js): A UI renderer framework to dynamically generate website/configuration UIs from a JSON-like configurations and/or typescript decorators. \n\nIt includes several components for editor-like user interfaces like folders, panels, sliders, pickers, inputs for string, number, file, vector, colors, etc.\n\nThe UI components are bound to javascript/typescript objects and properties through a simple and flexible JSON configuration.\n\n### Examples\n\nBasic Examples: https://repalash.com/uiconfig-blueprint/examples/index.html\n\nThreepipe Basic UI: https://threepipe.org/examples/#blueprintjs-ui-plugin/\n\nThreepipe Editor: https://threepipe.org/examples/#blueprintjs-editor/\n\n## Installation and Usage\n\n### npm package\n\nInstall the `uiconfig-blueprint` package from npm.\n```bash\nnpm install uiconfig-blueprint\n```\n\nUse in any javascript/typescript file.\n```typescript\nimport { UI } from 'uiconfig-blueprint';\n\nconst config = {\n    type: \"slider\",\n    label: \"slider\",\n    value: 0.5,\n    bounds: [0, 1],\n    onChange: () =\u003e {\n        console.log(\"changed\", config.value);\n    },\n}\n\nconst ui = new UI();\nui.appendChild(config);\n```\n\n### CDN link\n\nThe module can be imported to HTML/JS a CDN link using [unpkg](https://unpkg.com/) or [jsdelivr](https://www.jsdelivr.com/).\n\n```html\n\u003cscript src=\"https://unpkg.com/uiconfig-blueprint\"\u003e\u003c/script\u003e\n\u003c!--or--\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/uiconfig-blueprint\"\u003e\u003c/script\u003e\n```\n\nThe module can be accessed with the short-form `bpui`\n```html\n\u003cscript\u003e\n    const config = {\n        type: \"button\",\n        label: \"click me\",\n        onClick: () =\u003e {\n            console.log(\"clicked\");\n        },\n    }\n    \n    const ui = new bpui.UI()\n    ui.appendChild(config)\n\u003c/script\u003e\n```\n\n## Configuration\n\nCheck the documentation at [uiconfig.js](https://github.com/repalash/uiconfig.js) on how to create a configuration for the UI.\n\n## Components\n\n1. `folder` - A folder that can be collapsed and expanded. It can have other components as children.\n2. `panel` - A panel that will replace the current panel.\n3. `input` - A text input field for any kind of primitive types. The type is determined automatically from initial value.\n4. `number` - A number input field for numbers.\n5. `slider` - A slider for numbers. \n6. `dropdown` - A dropdown. Options can be specified in children with label and optional value properties.\n7. `checkbox/toggle` - A toggle for boolean values.\n8. `button` - A button that can trigger a function, `onClick` or bound property/value function.\n9. `color` - A color picker for colors.\n10. `vector/vec/vec2/vec3/vec4` - Multiple number input fields in a row for vectors.\n11. `image` - A file input field for files.\n\n## Three.js integration\n\nSet the three.js classes for Color, Vector2, Vector3, Vector4 in the renderer and the color and vector components will automatically use them.\n\n```typescript\nimport { UI } from 'uiconfig-blueprint';\nimport { Color, Vector4, Vector3, Vector2 } from 'three';\n\nconst ui = new UI();\nui.THREE = {Color, Vector4, Vector3, Vector2}\n```\n\n\n## Development\n\nClone the project and install dependencies.\n```bash\ngit clone git://github.com/repalash/uiconfig-blueprint.git\nnpm install\n```\n\nRun the development server.\n```bash\nnpm run dev\n```\nNavigate to the given URL to view the examples. Make changes in the `src` folder and the page will automatically reload.\n\nBuild the project.\n```bash\nnpm run build\n```\n\nPublish the project to npm.\n```bash\nnpm publish\n```\n\n## License\nAll code is licensed under [Apache 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepalash%2Fuiconfig-blueprint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frepalash%2Fuiconfig-blueprint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frepalash%2Fuiconfig-blueprint/lists"}