{"id":18375828,"url":"https://github.com/apideck-libraries/vue-file-picker","last_synced_at":"2026-03-19T04:05:21.661Z","repository":{"id":65668743,"uuid":"596949453","full_name":"apideck-libraries/vue-file-picker","owner":"apideck-libraries","description":"Apideck FilePicker Modal component for Vue","archived":false,"fork":false,"pushed_at":"2023-02-06T09:00:56.000Z","size":396,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-09-11T06:54:10.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/apideck-libraries.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2023-02-03T09:36:48.000Z","updated_at":"2024-02-09T13:55:16.000Z","dependencies_parsed_at":"2023-02-19T06:00:59.984Z","dependency_job_id":null,"html_url":"https://github.com/apideck-libraries/vue-file-picker","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/apideck-libraries/vue-file-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fvue-file-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fvue-file-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fvue-file-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fvue-file-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apideck-libraries","download_url":"https://codeload.github.com/apideck-libraries/vue-file-picker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Fvue-file-picker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28670366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: 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":[],"created_at":"2024-11-06T00:20:36.590Z","updated_at":"2026-01-22T20:10:27.502Z","avatar_url":"https://github.com/apideck-libraries.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vue FilePicker\n\nA Vue component to embed [Apideck FilePicker](https://www.apideck.com/samples/file-picker) in a Vue application.\n\n\u003cimg src=\"./screenshot.png\" width=\"100%\" /\u003e\n\n[FilePicker JS](https://github.com/apideck-libraries/file-picker-js) | [React FilePicker](https://github.com/apideck-libraries/file-picker) | **Vue FilePicker**\n\n## Installation\n\n### Package\n\n```sh\nnpm install @apideck/vue-file-picker\n```\n\n## Prerequisites\n\nBefore opening the Vault modal with `@apideck/vue-file-picker`, you need to create a Vault session from your backend using the Vault API or one of our [SDKs](https://docs.apideck.com/sdks). Find out more in the [docs](https://docs.apideck.com/apis/vault/reference#operation/sessionsCreate).\n\n## Usage\n\nPass the JWT you got from the Vault session to `@apideck/vue-file-picker`, call the slot prop `open` to open the FilePicker modal.\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { FilePicker } from '@apideck/vue-file-picker';\n\nconst sessionJwt = 'REPLACE_WITH_SESSION_TOKEN';\n\nfunction onSelect(file: File) {\n  console.log('selected file:', file);\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cmain\u003e\n    \u003cFilePicker\n      :token=\"sessionJwt\"\n      :on-select=\"onSelect\"\n      v-slot=\"filePickerProps\"\n    \u003e\n      \u003cbutton @click=\"filePickerProps.open()\"\u003eOpen\u003c/button\u003e\n    \u003c/FilePicker\u003e\n  \u003c/main\u003e\n\u003c/template\u003e\n```\n\nIf you want to get notified when the modal opens and closes, you can provide the `onReady` and `onClose` options.\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { FilePicker } from '@apideck/vue-file-picker';\n\nconst sessionJwt = 'REPLACE_WITH_SESSION_TOKEN';\n\nfunction onSelect(file: File) {\n  console.log('selected file:', file);\n}\n\nfunction onClose() {\n  console.log('closed!');\n}\n\nfunction onReady() {\n  console.log('ready!');\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cmain\u003e\n    \u003cFilePicker\n      :token=\"sessionJwt\"\n      :on-close=\"onClose\"\n      :on-ready=\"onReady\"\n      :on-select=\"onSelect\"\n      v-slot=\"filePickerProps\"\n    \u003e\n      \u003cbutton @click=\"filePickerProps.open()\"\u003eOpen\u003c/button\u003e\n    \u003c/FilePicker\u003e\n  \u003c/main\u003e\n\u003c/template\u003e\n```\n\n### Props\n\n| Property             | Type    | Required | Default             | Description                                                           |\n| -------------------- | ------- | -------- | ------------------- | --------------------------------------------------------------------- |\n| token                | string  | true     | -                   | The JSON Web Token returned from the Create Session call              |\n| on-select            | event   | false    | -                   | The function that gets called when a file is selected                 |\n| on-connection-select | event   | false    | -                   | The function that gets called when a connection is selected           |\n| title                | string  | false    | Apideck File Picker | Title shown in the modal                                              |\n| sub-title            | string  | false    | Select a file       | Subtitle shown in the modal                                           |\n| show-attribution     | boolean | false    | true                | Show \"Powered by Apideck\" in the backdrop of the modal backdrop       |\n| open                 | boolean | false    | false               | Opens the file picker if set to true                                  |\n| on-close             | event   | false    | -                   | Function that gets called when the modal is closed                    |\n| file-to-save         | file    | false    | -                   | Forces \"Upload\" mode to select the folder to upload the provided file |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Fvue-file-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapideck-libraries%2Fvue-file-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Fvue-file-picker/lists"}