Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/harrisoff/onedrive-image-hosting
OneDrive Image Hosting | OneDrive 图床
https://github.com/harrisoff/onedrive-image-hosting
audio-hosting image-hosting imagehost onedrive onedrive-api onedrive-sdk video-hosting
Last synced: 3 months ago
JSON representation
OneDrive Image Hosting | OneDrive 图床
- Host: GitHub
- URL: https://github.com/harrisoff/onedrive-image-hosting
- Owner: harrisoff
- License: mit
- Created: 2018-12-25T07:43:25.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-09T07:26:39.000Z (almost 2 years ago)
- Last Synced: 2024-07-27T20:47:56.645Z (4 months ago)
- Topics: audio-hosting, image-hosting, imagehost, onedrive, onedrive-api, onedrive-sdk, video-hosting
- Language: TypeScript
- Homepage: https://harrisoff.github.io/onedrive-image-hosting
- Size: 933 KB
- Stars: 104
- Watchers: 2
- Forks: 40
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - harrisoff/onedrive-image-hosting - OneDrive Image Hosting | OneDrive 图床 (TypeScript)
README
# Free OneDrive Image Hosting
**Audio and Video are supported too!**
![deploy status](https://github.com/harrisoff/onedrive-image-hosting/workflows/deploy/badge.svg)
[Online Demo](https://harrisoff.github.io/onedrive-image-hosting)
Upload images to your OneDrive driver and generate their links.
**Just some static files, completely free from server**. You can fork and build your own image hosting site.
[中文文档](./README.zh-cn.md)
## Document
Please check [@harrisoff/onedrive-js-sdk](https://github.com/harrisoff/onedrive-js-sdk) (because this is basically it's webGUI) then replace env files' values with yours.
### Integration
After authenticating you'll get an `access_token` which has a lifetime of 2 hours.
Every time the token is expired you'll have to manually re-authenticate because there is no backend logics helping us to refresh it, which means, it's hard to be integrated as an image uploading module to other systems, for example, PicGo.
## Privacy
Online demo uses [Google Analytics](https://analytics.google.com/analytics/web/#/) and [Baidu Tongji](https://tongji.baidu.com/web/welcome/login) to track the usage. As you may know, they will collect the url however:
- Google Analytics does not collect url hash
- Baidu Tongji only collects 1024 bytes of the url, which is not enough to store the access tokenSo don't worry about leaking the access token.