{"id":13810460,"url":"https://github.com/mskocik/svelecte","last_synced_at":"2025-05-14T17:07:53.584Z","repository":{"id":37526752,"uuid":"295091000","full_name":"mskocik/svelecte","owner":"mskocik","description":"Flexible autocomplete/select component written in Svelte,","archived":false,"fork":false,"pushed_at":"2025-04-04T17:50:06.000Z","size":3575,"stargazers_count":521,"open_issues_count":4,"forks_count":46,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-07T15:51:47.596Z","etag":null,"topics":["autocomplete","custom-element","multiselect","select","selectize","svelte","tagging","typeahead"],"latest_commit_sha":null,"homepage":"https://svelecte.vercel.app","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/mskocik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"mskocik"}},"created_at":"2020-09-13T06:18:30.000Z","updated_at":"2025-05-03T19:10:21.000Z","dependencies_parsed_at":"2024-02-14T16:26:12.512Z","dependency_job_id":"32731a4e-006c-4597-8572-84785f81b91c","html_url":"https://github.com/mskocik/svelecte","commit_stats":{"total_commits":553,"total_committers":11,"mean_commits":50.27272727272727,"dds":"0.061482820976491825","last_synced_commit":"f96f1f5f7bbb570aa3b63290b9132666c2d9519d"},"previous_names":[],"tags_count":150,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fsvelecte","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fsvelecte/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fsvelecte/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mskocik%2Fsvelecte/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mskocik","download_url":"https://codeload.github.com/mskocik/svelecte/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254190396,"owners_count":22029632,"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":["autocomplete","custom-element","multiselect","select","selectize","svelte","tagging","typeahead"],"created_at":"2024-08-04T02:00:54.388Z","updated_at":"2025-05-14T17:07:53.563Z","avatar_url":"https://github.com/mskocik.png","language":"JavaScript","funding_links":["https://github.com/sponsors/mskocik"],"categories":["JavaScript"],"sub_categories":[],"readme":"# Svelecte [![NPM version](http://img.shields.io/npm/v/svelecte.svg?style=flat)](https://www.npmjs.org/package/svelecte)\n\n![svelecte](https://svelecte.vercel.app/svelecte.png)\n\nFlexible autocomplete/select component written in Svelte. Initially inspired by Selectize.js. Also usable as custom element. Usable in forms, behaves very similar to standard `\u003cselect\u003e` element.\n\nSee the latest changes on the [Releases](https://github.com/mskocik/svelecte/releases) page.\n\n## 📃 Features\n\n- searchable\n- multiselect with limit of max selected items\n- allow simple array or complex objects as items\n- custom item renderer (formatter)\n- allow creating new items (and possibly edit them)\n- remote data fetch\n- virtual list support\n- i18n and basic ARIA support\n- SSR support\n- client-validation support (tested with [sveltekit-superforms](https://github.com/ciscoheat/sveltekit-superforms/))\n- lazy dropdown rendering\n- usable as custom element\n- customizable styling\n- dnd intergration with `svelte-dnd-action`\n\n\n## 🔧 Installation\n\n```\nnpm install svelecte\n```\n\n\u003e [!NOTE]\n\u003e For Svelte 4 use version 4. Version 5 is svelte 5 only ⚡\n\n## Minimalistic example\n\n```html\n\u003cscript\u003e\nimport Svelecte from 'svelecte';\n\nconst list = [{ id: 1, name: 'Item 1' }, { id: 2, name: 'Item 2'}, ...];\nlet myValue = null;\n\u003c/script\u003e\n\n\u003cSvelecte options={list} bind:value={myValue}\u003e\u003c/Svelecte\u003e\n```\n\nVisit [documentation](https://svelecte.vercel.app/) for more details.\n\n## Thanks to\n\n- [selectize.js](https://github.com/selectize/selectize.js) - main inspiration\n- [sifter](https://github.com/brianreavis/sifter.js) - search engine\n- [svelte-tiny-virtual-list](https://github.com/Skayo/svelte-tiny-virtual-list) virtual list functionality for v3, v4\n- and [svelte](https://svelte.dev) of course 😊\n\nAnd if you want to thank me, you can through my [sponsor](https://github.com/sponsors/mskocik) page.\n\n## License\n\n[MIT License](https://github.com/mskocik/svelecte/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskocik%2Fsvelecte","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmskocik%2Fsvelecte","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmskocik%2Fsvelecte/lists"}