{"id":14969232,"url":"https://github.com/jpalumickas/uplo","last_synced_at":"2025-10-26T07:31:20.627Z","repository":{"id":60858020,"uuid":"364295914","full_name":"jpalumickas/uplo","owner":"jpalumickas","description":"Handle file uploads to different storage services like Amazon S3, Google Cloud or etc. It also supports different type of ORM adapters, like Prisma.","archived":false,"fork":false,"pushed_at":"2024-10-29T20:46:03.000Z","size":3722,"stargazers_count":10,"open_issues_count":4,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-02-07T15:03:29.041Z","etag":null,"topics":["aws","aws-s3","digitalocean-spaces","file","file-upload","file-upload-server","file-uploader","files","gcs","hacktoberfest","javascript","node","nodejs","prisma","react","react-native","s3","upload","uploader"],"latest_commit_sha":null,"homepage":"https://uplo.js.org","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/jpalumickas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-05-04T15:08:24.000Z","updated_at":"2025-01-30T07:30:36.000Z","dependencies_parsed_at":"2022-10-06T00:02:37.141Z","dependency_job_id":"f2130009-6888-4bc9-bf7b-d24ac3cb6f72","html_url":"https://github.com/jpalumickas/uplo","commit_stats":{"total_commits":287,"total_committers":2,"mean_commits":143.5,"dds":"0.0034843205574912606","last_synced_commit":"cded181569d38ef5de3dcce24bbc9f6b067de947"},"previous_names":[],"tags_count":109,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fuplo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fuplo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fuplo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpalumickas%2Fuplo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpalumickas","download_url":"https://codeload.github.com/jpalumickas/uplo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238284857,"owners_count":19446742,"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":["aws","aws-s3","digitalocean-spaces","file","file-upload","file-upload-server","file-uploader","files","gcs","hacktoberfest","javascript","node","nodejs","prisma","react","react-native","s3","upload","uploader"],"created_at":"2024-09-24T13:41:24.356Z","updated_at":"2025-10-26T07:31:20.620Z","avatar_url":"https://github.com/jpalumickas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Uplo\n\nHandle file uploads to various storage services like Amazon S3, Google Cloud\nor etc. It also supports various type of ORM adapters, like Prisma.\n\n## Features\n\n* TypeScript ready\n* Direct uploads\n* Supports multiple services\n* Multiple ORM adapters\n* File analyzers\n\n## Getting started\n\nAdd `@uplo/node` to your package.json\n\n```sh\nyarn add @uplo/node\n```\n\nInstall Adapter (for example Prisma)\n\n```sh\nyarn add @uplo/adapter-prisma dataloader\n```\n\nInstall Service (for example S3)\n\n```sh\nyarn add @uplo/service-s3\n```\n\nDefine uplo instance\n\n```ts\nimport Uplo from '@uplo/node';\nimport PrismaAdapter from '@uplo/adapter-prisma';\nimport GCSService from '@uplo/service-gcs';\n\nconst config = {\n  privateKey: process.env.APPLICATION_SECRET, // Used to sign direct upload keys\n  signedIdExpiresIn: 60 * 60, // Time how long a Signed ID is valid\n};\n\nconst uplo = Uplo({\n  config,\n  adapter: new PrismaAdapter({ prisma }),\n  services: {\n    s3: S3Service({\n      isPublic: false,\n      region: process.env.AWS_REGION,\n      bucket: process.env.AWS_BUCKET,\n      accessKeyId: '*****',\n      secretAccessKey: '*****',\n    }),\n  },\n  attachments: {\n    user: {\n      avatar: {\n        validate: {\n          contentType: /image\\/*/\n        }\n      }\n    },\n    post: {\n      images: { multiple: true }\n    }\n  },\n});\n\nconst attachment = await uplo.attachments.user(123).avatar.attachFile(await blobFileInput({\n  path: '/home/images/image.png'\n}))\n```\n\n## License\n\nThe package is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpalumickas%2Fuplo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpalumickas%2Fuplo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpalumickas%2Fuplo/lists"}