{"id":20416558,"url":"https://github.com/codebam/pastebin-worker","last_synced_at":"2025-04-12T17:07:56.970Z","repository":{"id":180802456,"uuid":"665728149","full_name":"codebam/pastebin-worker","owner":"codebam","description":"Pastebin Worker API with ChaChaPoly encryption, LZ4 compression, MIME types and highlighting support","archived":false,"fork":false,"pushed_at":"2024-01-03T21:29:50.000Z","size":257,"stargazers_count":3,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-01T13:47:02.902Z","etag":null,"topics":["api","chacha20-poly1305","encryption","rust","syntax-highlighting","worker"],"latest_commit_sha":null,"homepage":"https://pastebin.seanbehan.ca","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-12T21:35:26.000Z","updated_at":"2024-02-19T04:38:23.000Z","dependencies_parsed_at":"2023-10-04T10:06:08.267Z","dependency_job_id":null,"html_url":"https://github.com/codebam/pastebin-worker","commit_stats":null,"previous_names":["codebam/rust-worker","codebam/pastebin-rust-worker","codebam/pastebin-worker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Fpastebin-worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Fpastebin-worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Fpastebin-worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebam%2Fpastebin-worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebam","download_url":"https://codeload.github.com/codebam/pastebin-worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224738476,"owners_count":17361589,"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":["api","chacha20-poly1305","encryption","rust","syntax-highlighting","worker"],"created_at":"2024-11-15T06:20:51.652Z","updated_at":"2024-11-15T06:20:52.672Z","avatar_url":"https://github.com/codebam.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rust-pastebin-worker\n\n[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/codebam/pastebin-worker)\n\nSet up your own KV in the wrangler.toml and put uploader.html at /\n\nSupports MIME types by putting .file-ext at the end of filenames when\ndownloading.\n\nSupports syntax highlighting by using https://pastebin.seanbehan.ca/highlight/yourfile.js\n\nFiles are limited to 15MB due to KV limitations.\n\nExample usage:\n\n```sh\ncurl -Ls -o /dev/null -w %{url_effective} -F upload=@- https://pastebin.seanbehan.ca\n```\n\nSee the redirect URL to get where your paste is stored.\n\n```javascript\nexport const pastebin_url = \"https://pastebin.seanbehan.ca\";\nexport const pastebin = {\n  upload: async (filename) =\u003e\n    fetch(pastebin_url, {\n      method: \"POST\",\n      body: new URLSearchParams({ upload: await read_file(filename) }),\n      redirect: \"manual\",\n    }).then(get_redirect_location),\n  delete: async (filename) =\u003e\n    fetch(pastebin_url + `/${filename}`, { method: \"DELETE\" }).then(\n      (response) =\u003e response.text()\n    ),\n  upload_encrypt: async (filename) =\u003e\n    fetch(pastebin_url + \"/encrypt\", {\n      method: \"POST\",\n      body: new URLSearchParams({ upload: await read_file(filename) }),\n      redirect: \"manual\",\n    }).then(get_redirect_location),\n  list: async () =\u003e\n    fetch(pastebin_url + \"/list\").then((response) =\u003e response.text()),\n  upload_string: async (str) =\u003e\n    fetch(pastebin_url, {\n      method: \"POST\",\n      body: new URLSearchParams({ upload: str }),\n      redirect: \"manual\",\n    }).then(get_redirect_location),\n};\n```\n\nOr just use the provided uploader.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebam%2Fpastebin-worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebam%2Fpastebin-worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebam%2Fpastebin-worker/lists"}