{"id":18375834,"url":"https://github.com/apideck-libraries/file-picker","last_synced_at":"2025-08-01T15:11:36.369Z","repository":{"id":38314987,"uuid":"406277078","full_name":"apideck-libraries/file-picker","owner":"apideck-libraries","description":"A React file picker component using the unified File Storage API","archived":false,"fork":false,"pushed_at":"2023-10-05T10:04:12.000Z","size":3648,"stargazers_count":29,"open_issues_count":9,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-06T20:36:11.914Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://file-picker.apideck.dev/","language":"TypeScript","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-14T07:59:38.000Z","updated_at":"2025-01-17T17:33:31.000Z","dependencies_parsed_at":"2025-04-06T20:42:22.044Z","dependency_job_id":null,"html_url":"https://github.com/apideck-libraries/file-picker","commit_stats":null,"previous_names":[],"tags_count":30,"template":false,"template_full_name":null,"purl":"pkg:github/apideck-libraries/file-picker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Ffile-picker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Ffile-picker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Ffile-picker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Ffile-picker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/apideck-libraries","download_url":"https://codeload.github.com/apideck-libraries/file-picker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/apideck-libraries%2Ffile-picker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268248766,"owners_count":24219558,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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:37.895Z","updated_at":"2025-08-01T15:11:36.351Z","avatar_url":"https://github.com/apideck-libraries.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apideck File Picker\n\nA React file picker component that works with the Apideck [File Storage API](https://developers.apideck.com/apis/file-storage/reference).\n\nSign up for a free account at [apideck.com](https://app.apideck.com/signup) to obtain an API key and App ID.\n\n\u003cimg src=\"./screenshot.png\" width=\"100%\" /\u003e\n\n[FilePicker JS](https://github.com/apideck-libraries/file-picker-js) | **React FilePicker** | [Vue FilePicker](https://github.com/apideck-libraries/vue-file-picker)\n\n## Usage\n\nInstall the component\n\n```sh\nyarn add @apideck/file-picker\n```\n\nCreate a [Vault session](https://developers.apideck.com/apis/vault/reference#operation/sessionsCreate) inside your application to get a JSON Web Token.\n\nPass the JWT together with your App ID and a consumer ID to the FilePicker component\n\n```js\nimport { FilePicker } from '@apideck/file-picker'\nimport '@apideck/file-picker/dist/styles.css'\n\nconst MyComponent = () =\u003e {\n  const handleSelect = (file) =\u003e {\n    console.log(file)\n  }\n\n  return (\n    \u003cFilePicker\n      onSelect={handleSelect}\n      trigger={\u003cbutton\u003ePick a file\u003c/button\u003e}\n      token=\"\u003csession-token\u003e\"\n    /\u003e\n  )\n}\n```\n\nYou can also provide a file through the `fileToSave` prop that will force the FilePicker to go into \"Upload\" mode. This will allow the user to select the connector and folder that the file needs to get saved to.\n\n### Properties\n\n| Property           | Type    | Required | Default             | Description                                                           |\n| ------------------ | ------- | -------- | ------------------- | --------------------------------------------------------------------- |\n| token              | string  | true     | -                   | The JSON Web Token returned from the Create Session call              |\n| onSelect           | event   | false    | -                   | The function that gets called when a file is selected                 |\n| onConnectionSelect | event   | false    | -                   | The function that gets called when a connection is selected           |\n| trigger            | element | false    | -                   | The component that should trigger the File Picker modal on click      |\n| title              | string  | false    | Apideck File Picker | Title shown in the modal                                              |\n| subTitle           | string  | false    | Select a file       | Subtitle shown in the modal                                           |\n| showAttribution    | 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| onClose            | event   | false    | -                   | Function that gets called when the modal is closed                    |\n| fileToSave         | file    | false    | -                   | Forces \"Upload\" mode to select the folder to upload the provided file |\n\n### Using Tailwind?\n\nThe FilePicker is styled using [Tailwind CSS](https://tailwindcss.com/). If you were to use the File Picker component in a project that also uses Tailwind CSS, you can omit the CSS file import, and include the package in the purge path of the tailwind.config.css.\n\n```js\n// tailwind.config.js\npurge: [\n  './node_modules/@apideck/file-picker/dist/*.js',\n],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Ffile-picker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fapideck-libraries%2Ffile-picker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fapideck-libraries%2Ffile-picker/lists"}