{"id":30076489,"url":"https://github.com/natade-jp/js-guiblocks","last_synced_at":"2026-03-09T23:03:28.517Z","repository":{"id":293808941,"uuid":"985180464","full_name":"natade-jp/js-guiblocks","owner":"natade-jp","description":"HTML を直接記述することなく、JavaScript のコードで Web アプリケーションの UI を構成できるライブラリ","archived":false,"fork":false,"pushed_at":"2025-05-31T08:34:16.000Z","size":1220,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-04T22:59:50.075Z","etag":null,"topics":["components","framework","gui","javascript","javascript-framework","javascript-library","library","widgets"],"latest_commit_sha":null,"homepage":"https://natade-jp.github.io/js-guiblocks/","language":"JavaScript","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/natade-jp.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":"2025-05-17T08:17:21.000Z","updated_at":"2025-05-31T08:34:19.000Z","dependencies_parsed_at":"2025-05-31T09:56:44.364Z","dependency_job_id":null,"html_url":"https://github.com/natade-jp/js-guiblocks","commit_stats":null,"previous_names":["natade-jp/guiblocks","natade-jp/js-guiblocks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/natade-jp/js-guiblocks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fjs-guiblocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fjs-guiblocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fjs-guiblocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fjs-guiblocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natade-jp","download_url":"https://codeload.github.com/natade-jp/js-guiblocks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natade-jp%2Fjs-guiblocks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30315987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["components","framework","gui","javascript","javascript-framework","javascript-library","library","widgets"],"created_at":"2025-08-08T15:08:23.631Z","updated_at":"2026-03-09T23:03:28.491Z","avatar_url":"https://github.com/natade-jp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GuiBlocks\n\n[![npm version](https://badge.fury.io/js/guiblocks.svg)](https://badge.fury.io/js/guiblocks)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n**GuiBlocks** は、JavaScript で動的に GUI を構築するための軽量ライブラリです。HTML を直接記述することなく、JavaScript のコードで Web アプリケーションの UI を構成できます。\nこのライブラリは Java の Swing に影響を受けて設計しており、オブジェクト指向でコンポーネントを組み合わせて UI を構築できるようになっています。\n\n詳しい説明は、[Github Pages](https://natade-jp.github.io/js-guiblocks/)で解説しています。\n\n## 特長\n\n* 部品（コンポーネント）を組み立ててGUIを構築\n* PC、スマホのようなレスポンシブデザインに対応\n* Canvas、ファイル操作、カラーピッカーなど豊富な部品\n* 独自のレイアウト制御：IN / RIGHT / NEWLINE\n\n## 利用方法\n\n### ステップ1：ライブラリの選択と読み込み\n\n* `cjs/` – CommonJS（Node.js等向け）\n* `esm/` – ES Modules（モダンブラウザ向け）\n* `umd/` – UMD（HTMLスクリプトタグ向け）\n\nいずれかの中にある `GuiBlocks.js` または `GuiBlocks.min.js` を利用してください。\n\n### ステップ2：CSSの適用\n\nGUI の外観を整えるために、`GuiBlocks.css` を HTML に読み込みます。\n\n```html\n\u003clink rel=\"stylesheet\" href=\"./build/umd/GuiBlocks.css\"\u003e\n```\n\n### ステップ3：ライブラリの読み込み\n\n```html\n\u003cscript src=\"./build/umd/GuiBlocks.min.js\"\u003e\u003c/script\u003e\n```\n\nまたはモジュール形式で\n\n```javascript\nimport Blocks from \"./build/esm/GuiBlocks.js\";\n```\n\n## 使用例\n\n```javascript\nconst panel = new Blocks.Panel(\"デモパネル\");\npanel.putMe(\"container_id\", Blocks.PUT_TYPE.IN);\n\nconst label = new Blocks.Label(\"こんにちは\");\nconst button = new Blocks.Button(\"クリック\");\n\npanel.put(label, Blocks.PUT_TYPE.IN);\nlabel.put(button, Blocks.PUT_TYPE.RIGHT);\n\nbutton.addListener(() =\u003e {\n  alert(\"クリックされました！\");\n});\n```\n\n## 主なコンポーネント一覧\n\nクラス名は `SLabel` ですが `GuiBlocks.Label` のようにアクセスできます。\n\n| コンポーネント名                           | 説明             |\n| ---------------------------------- | -------------- |\n| `SPanel`, `SGroupBox`                | 枠付きコンテナ        |\n| `SSlidePanel`                       | 開閉式のスライドパネル    |\n| `SLabel`, `SButton`                  | テキスト表示・クリック操作  |\n| `SCheckBox`, `SComboBox`             | 入力選択用UI        |\n| `SSlider`, `SProgressBar`            | 数値入力・進捗表示      |\n| `SFileLoadButton`, `SFileSaveButton` | ファイル読み込み・保存操作  |\n| `SCanvas`, `SCanvasGL`               | 2D描画およびWebGL描画 |\n| `SImagePanel`                       | 画像表示           |\n| `SColorPicker`                      | 色の選択           |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatade-jp%2Fjs-guiblocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatade-jp%2Fjs-guiblocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatade-jp%2Fjs-guiblocks/lists"}