{"id":13525456,"url":"https://github.com/juliangruber/preact-level-list","last_synced_at":"2025-04-01T05:31:26.540Z","repository":{"id":57329493,"uuid":"107021062","full_name":"juliangruber/preact-level-list","owner":"juliangruber","description":"Live updating leveldb list component for preact","archived":true,"fork":false,"pushed_at":"2017-10-15T14:47:57.000Z","size":237,"stargazers_count":4,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T13:19:29.075Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/juliangruber.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}},"created_at":"2017-10-15T14:46:50.000Z","updated_at":"2023-09-08T17:31:13.000Z","dependencies_parsed_at":"2022-09-14T18:41:43.255Z","dependency_job_id":null,"html_url":"https://github.com/juliangruber/preact-level-list","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fpreact-level-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fpreact-level-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fpreact-level-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliangruber%2Fpreact-level-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliangruber","download_url":"https://codeload.github.com/juliangruber/preact-level-list/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246591189,"owners_count":20801981,"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":[],"created_at":"2024-08-01T06:01:18.910Z","updated_at":"2025-04-01T05:31:24.191Z","avatar_url":"https://github.com/juliangruber.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"readme":"# preact-level-list\n\nLive updating [leveldb](https://leveldb.org) list component for [preact](https://preactjs.com/)!\n\n## Example\n\n```js\nimport { h, render, Component } from 'preact'\nimport level from 'level'\nimport { List } from 'preact-level-list'\n\nconst db = level('/tmp/preact-level-list')\n\nclass Example extends Component {\n  render () {\n    return (\n      \u003cul id=\"example\"\u003e\n        \u003cList\n          db={db}\n          prefix='prefix'\n          renderRow={ ({ value }) =\u003e \u003cli\u003e{value}\u003c/li\u003e }\n        /\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n```\n\nNow the `\u003cList /\u003e` component will always reflect the values you have stored in your database with `prefix`.\n\nFind a full example in [/example](example):\n\n```bash\n$ npm install\n$ npm run rebuild\n$ npm start\n```\n\n![screenshot](screenshot.png)\n\n## Installation\n\n```bash\n$ npm install preact-level-list\n```\n\n## API\n\n### `\u003cList db prefix renderRow /\u003e`\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Fpreact-level-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliangruber%2Fpreact-level-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliangruber%2Fpreact-level-list/lists"}