{"id":21050954,"url":"https://github.com/theopenwebjp/auto-grid","last_synced_at":"2026-05-17T12:42:45.213Z","repository":{"id":57166068,"uuid":"122207477","full_name":"theopenwebjp/auto-grid","owner":"theopenwebjp","description":"JavaScript API for simply adding and removing DOM elements to a fixed size element with automatic sizing using CSS3 grids.","archived":false,"fork":false,"pushed_at":"2023-07-23T07:52:43.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-17T16:36:18.433Z","etag":null,"topics":["css3-grids","javascript"],"latest_commit_sha":null,"homepage":"https://theopenweb.info/app/auto-grid/","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/theopenwebjp.png","metadata":{"files":{"readme":"readme.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-02-20T14:17:27.000Z","updated_at":"2022-03-17T12:35:57.000Z","dependencies_parsed_at":"2024-11-19T15:49:03.972Z","dependency_job_id":"048276d1-29dc-4784-979f-a9faee744f7d","html_url":"https://github.com/theopenwebjp/auto-grid","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/theopenwebjp/auto-grid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fauto-grid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fauto-grid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fauto-grid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fauto-grid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theopenwebjp","download_url":"https://codeload.github.com/theopenwebjp/auto-grid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theopenwebjp%2Fauto-grid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33139185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"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":["css3-grids","javascript"],"created_at":"2024-11-19T15:48:51.499Z","updated_at":"2026-05-17T12:42:45.173Z","avatar_url":"https://github.com/theopenwebjp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\r\n\r\nJavaScript API for simply adding and removing DOM elements to a fixed size element with automatic sizing using CSS3 grids.\r\n\r\n## Installation\r\n\r\n`npm install @theopenweb/auto-grid`\r\n\r\n## Usage\r\n\r\n```javascript\r\n// const AutoGrid = require('auto-grid'); // commonjs support removed. Use es6 imports.\r\nimport AutoGrid from 'auto-grid'\r\n\r\nconst autoGrid = new AutoGrid({\r\n    wrapper: document.querySelector('#element-id')\r\n});\r\n\r\n//Adds empty element\r\nautoGrid.addMock();\r\n\r\n//Adds specified element\r\nautoGrid.add(document.createElement('div'));\r\n\r\n//Removes last element\r\nautoGrid.remove();\r\n\r\n//Removes specified element\r\nautoGrid.remove(document.getElementById(('id')));\r\n\r\n//Gets list of grid contents\r\nautoGrid.list()\r\n\r\n//Updates to specific array of elements\r\nautoGrid.update([document.createElement('div'), document.createElement('div')])\r\n```\r\n\r\n## Problems\r\n\r\nCurrently has problems with fitting in elements if text is taking all space.\r\n\r\n## Example\r\n\r\n[./index.html](./index.html)\r\n\r\n```bash\r\nnpx http-server ./\r\n# http://localhost:8080\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fauto-grid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheopenwebjp%2Fauto-grid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheopenwebjp%2Fauto-grid/lists"}