{"id":51263948,"url":"https://github.com/maxaudron/pastor","last_synced_at":"2026-06-29T14:02:13.693Z","repository":{"id":367752304,"uuid":"1282146491","full_name":"maxaudron/pastor","owner":"maxaudron","description":"The pastebin that hopefully doesn't suck","archived":false,"fork":false,"pushed_at":"2026-06-27T12:41:19.000Z","size":1629,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-27T14:12:04.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxaudron.png","metadata":{"files":{"readme":"README.txt","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-27T11:37:00.000Z","updated_at":"2026-06-27T12:38:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxaudron/pastor","commit_stats":null,"previous_names":["maxaudron/pastor"],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/maxaudron/pastor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fpastor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fpastor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fpastor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fpastor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxaudron","download_url":"https://codeload.github.com/maxaudron/pastor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxaudron%2Fpastor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34929703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-06-29T14:02:12.920Z","updated_at":"2026-06-29T14:02:13.687Z","avatar_url":"https://github.com/maxaudron.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n                             _ __   __ _ ___| |_ ___  _ __\n                            | '_ \\ / _` / __| __/ _ \\| '__|\n                            | |_) | (_| \\__ \\ || (_) | |\n                            | .__/ \\__,_|___/\\__\\___/|_|\n                            |_|\n\n                       The pastebin that hopefully doesn't suck\n\nDescription\n===========\n\n pastor was born out of frustration with other pastebins and their shortcomings\n\n   - require an external database, hassel to set up.\n   - have very unreliable mime type parsing leading to\n     files being returned with the wrong mime type\n   - won't show files in the browser but only prompt to download\n\n pastor tries to do better\n\n   - ensure content-disposition headers are set to inline to display in browser\n   - only interfere with mimetypes where needed\n     - sets all text/* mime types to text/plain to avoid inline\n       rendering of e.g. html and thus injection of external resources.\n   - file extensions are for squishy humans\n     - try to guess an extension based on the mime type\n       but only if absolutely sure it's the correct one\n     - file extensions can be set to whatever the user desires,\n       they are ignored when accessing the paste.\n   - easy to set up, single binary, no external dependencies\n     - release binaries are staticly deployed, container image provided.\n     - uses an embedded database, sled, to store paste metadata.\n     - various templates like this page are compiled in by default\n       but can be customized by providing external files.\n\nInstallation\n============\n\n You're a big boi, you'll figure it out\n\nUsage\n=====\n\nFiles\n-----\n Upload\n\n  Upload files:\n  -----------------------------------------------------------------------------------\n  $ curl -F a=@vim.png b=@vim2.png https://{{ url }}/\n  https://{{ url }}/picturedsalters aloofgremlins\n  -----------------------------------------------------------------------------------\n  The second string is a token needed to authenticate for\n  modifying or deleteing your uploads.\n\n Retrieve\n\n  Retrieve file:\n  -----------------------------------------------------------------------------------\n  GET https://{{ url }}/picturedsalters\n  -----------------------------------------------------------------------------------\n\n  View file with syntax highlighting:\n  -----------------------------------------------------------------------------------\n  GET https://{{ url }}/picturedsalters?lang=rust\n  GET https://{{ url }}/picturedsalters?lang=auto (attempts detection)\n  -----------------------------------------------------------------------------------\n\n Delete\n\n  Delete file:\n  -----------------------------------------------------------------------------------\n  $ curl -X DELETE https://{{ url }}/picturedsalters?token=aloofgremlins\n  or\n  GET https://{{ url }}/delete/picturedsalters?token=aloofgremlins\n  -----------------------------------------------------------------------------------\n\nExpiry\n======\n\n Files expire after an mount of time calculated based on the following formula:\n\n    min_age + (-max_age + min_age) * (size / max_size - 1)^3\n\n Where min_age is 5 days, max_age is 365 days, and the maximum size is 512MiB.\n\n  days\n  350 |.\n      | ..\n      |  ..\n  300 |-   ..\n      |     ..\n  250 |-      .\n      |        ..\n      |         ..\n  200 |-          ..\n      |             ..\n      |               ..\n  150 |-                ...\n      |                   ...\n      |                     ...\n  100 |-                       ...\n      |                           ....\n   50 |-                            ......\n      |                                   ......\n      |                                         ............................\n    0 +------------|-------------|------------|-------------|------------|-+\n      0           100           200          300           400          500 MiB\n\nGUI\n=====\n\nA graphical user interface is available at: https://{{ url }}/gui\n\n\nSource\n=====\n\nThe source code can be found at: https://gitlab.com/cocainefarm/pastor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxaudron%2Fpastor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxaudron%2Fpastor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxaudron%2Fpastor/lists"}