{"id":13625533,"url":"https://github.com/georgealways/lil-gui","last_synced_at":"2025-05-14T18:02:37.887Z","repository":{"id":37036935,"uuid":"199713402","full_name":"georgealways/lil-gui","owner":"georgealways","description":"Makes a floating panel for controllers on the web. Works as a drop-in replacement for dat.gui in most projects.","archived":false,"fork":false,"pushed_at":"2025-04-05T11:23:32.000Z","size":2478,"stargazers_count":1328,"open_issues_count":14,"forks_count":54,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-05-14T18:02:18.112Z","etag":null,"topics":["compact","creative-coding","dependency-free","gui"],"latest_commit_sha":null,"homepage":"https://lil-gui.georgealways.com/","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/georgealways.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":null,"funding":null,"license":"LICENSE.md","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":"2019-07-30T19:19:17.000Z","updated_at":"2025-05-14T07:26:18.000Z","dependencies_parsed_at":"2023-10-16T22:48:30.940Z","dependency_job_id":"b97c483f-e874-4341-8f3f-cef0977e3e79","html_url":"https://github.com/georgealways/lil-gui","commit_stats":null,"previous_names":[],"tags_count":48,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgealways%2Flil-gui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgealways%2Flil-gui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgealways%2Flil-gui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/georgealways%2Flil-gui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/georgealways","download_url":"https://codeload.github.com/georgealways/lil-gui/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254198452,"owners_count":22030964,"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":["compact","creative-coding","dependency-free","gui"],"created_at":"2024-08-01T21:01:57.357Z","updated_at":"2025-05-14T18:02:32.862Z","avatar_url":"https://github.com/georgealways.png","language":"JavaScript","funding_links":[],"categories":["others","JavaScript","gui"],"sub_categories":[],"readme":"# lil-gui\n\nMakes a floating panel for controllers on the web. Works as a drop-in replacement for dat.gui in most projects. See [Migrating](https://lil-gui.georgealways.com/#Migrating) for a list of breaking changes.\n\n[**Homepage**](https://lil-gui.georgealways.com/) •\n[**Basic Demo**](https://lil-gui.georgealways.com/examples/basic/) •\n[Examples](https://lil-gui.georgealways.com/#Examples) •\n[Guide](https://lil-gui.georgealways.com/#Guide) •\n[API](https://lil-gui.georgealways.com/#API) •\n[GitHub](https://github.com/georgealways/lil-gui)\n\n```js\nimport GUI from 'lil-gui'; \n\nconst gui = new GUI();\n\nconst myObject = {\n\tmyBoolean: true,\n\tmyFunction: function() { ... },\n\tmyString: 'lil-gui',\n\tmyNumber: 1\n};\n\ngui.add( myObject, 'myBoolean' );  // Checkbox\ngui.add( myObject, 'myFunction' ); // Button\ngui.add( myObject, 'myString' );   // Text Field\ngui.add( myObject, 'myNumber' );   // Number Field\n\n// Add sliders to number fields by passing min and max\ngui.add( myObject, 'myNumber', 0, 1 );\ngui.add( myObject, 'myNumber', 0, 100, 2 ); // snap to even numbers\n\n// Create dropdowns by passing an array or object of named values\ngui.add( myObject, 'myNumber', [ 0, 1, 2 ] );\ngui.add( myObject, 'myNumber', { Label1: 0, Label2: 1, Label3: 2 } );\n\n// Chainable methods\ngui.add( myObject, 'myProperty' )\n\t.name( 'Custom Name' )\n\t.onChange( value =\u003e {\n\t\tconsole.log( value );\n\t} );\n\n// Create color pickers for multiple color formats\nconst colorFormats = {\n\tstring: '#ffffff',\n\tint: 0xffffff,\n\tobject: { r: 1, g: 1, b: 1 },\n\tarray: [ 1, 1, 1 ]\n};\n\ngui.addColor( colorFormats, 'string' );\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgealways%2Flil-gui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeorgealways%2Flil-gui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeorgealways%2Flil-gui/lists"}