Wedus is pastebin clone, and also immutable. All files are stored to web3.storage. You also able to deploy your own Wedus on deno deploy when you need more limit, by default the limit is 2 req/s per ip
Flourite for detect language from string
Web3.storage for file storage
Deno for typescript/javascript runtime
Deno Deploy for hosting
Itty-Router for router\
HTTPie
http POST https://wedus.deno.dev/create @filenamecurl
curl --data-binary @filename https://wedus.deno.devdeno
const wedus = async (pathToFile: string): Promise<string> => {
const body = await Deno.readTextFile(pathToFile);
const response = await fetch("https://wedus.deno.dev/create", {
method: "POST",
body,
});
const { url, message, success }: Record<string, any> = await response
.json();
if (success) {
return url as string;
}
throw new Error(message);
};
await wedus("./index.html").then(console.log);bash
# add bellow code to your bashrc
wedus(){ curl --data-binary @$1 "https://wedus.deno.dev/create" | jq .url;}
# then refresh using ". ~/.bashrc", and you are ready to using wedus
# example
wedus filename- Create project on deno deploy
- Select deploy from github
- Input this url
- Enter your web3.storage apikey to WEB3TOKEN env variables
- Done
When you want to change the limit, just add MAX_BODY_SIZE and REQ_PER_SECOND to env variables
Set to zero for disable\