{"id":13930206,"url":"https://github.com/CorentinTh/snut","last_synced_at":"2025-07-19T12:31:54.876Z","repository":{"id":37028119,"uuid":"440999095","full_name":"CorentinTh/snut","owner":"CorentinTh","description":"Another pastebin with a clean and minimalist ui.","archived":true,"fork":false,"pushed_at":"2024-08-29T19:56:40.000Z","size":340,"stargazers_count":13,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-29T22:11:49.076Z","etag":null,"topics":["clean","emit","minimalist","pastebin","self-hosted","send","share","text","transmit"],"latest_commit_sha":null,"homepage":"https://snut.thomasset.co","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/CorentinTh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["CorentinTh"]}},"created_at":"2021-12-22T22:27:59.000Z","updated_at":"2024-08-29T19:57:00.000Z","dependencies_parsed_at":"2023-10-20T22:33:49.717Z","dependency_job_id":"367d63c4-90fd-4212-98cb-6368dd32bc18","html_url":"https://github.com/CorentinTh/snut","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":"0.11627906976744184","last_synced_commit":"cc1ca0a54fa331f30bc500cee5d954f68c32b957"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinTh%2Fsnut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinTh%2Fsnut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinTh%2Fsnut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CorentinTh%2Fsnut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CorentinTh","download_url":"https://codeload.github.com/CorentinTh/snut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226607606,"owners_count":17658483,"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":["clean","emit","minimalist","pastebin","self-hosted","send","share","text","transmit"],"created_at":"2024-08-07T18:05:09.422Z","updated_at":"2024-11-26T19:30:56.299Z","avatar_url":"https://github.com/CorentinTh.png","language":"TypeScript","funding_links":["https://github.com/sponsors/CorentinTh"],"categories":["self-hosted"],"sub_categories":[],"readme":"\u003e [!WARNING]  \n\u003e Archived and no longer maintained. Please check [Enclosed](https://github.com/CorentinTh/enclosed/) for an up-to-date alternative.\n\n# Snut\n\nAnother pastebin with a clean and minimalist ui. Made for selfhosting.\n\nUse it online : [snut.thomasset.co](https://snut.thomasset.co/)\n\n![screenshot](./.github/screenshot.png)\n\n## Host your instance\n\n### Installation\n\n```shell\ndocker run -d --restart unless-stopped -v $(pwd)/db:/app/db -e DATABASE_PATH=/app/db/db.sqlite -p 3000:3000 --name snut corentinth/snut:nightly\n```\n\n### Configuration\n\n| ENV variable       | Default value | Format                                        | Description                                                                           |\n| ------------------ | ------------- | --------------------------------------------- | ------------------------------------------------------------------------------------- |\n| NODE_ENV           | development   | production, development, test                 | The application environment.                                                          |\n| PORT               | 3000          | port                                          | The port to bind.                                                                     |\n| MS_BEFORE_OUTDATED | 3600000       | Number                                        | The duration in ms before an entry is outdated.                                       |\n| CHECK_OUTDATED_MS  | 10000         | Number                                        | The interval in ms to check for outdated.                                             |\n| DB_TYPE            | sqlite        | sqlite, mysql, postgres, cockroachdb, mariadb | The database type                                                                     |\n| DB_PATH            | ./db.sqlite   | String                                        | Sqlite database path.                                                                 |\n| THROTTLE_TTL       | 1800000       | Number                                        | Timeframe for which requests are checked/remembered.                                  |\n| THROTTLE_LIMIT     | 100           | Number                                        | Max number of connections during windowMs milliseconds before sending a 429 response. |\n\n## Contribute\n\n**Pull requests are welcome !** Feel free to contribute.\n\nTo contribute to this project, first clone this repo\n\n```bash\ngit clone git@github.com:CorentinTh/snut.git\n```\n\n### Installation\n\n```bash\npnpm i\n```\n\n### Running the app\n\n```bash\n# development\npnpm dev\n```\n\n### Test\n\n```bash\n# unit tests\npnpm  test\n```\n\n## Credits\n\nCoded with ❤️ by [Corentin Thomasset](https://github.com/CorentinTh).\n\nName found with ❤️ by [Aimie Tremoureux](https://twitter.com/dwenna_art).\n\n## License\n\nThis project is under the [MIT license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorentinTh%2Fsnut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCorentinTh%2Fsnut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorentinTh%2Fsnut/lists"}