{"id":13683236,"url":"https://github.com/jozsefsallai/fastbin-rewritten","last_synced_at":"2025-05-04T17:31:41.471Z","repository":{"id":55621513,"uuid":"317074774","full_name":"jozsefsallai/fastbin-rewritten","owner":"jozsefsallai","description":"modern self-hosted pastebin service - now serverless!","archived":false,"fork":false,"pushed_at":"2025-02-08T23:28:29.000Z","size":1128,"stargazers_count":37,"open_issues_count":0,"forks_count":24,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T08:48:32.847Z","etag":null,"topics":["api","pastebin","self-hosted","serverless","vercel"],"latest_commit_sha":null,"homepage":"https://fastbin.xyz","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/jozsefsallai.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-30T00:54:23.000Z","updated_at":"2025-02-08T23:28:33.000Z","dependencies_parsed_at":"2025-02-09T00:20:55.115Z","dependency_job_id":null,"html_url":"https://github.com/jozsefsallai/fastbin-rewritten","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Ffastbin-rewritten","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Ffastbin-rewritten/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Ffastbin-rewritten/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jozsefsallai%2Ffastbin-rewritten/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jozsefsallai","download_url":"https://codeload.github.com/jozsefsallai/fastbin-rewritten/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252371829,"owners_count":21737410,"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","pastebin","self-hosted","serverless","vercel"],"created_at":"2024-08-02T13:02:05.003Z","updated_at":"2025-05-04T17:31:41.425Z","avatar_url":"https://github.com/jozsefsallai.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","api"],"sub_categories":[],"readme":"# fastbin rewritten\n\nPainless, self-hosted, modern alternative to [Hastebin](https://hastebin.com/).\n\n## How to Use\n\nJust paste your code or text, click save, and you're ready to go! You can also\nselect a programming language from the dropdown. You can click on the **Raw**\nbutton to view only the contents, without any UI stuff.\n\nfastbin uses [Monaco](https://microsoft.github.io/monaco-editor/) as its editor,\nwhich is the editor used by Visual Studio Code. This offers great functionality\nand syntax highlighting support.\n\nYou can also clone a document using the **Clone** button.\n\nWhen viewing documents, the syntax highlighter works based on the ending of the\nURL. For example, if I have a JavaScript file with the key \"foobar\", I can\nappend \".js\" to the end of the URL and it will highlight it as JavaScript.\nAppending .js to the raw URL will obviously not work, it expects only the key to\nbe provided.\n\nOnce you create a snippet, you will be given a link that you can use to delete\nit from fastbin. This link will only ever be displayed ONCE, so make sure to\nsave it somewhere safe in case you want to delete your snippet later.\n\n## fastbin cli\n\nfastbin now has its own command line client. It's available for Linux, Mac OS,\nWindows, and OpenBSD and you can download it using the link below:\n\nhttps://github.com/jozsefsallai/fastbin-cli\n\n## Compatibility with Haste clients\n\nfastbin was designed to be compatible with most Hastebin clients. If your client\nsupport specifying a custom server, you can specify your self-hosted fastbin URL\nand it should work just fine.\n\n## Duration\n\nCurrently, files are stored for an indefinite amout of time. This might change\nin the future (possibly as a custom config option).\n\n## Privacy\n\nPlease do NOT post any of your secret keys or passwords to a fastbin server.\nEvery URL is unlisted, but again, available for the public. Snippets are NOT\nencrypted (i.e. they're plaintext). If there's popular demand for snippet\nencryption, I'll make sure to include that.\n\n## Abuse Report\n\nIf you find any content that violates your or someone else's rights, privacy, or\nis otherwise abusive or illegal, please report it to the maintainer of the\nfastbin server you're using via the following email: **[ABUSE_REPORT_EMAIL]**.\n\n## Self Hosting\n\n### One-Click Deployment with Vercel\n\nYou can deploy the app to your own [Vercel](https://vercel.com) account in just\none click:\n\n\u003ca href=\"https://vercel.com/new/project?template=jozsefsallai/fastbin-rewritten\"\u003e\u003cimg width=\"128\" src=\"https://vercel.com/button\" alt=\"One-click Deployment\" /\u003e\u003c/a\u003e\n\nOnce the project is created, you must specify the environment variables that are\nnecessary for the storage strategies to work. This is the same as creating a\n.env file in the manual setup.\n\n### One-Click Deployment with Netlify\n\nfastbin will work nicely on [Netlify](https://www.netlify.com) as well. It's one\nclick away:\n\n\u003ca href=\"https://app.netlify.com/start/deploy?repository=https://github.com/jozsefsallai/fastbin-rewritten\"\u003e\u003cimg src=\"https://www.netlify.com/img/deploy/button.svg\" alt=\"Deploy to Netlify\" /\u003e\u003c/a\u003e\n\nDon't forget to specify the environment variables for your Netlify project.\n\n### Manual Setup\n\n**1. Clone the repository**\n\n```\ngit clone git@github.com:jozsefsallai/fastbin-rewritten.git fastbin\ncd fastbin\n```\n\n**2. Install the dependencies**\n\n```\nnpm i -g yarn\nyarn\n```\n\n**3. Configure your fastbin server**\n\n```\ncp .env.example .env\nvim .env\n```\n\n**Start the server in development mode:**\n\n```\nyarn dev\n```\n\n**Create a production build:**\n\n```\nyarn build\nyarn start\n```\n\n## Storage Strategies\n\nAt the moment, fastbin can store snippets using three different strategies:\n`file`, `s3`, `r2`, `firebase`. You can specify which one you want to use by\nchanging the value of the `STORAGE_STRATEGY` environment variable inside of your\n`.env` file from `file` to any of the ones mentioned earlier.\n\nSome storage strategies require additional configuration.\n\n### FileStorageStrategy\n\nYou can specify the location of the snippets using the `FILE_STORAGE_LOCATION`\nenvironment variable. This path is relative to the root of the project.\n\n### S3StorageStrategy\n\nYou need to specify the auth credentials, as well as the endpoint and the S3\nbucket name using the `S3_*` environment variables.\n\n### R2StorageStrategy\n\nfastbin now supports Cloudflare R2. Set the storage strategy to `r2` and\nconfigure the environment variables starting with `R2_`.\n\n### FirebaseStorageStrategy\n\nYou need to specify the name of the Firebase Storage bucket\\* inside of the\n`FIREBASE_BUCKET` property of the config. You should also include your Firebase\ncredentials certificate in the `FIREBASE_SERVICE_ACCOUNT` environment variable.\n\n\\*Make sure you only specify the bucket's name, WITHOUT \".appspot.com\".\n\n## BREAKING CHANGES IN v3\n\n- The environment variables for the S3 storage strategy have been changed;\n- Specifying the service account for the Firebase storage strategy is now only\npossible through the `FIREBASE_SERVICE_ACCOUNT` environment variable.\n\n## Contribution\n\nContribution is more than welcome and appreciated! If you want to contribute,\nyou can:\n\n- [file a bug report](https://github.com/jozsefsallai/fastbin-rewritten/issues/new)\n- [submit a pull request](https://github.com/jozsefsallai/fastbin-rewritten/pulls)\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjozsefsallai%2Ffastbin-rewritten","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjozsefsallai%2Ffastbin-rewritten","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjozsefsallai%2Ffastbin-rewritten/lists"}