{"id":16065111,"url":"https://github.com/miljan-code/ngx-uploadthing","last_synced_at":"2026-02-12T13:38:34.672Z","repository":{"id":245363178,"uuid":"817883518","full_name":"miljan-code/ngx-uploadthing","owner":"miljan-code","description":"Unofficial Uploadthing SDK for Angular 17","archived":false,"fork":false,"pushed_at":"2025-02-02T19:55:18.000Z","size":525,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T13:54:20.888Z","etag":null,"topics":["angular","ngx-uploadthing","uploadthing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/miljan-code.png","metadata":{"files":{"readme":".github/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}},"created_at":"2024-06-20T16:30:07.000Z","updated_at":"2025-07-24T14:37:34.000Z","dependencies_parsed_at":"2024-06-21T19:54:21.751Z","dependency_job_id":"6aede768-786e-4af8-8195-feaae0fb402d","html_url":"https://github.com/miljan-code/ngx-uploadthing","commit_stats":{"total_commits":8,"total_committers":2,"mean_commits":4.0,"dds":0.25,"last_synced_commit":"5d584565559b2e512f587e8166ce389da94e6145"},"previous_names":["miljan-code/ngx-uploadthing"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/miljan-code/ngx-uploadthing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miljan-code%2Fngx-uploadthing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miljan-code%2Fngx-uploadthing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miljan-code%2Fngx-uploadthing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miljan-code%2Fngx-uploadthing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miljan-code","download_url":"https://codeload.github.com/miljan-code/ngx-uploadthing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miljan-code%2Fngx-uploadthing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29367383,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"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":["angular","ngx-uploadthing","uploadthing"],"created_at":"2024-10-09T05:11:10.627Z","updated_at":"2026-02-12T13:38:34.648Z","avatar_url":"https://github.com/miljan-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ngx-uploadthing\n\nAn unofficial Angular 17+ wrapper for [Uploadthing](https://github.com/pingdotgg/uploadthing).\n\n## Prerequisites\n\n- Angular 17\n\n## Installation\n\nTo install ngx-uploadthing, run the following command in your project directory:\n\n```bash\nnpm install ngx-uploadthing\n```\n\n## Getting started\n\nTo begin using ngx-uploadthing in your project, follow these steps:\n\n1. Import the uploadthing provider inside your app.config.ts file:\n\n```typescript\nimport { provideUploadthing } from \"ngx-uploadthing\";\nimport { OurFileRouter } from \"~server/uploadthing.ts\";\n\nexport const appConfig: ApplicationConfig = {\n  providers: [\n    ...,\n    provideUploadthing\u003cOurFileRouter\u003e({\n      // Replace with your own uploadthing endpoint\n      url: \"http://localhost:3000/api/uploadthing\",\n    }),\n  ],\n};\n```\n\n2. Use UploadthingDirective in your template to create a file uploader:\n\n```typescript\nimport { Component } from \"@angular/core\";\nimport {\n  type UploadedFileData,\n  type UploaderConfig,\n  UploadthingDirective,\n  UploadthingService\n} from \"ngx-uploadthing\";\n\n@Component({\n  selector: \"app-uploader\",\n  standalone: true,\n  imports: [UploadthingDirective],\n  providers: [UploadthingService],\n  template: `\n    \u003cinput\n      type=\"file\"\n      multiple\n      uploadthing\n      [config]=\"config\"\n      (onUploadComplete)=\"handleUploadCompleted($event)\"\n      (onFilesSelected)=\"handleSelectedFiles($event)\"\n    /\u003e\n  `,\n})\nexport class UploaderComponent {\n  config: UploaderConfig = {\n    // Replace with your own uploadthing endpoint\n    endpoint: \"videoAndImage\",\n    // Set to true to enable uploads on input change\n    instantUpload: true,\n    ...,\n  };\n\n  handleUploadCompleted(files: UploadedFileData[]) {\n    console.log(files);\n  }\n\n  handleSelectedFiles(files: FileList) {\n    console.log(files);\n  }\n}\n```\n\n## Features\n\n- **UploadthingService**: This service is a central part of the ngx-uploadthing library. It provides methods for uploading files and managing the upload state.\n\n  - uploadFiles$: A Subject that emits an object containing the upload options and files.\n  - files(): A signal that returns an array of uploaded files.\n  - status(): A signal that returns the current upload status.\n  - error(): A signal that returns the upload error if any.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiljan-code%2Fngx-uploadthing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiljan-code%2Fngx-uploadthing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiljan-code%2Fngx-uploadthing/lists"}