{"id":18155187,"url":"https://github.com/skyra-project/haste-server","last_synced_at":"2025-04-10T15:47:12.075Z","repository":{"id":37019571,"uuid":"275271610","full_name":"skyra-project/haste-server","owner":"skyra-project","description":"Haste Server used by Skyra","archived":false,"fork":false,"pushed_at":"2024-11-05T02:17:10.000Z","size":18227,"stargazers_count":23,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-05T03:20:58.472Z","etag":null,"topics":["docker","hacktoberfest","haste","pastebin","skyra"],"latest_commit_sha":null,"homepage":"https://hastebin.skyra.pw","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skyra-project.png","metadata":{"funding":{"github":["kyranet","favna"],"patreon":"kyranet","open_collective":null,"ko_fi":"kyranet","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://donate.skyra.pw/paypal","https://donate.favware.tech/paypal"]},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-27T00:25:23.000Z","updated_at":"2024-11-03T11:44:17.000Z","dependencies_parsed_at":"2023-10-15T20:46:07.343Z","dependency_job_id":"dbf9d02f-42a5-43c7-b9ed-f65447afdffa","html_url":"https://github.com/skyra-project/haste-server","commit_stats":null,"previous_names":["skyra-project/docker-images"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyra-project%2Fhaste-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyra-project%2Fhaste-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyra-project%2Fhaste-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skyra-project%2Fhaste-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skyra-project","download_url":"https://codeload.github.com/skyra-project/haste-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224580201,"owners_count":17334730,"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":["docker","hacktoberfest","haste","pastebin","skyra"],"created_at":"2024-11-02T04:01:33.662Z","updated_at":"2024-11-14T06:38:24.494Z","avatar_url":"https://github.com/skyra-project.png","language":"TypeScript","funding_links":["https://github.com/sponsors/kyranet","https://github.com/sponsors/favna","https://patreon.com/kyranet","https://ko-fi.com/kyranet","https://donate.skyra.pw/paypal","https://donate.favware.tech/paypal"],"categories":["TypeScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n![Skyra Logo](https://cdn.skyra.pw/gh-assets/skyra_avatar.png)\n\n# Skyra Project Haste Server\n\n**The HasteServer image used to provide a reliable, self-controlled and\nself-hosted HasteServer for Skyra**\n\n[![Discord](https://discord.com/api/guilds/254360814063058944/embed.png?style=banner2)](https://join.skyra.pw)\n\n\u003c/div\u003e\n\n## What is this repo?\n\nThis repo holds the source code used to provide a reliable, self-controlled and\nself-hosted HasteServer for Skyra. We saw the need to make our own version\nbecause the official image is heavily outdated. It is using outdated bundling,\noutdated packages, does not use TypeScript and its general code quality is not\nup to Skyra Project standards. That said, this image would not exist without the\nawesome work that [John Crepezzi](https://github.com/seejohnrun) has put in the\nofficial [haste-server](https://github.com/seejohnrun/haste-server) and we thank\nhim greatly for that.\n\n## API Documentation\n\nWe have published a Swagger UI for the API, you can access it by visiting\n[`/swagger-ui`](https://hastebin.skyra.pw/swagger-ui) on the server. If you are\nrunning this locally, you can access it by visiting\n`http://localhost:8290/swagger-ui`.\n\n## Paste lifetime\n\nPastes will stay for 3 days from creation. They may be removed earlier and\nwithout notice.\n\n## Usage\n\n### From the [website]\n\nType or paste what you want to upload into the website, save it, and then copy\nthe URL. Send that to someone and they'll be able to view the file.\n\nTo make a new entry, click \"New\", or press `CTRL+N` (Windows/Linux) or `⌘+N`\n(MacOS) on the keyboard.\n\n### From the Console\n\n#### UNIX Shell\n\nYou can use the following function to easily POST to a Hasteserver instance. It\nshould be noted that due to POSIX restrictions and shell differences, the\nfollowing may not work, but is guaranteed to on BaSH, Zsh, Fish, etc.\n\n##### Prerequisites\n\nFor this to run, your system needs:\n\n- `cat`\n- [`curl`](https://github.com/curl/curl)\n- [`jq`](https://github.com/stedolan/jq)\n\n##### Script\n\n```sh\nhaste() {\n curl -X POST -s -d \"$(cat)\" https://hastebin.skyra.pw/documents | jq --raw-output '.key' | { read key; echo \"https://hastebin.skyra.pw/${key}\"; }\n}\n```\n\n##### Usage\n\n```sh\ncat something | haste\n# https://hastebin.skyra.pw/1238193\n```\n\nYou can even take this a step further, and cut out the last step of copying the\nURL with:\n\n**MacOS:**\n\n```sh\ncat something | haste | pbcopy\n```\n\n**Linux:**\n\n```sh\ncat something | haste | copy_command\n```\n\nYou should replace `copy_command` with your clipboard of choice. This is\ntypically `xsel` or `xclipcopy` on systems using X11.\n\nAfter running that, the output of `cat something` will show up as a URL which\nhas been conveniently copied to your clipboard.\n\n#### PowerShell (Windows/Linux/MacOS)\n\n##### Prerequisites\n\nYou have to install\n[`powershell`](https://github.com/PowerShell/powershell/releases/latest) for\nthis script to work\n\n##### Script\n\n```ps1\nFunction haste {\n  $fileContent = Get-Content -Path $args[0] -Encoding UTF8 -Raw\n  $response = Invoke-RestMethod -Uri https://hastebin.skyra.pw/documents -Method POST -ContentType 'text/plain; charset=utf-8' -Body $fileContent\n  $key = $response.key\n\n  Write-Host https://hastebin.skyra.pw/$key\n}\n```\n\n##### Usage\n\n```ps1\nhaste .\\path\\to\\file\n# https://hastebin.skyra.pw/1238193\n```\n\n## Contributors\n\nPlease make sure to read the [Contributing Guide][contributing] before making a\npull request.\n\nThank you to all the people who already contributed to Skyra Project!\n\n\u003ca href=\"https://github.com/skyra-project/haste-server/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=skyra-project/haste-server\" /\u003e\n\u003c/a\u003e\n\n[contributing]:\n  https://github.com/skyra-project/.github/blob/main/.github/CONTRIBUTING.md\n[website]: https://hastebin.skyra.pw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyra-project%2Fhaste-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskyra-project%2Fhaste-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskyra-project%2Fhaste-server/lists"}