{"id":25403137,"url":"https://github.com/rhee876527/chiyogami","last_synced_at":"2026-04-09T03:01:32.214Z","repository":{"id":275124055,"uuid":"925145046","full_name":"rhee876527/chiyogami","owner":"rhee876527","description":"Yet another pastebin","archived":false,"fork":false,"pushed_at":"2026-03-23T19:38:45.000Z","size":365,"stargazers_count":74,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-24T17:49:52.504Z","etag":null,"topics":["codesnippets","golang","heroicons","javascript","pastebin","rest-api","self-hosted","tailwindcss","webcrypto"],"latest_commit_sha":null,"homepage":"https://chiyogami.myaddr.dev","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rhee876527.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-31T10:13:50.000Z","updated_at":"2026-03-23T19:38:49.000Z","dependencies_parsed_at":"2025-01-31T11:23:22.552Z","dependency_job_id":"94a70d68-3176-4f02-bdc6-ff12dbf45501","html_url":"https://github.com/rhee876527/chiyogami","commit_stats":null,"previous_names":["rhee876527/chiyogami"],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/rhee876527/chiyogami","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhee876527%2Fchiyogami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhee876527%2Fchiyogami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhee876527%2Fchiyogami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhee876527%2Fchiyogami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rhee876527","download_url":"https://codeload.github.com/rhee876527/chiyogami/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rhee876527%2Fchiyogami/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31583290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["codesnippets","golang","heroicons","javascript","pastebin","rest-api","self-hosted","tailwindcss","webcrypto"],"created_at":"2025-02-16T02:28:02.007Z","updated_at":"2026-04-09T03:01:32.209Z","avatar_url":"https://github.com/rhee876527.png","language":"HTML","funding_links":[],"categories":["Software"],"sub_categories":["Pastebins"],"readme":"## Chiyogami\n\n#### Chiyogami is a sleek, modern pastebin with encryption, customizable expiry, private pastes, user accounts and an API for developers.\n\n\n\n\n##### Screenshots:\n\n![screen-1](https://github.com/user-attachments/assets/5985f94d-4e35-4479-bc57-726e7cfb4577)\n![screen-2](https://github.com/user-attachments/assets/0918a641-bf50-4d26-971a-39d7e9876a6d)\n![screen-3](https://github.com/user-attachments/assets/95532b56-9e2f-447f-8c9c-cdbe4119fa59)\n\n\n\n\n\n✨ **Features**\n\n- ✔ Beautiful \u0026 Responsive UI — Built with TailwindCSS \u0026 DaisyUI for a clean and modern look.\n- 🖍 Syntax Highlighting — Automatic formatting with HighlightJS.\n- 📝 Markdown Rendering — Automatic formatting with Marked.\n- ⏳ Configurable Expiry — Set custom expiration times with API.\n- 🔒 Secure \u0026 Private — Client-side encryption with WebCrypto API for encrypted pastes. No password saved in server.\n- 📡 Powerful API — Create and fetch pastes without leaving the terminal.\n- 🔍 Public Pastes — List \u0026 search all public pastes.\n- 🔑 Private Pastes — Only accessible via a unique, unguessable link for enhanced privacy (use encryption on web UI for ultimate privacy).\n- 🗄 Local Storage — Uses SQLite for a lightweight, self-hostable database.\n- 👤 User Accounts — Create \u0026 manage your pastes with authentication.\n- 🔗 Easy Sharing — Share paste links or scan a QR code for instant access.\n- 🛡 Built-in Rate Limiting — Protects against spam and abuse with smart request throttling.\n- 🐳 Easy self-host with docker.\n\n\n\n\n## Installation\nDocker. Build it or check [docker-compose](https://github.com/rhee876527/chiyogami/blob/main/docker-compose.yml) file for example with pre-built images.\n\n### Quick run\n\n```\n docker run -d \\\n  -v \"$(pwd)/pastes:/pastes\" \\\n  -p 127.0.0.1:8000:8000 \\\n  --restart unless-stopped \\\n  ghcr.io/rhee876527/chiyogami:latest\n```\n\n### Environment variables\n\n\n| Env     | Default value | Note   |\n|----------|-----|--------------|\n| SECRET_KEY    | None  |  Session key. Keep secure and unique. Recommended example: openssl rand -base64 32.    |\n| PASTE_DEFAULT_EXPIRATION      | 24h  |    Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h” or `\"Never\"`  |\n| MAX_CHAR_CONTENT  | 50000  | Maximum characters allowed in content body. Larger limits may offer reduced performance     |\n| DISABLE_RATE_LIMIT  | None  | Use `1` to disable rate limit     |\n| CREATE_PER_MIN  | 10  | No of paste creation, register, login, delete account \u0026 delete paste requests allowed per minute     |\n| DATABASE_PATH  | None  | For local development use. Conflicts with docker volume paths.      |\n| DELETE_RETENTION | 90 | Number of days to keep soft-deleted pastes. Valid values: `1-99` |\n| COMPLEX_PASSWORD | None | Use `1` to activate. Requires complex password on user registration. Valid password: `Minimum 8 characters, including at least 1 lowercase, 1 uppercase, 1 number and 1 symbol.` |\n| ADMIN_CONTACT | None | Accepts email values. May be useful for moderation purposes. |\n\n#### Note about exposing /health to public\nSince v1.4.3 this `healthcheck` endpoint was created to actively monitor state of application's database. It has potential for abuse WHEN exposed publicly. Caution is hereby given to protect endpoint (http://localhost:8000/health) from external access as necessary.\n\nIf using `Traefik` as reverse proxy this can be done in the `docker-compose` file by adding the following middleware:\n```\n...\nservices:\n  chiyogami:\n    labels:\n      - \"traefik.http.routers.chiyogami.middlewares=localonly-health\"\n      - \"traefik.http.middlewares.localonly-health.replacepathregex.regex=^/health$\"\n      - \"traefik.http.middlewares.localonly-health.replacepathregex.replacement=/nonexistent-path\"\n...\n```\n\n## Usage\nWeb UI is simple \u0026 straightforward. Or use the `API`.\n\n#### Create paste\n***FILE***\n```\ncurl http://localhost:8000/paste -T sample.txt\n```\nor **JSON**\n```\ncurl -X POST \\\n  http://localhost:8000/paste \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"content\":\"Test paste\"}'\n```\n\n\n\n\n**response:** `{\"title\":\"OkxI\"}`\n\n\n\n\nNote: Pastes are created by default with `Public` `visibility`. They can be accessed from api or website.\nChange this to `Private` or `Unlisted` to make the paste undiscoverable. Pastes are also set to expire within 24hrs if expiry is not specified.\n\nYou can set a default expiry for new pastes with `PASTE_DEFAULT_EXPIRATION`.\n\n\n\n\n#### Create private paste with 48h expiry\n\n```\ncurl -X POST \\\n  http://localhost:8000/paste \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"content\":\"Test\", \"visibility\":\"Private\", \"expiration\":\"48h\"}'\n```\n**response:** `{\"title\":\"euVa\"}`\n\n\n\n\n#### Fetch created paste\n```\ncurl -X GET http://localhost:8000/paste/bZTR -H \"Accept: application/json\"\n```\n\n\n\n**response:**\n``\n{\"ID\":22,\"CreatedAt\":\"2025-02-04T19:48:06.747679947Z\",\"UpdatedAt\":\"2025-02-04T19:48:06.747679947Z\",\"DeletedAt\":null,\"Title\":\"bZTR\",\"Content\":\"test private\",\"Visibility\":\"Private\",\"Expiration\":\"2025-02-05T19:48:06.747635027Z\",\"IsEncrypted\":false,\"UserID\":0,\"IsUserPaste\":false}\n``\n\n\n#### Create user account\n\n```\ncurl -X POST \\\n  http://localhost:8000/register \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"username\":\"test\", \"password\":\"test\"}'\n```\n\n**response:** `{\"message\":\"User registered successfully\"}`\n\n\n#### Delete owner paste using session (from cookies)\n\n```\ncurl -X DELETE http://localhost:8000/paste/EIKq \\\n-b \"session=MTczNzA2NDI5NXxEWDhFQVFMX2dBQUJFQUVRQUFBZl80QUFBUVp6ZEhKcGJtY01DUUFIZFhObGNsOXBaQVIxYVc1MEJnSUFEQT09fLnhi2OxsN6coY5ZmmBeA0tPXUcsKiii6ECOoJ7yrqNC\"\n```\n\n**response:** `{\"message\":\"Paste deleted successfully\"}`\n\n#### Get instance configuration\n\n```\ncurl http://localhost:8000/info\n```\n\n**response:** `{\"ADMIN_CONTACT\":\"admin@example.com\",\"DELETE_RETENTION\":90,\"MAX_CHAR_CONTENT\":50000,\"PASTE_DEFAULT_EXPIRATION\":\"24h\"}`\n\n\n\n##### COPYRIGHT\nThis software is free to use in accordance with the [license](https://github.com/rhee876527/chiyogami/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhee876527%2Fchiyogami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frhee876527%2Fchiyogami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frhee876527%2Fchiyogami/lists"}