Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/animemoeus/jscord-storage
Free unlimited file hosting using Discord server
https://github.com/animemoeus/jscord-storage
discord file-hosting file-upload image-hosting storage storage-api unlimited-storage upload uploader
Last synced: about 7 hours ago
JSON representation
Free unlimited file hosting using Discord server
- Host: GitHub
- URL: https://github.com/animemoeus/jscord-storage
- Owner: animemoeus
- License: mit
- Created: 2021-07-01T14:46:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-08-15T01:31:41.000Z (6 months ago)
- Last Synced: 2025-02-02T19:40:35.367Z (4 days ago)
- Topics: discord, file-hosting, file-upload, image-hosting, storage, storage-api, unlimited-storage, upload, uploader
- Language: JavaScript
- Homepage: https://discord-storage.animemoe.us/
- Size: 9.03 MB
- Stars: 37
- Watchers: 2
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jscord-storage
## Server Status
- [Click Here](https://stats.uptimerobot.com/GKy6liBGw7/788953682)
## Bypass Expired URL
- https://github.com/animemoeus/backend/wiki/Discord#refresh-expired-url
## Installation
```bash
yarn add jscord-storage
```## Example
```javascript
import { uploadFromFile, uploadFromURL } from 'jscord-storage';const testUploadFromURL = async () => {
const response = await uploadFromURL(
'test.jpg',
'https://cdn.discordapp.com/attachments/858938620425404426/1076560199218892902/waifu-animemoeus.jpg'
);console.log(response);
};const testUploadFromFile = async () => {
const response = await uploadFromFile('./test.js');console.log(response);
};testUploadFromURL();
testUploadFromFile();```
## API
- [Upload From URL](https://discord-storage.animemoe.us/api/upload-from-url/)
- [Upload From File](https://discord-storage.animemoe.us/api/upload-from-file/)## About
- Max upload size limit is [25MB](https://twitter.com/discord/status/1645522780337885184) 🥳
- `url` vs `proxy_url`. [Click here for detail](https://www.reddit.com/r/discordapp/comments/e8lgj2/mediadiscordappnet_cdndiscordappcom/).
- `proxy_url`. [Click here for detail](https://www.reddit.com/r/discordapp/comments/f1ixly/.discord_adding_lower_width_and_height_to_linked/).
- Attachments URL. [Click here for detail](https://support.discord.com/hc/en-us/community/posts/360061593771-Privacy-for-CDN-attachements).## Increase Upload Limit
- I don't know if this will work, but I think if the server gets a boost, we can increase the upload limit up to 50 MB or 100MB.
- [https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-](https://support.discord.com/hc/en-us/articles/360028038352-Server-Boosting-FAQ-)
- Discord Server [https://discord.gg/kZuWeKzgkq](https://discord.gg/kZuWeKzgkq)## Example Implementation
- [https://api.animemoe.us/waifu/](https://api.animemoe.us/waifu/)
- [https://waifu.animemoe.us/](https://waifu.animemoe.us/)