{"id":27295895,"url":"https://github.com/vasak-os/tauri-plugin-vicons","last_synced_at":"2026-04-19T13:32:44.923Z","repository":{"id":287255154,"uuid":"964128856","full_name":"Vasak-OS/tauri-plugin-vicons","owner":"Vasak-OS","description":"Plugin for tauri that allows you to get system icons with the icon name (Only for Linux {VasakOS})","archived":false,"fork":false,"pushed_at":"2025-04-10T18:47:31.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T19:56:54.460Z","etag":null,"topics":["linux","tauri","tauri-plugin","typescript","vasak","vasakos"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Vasak-OS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T18:23:42.000Z","updated_at":"2025-04-10T18:47:36.000Z","dependencies_parsed_at":"2025-04-10T19:56:57.000Z","dependency_job_id":"9fa8aa23-dbf7-4fe1-abca-c2397258a2e6","html_url":"https://github.com/Vasak-OS/tauri-plugin-vicons","commit_stats":null,"previous_names":["vasak-os/tauri-plugin-vicons"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasak-OS%2Ftauri-plugin-vicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasak-OS%2Ftauri-plugin-vicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasak-OS%2Ftauri-plugin-vicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vasak-OS%2Ftauri-plugin-vicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vasak-OS","download_url":"https://codeload.github.com/Vasak-OS/tauri-plugin-vicons/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248494531,"owners_count":21113452,"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":["linux","tauri","tauri-plugin","typescript","vasak","vasakos"],"created_at":"2025-04-11T23:29:34.013Z","updated_at":"2026-04-19T13:32:44.750Z","avatar_url":"https://github.com/Vasak-OS.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tauri Plugin vicons\n\nA simple plugin that allows you to get the operating system icons by name (only works on Linux) by getting it in base64 ready to use the src of any image\n\n## Installation\n\n```bash\nbun add @vasakgroup/plugin-vicons\n```\n\nAdd in `cargo.toml`\n\n```toml\n[dependencies]\ntauri-plugin-vicons = { git = \"https://github.com/Vasak-OS/tauri-plugin-vicons\", branch = \"v2\" }\n```\nIn `main.rs` or `lib.rs`, add the following to your `tauri::Builder`:\n\n```rust\nuse tauri_plugin_vicons;\nfn main() {\n    tauri::Builder::default()\n        .plugin(tauri_plugin_vicons::init()) // this line\n        .run(tauri::generate_context!())\n        .expect(\"error while running tauri application\");\n}\n```\n\nAnd add in `src-tauri/compatibilites/default.json`\n\n```json\n{\n  \"permissions\": [\n    ...\n    \"vicons:default\",\n  ]\n}\n\n```\n\n## Usage\n\n```ts\nimport { getIconSource } from '@vasakgroup/plugin-vicons';\n\nconst icon = await getIconSource('folder');\n```\n\nin vue\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { getIconSource } from '@vasakgroup/plugin-vicons';\nimport { ref } from 'vue';\nconst icon = ref('');\nconst getIcon = async () =\u003e {\n  icon.value = await getIconSource('folder');\n};\ngetIcon();\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cimg :src=\"icon\" /\u003e\n\u003c/template\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasak-os%2Ftauri-plugin-vicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasak-os%2Ftauri-plugin-vicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasak-os%2Ftauri-plugin-vicons/lists"}