{"id":30590617,"url":"https://github.com/burhanverse/postify","last_synced_at":"2025-08-29T16:53:08.429Z","repository":{"id":310692310,"uuid":"1040859504","full_name":"Burhanverse/postify","owner":"Burhanverse","description":"An [ EXPERIMENTAL ] Controller Bot alternative","archived":false,"fork":false,"pushed_at":"2025-08-27T07:58:31.000Z","size":514,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-27T12:01:43.624Z","etag":null,"topics":["channel-management","grammyjs","telegram","telegrambot"],"latest_commit_sha":null,"homepage":"","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/Burhanverse.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}},"created_at":"2025-08-19T15:58:27.000Z","updated_at":"2025-08-27T07:58:34.000Z","dependencies_parsed_at":"2025-08-27T05:36:58.519Z","dependency_job_id":null,"html_url":"https://github.com/Burhanverse/postify","commit_stats":null,"previous_names":["burhancodes/postify"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Burhanverse/postify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burhanverse%2Fpostify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burhanverse%2Fpostify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burhanverse%2Fpostify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burhanverse%2Fpostify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Burhanverse","download_url":"https://codeload.github.com/Burhanverse/postify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Burhanverse%2Fpostify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272726366,"owners_count":24982845,"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","status":"online","status_checked_at":"2025-08-29T02:00:10.610Z","response_time":87,"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":["channel-management","grammyjs","telegram","telegrambot"],"created_at":"2025-08-29T16:53:07.752Z","updated_at":"2025-08-29T16:53:08.408Z","avatar_url":"https://github.com/Burhanverse.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postify Bot\n\nA Telegram channel management \u0026 scheduling bot built with TypeScript, grammy, MongoDB \u0026 Agenda.\n\n## Features (Roadmap)\n\n| Area                                  | Status                  |\n| ------------------------------------- | ----------------------- |\n| Channel connection (public \u0026 private) | Implemented             |\n| Permission checks (admin rights)      | Basic (post rights)     |\n| Multiple channels per user            | Implemented             |\n| Draft creation (text, media, buttons) | Implemented             |\n| Inline buttons (no counters)          | Implemented             |\n| Scheduling (presets + custom)         | Implemented             |\n| Timezone preferences                  | Implemented             |\n| Queues (scheduled list)               | Testing                 |\n| Send/Schedule \u0026 Pin the post          | Planned                 |\n| Group Topic Support                   | Planned                 |\n| Link personal bot                     | Implemented             |\n\n## Roadmap (Upcoming Ideas)\n\n- Add support for pinning the content after being posted.\n- Improve text formating of the response messages.\n\n## Development\n\nCreate a `.env` file:\n\n```\nBOT_TOKEN=123456:ABC...\nMONGODB_URI=mongodb://localhost:27017/postify\nDB_NAME=postify\nENCRYPTION_KEY=\nLOG_LEVEL=debug\n```\n\nEncryption: Provide `ENCRYPTION_KEY` (32‑byte hex or base64). Tokens are stored with AES‑256‑GCM in `tokenEncrypted`.\n\nIf `ENCRYPTION_KEY` is absent, an ephemeral key is used (NOT for production) and tokens become unreadable after restart.\nInstall deps and run in dev mode:\n\n```\nnpm install\nnpm run dev\n```\n\n### Docker\n\nBuild \u0026 run the production image (Fastify HTTP server exposes `/docs` for status \u0026 info):\n\n```\ndocker build -t postify .\ndocker run --env-file .env -p 3000:3000 postify\ncurl \"http://localhost:3000/docs?format=json\"\n```\n\n### docker-compose (local + MongoDB)\n\n```\ncp .env.example .env   # edit BOT_TOKEN\ndocker compose up --build\n```\n\nServices:\n\n- App: http://localhost:3000 (`/docs`)\n- MongoDB: localhost:27017\n\n### Docs Endpoint (with Health)\n\nThe minimal HTTP layer (Fastify) is required for container platforms. One combined endpoint:\n\n- `GET /docs` / `/` – HTML overview + health/status\n- `GET /docs?format=json` – machine-readable health/status JSON (db state, agenda, counts, uptime)\n\n### Render Deployment\n\n1. Create new Web Service from this repo.\n2. Environment: Docker.\n3. Expose port: 3000 (Render auto-detects via `PORT` env var, already honored).\n4. Health Check Path: `/docs?format=json` (optional but recommended).\n5. Env Vars (add in dashboard):\n\n- `BOT_TOKEN`\n- `MONGODB_URI` (e.g. external MongoDB Atlas or Render addon)\n- `DB_NAME` (optional, default `postify`)\n- `LOG_LEVEL` (optional)\n\n6. No custom start command needed (`CMD [\"node\", \"dist/index.js\"]`).\n\nRender automatically sets `PORT`; the server listens on `0.0.0.0:$PORT`.\n\n### GitHub Container Registry (optional)\n\nA workflow (see `.github/workflows/docker-image.yml`) can build \u0026 push an image on pushes to `main` / tags. To enable pushes:\n\n- Add a repository secret `CR_PAT` with a Personal Access Token (packages:write, repo scopes) or use `GITHUB_TOKEN` (already configured in workflow for GHCR).\n- Pull image: `docker pull ghcr.io/\u003cowner\u003e/\u003crepo\u003e:latest`.\n\n### Tests\n\nRun unit tests:\n\n```\nnpm test\n```\n\n## Text Formatting\n\nPostify supports rich text formatting using HTML tags:\n\n- `\u003cb\u003ebold text\u003c/b\u003e` for **bold**\n- `\u003ci\u003eitalic text\u003c/i\u003e` for _italic_\n- `\u003ccode\u003einline code\u003c/code\u003e` for `monospace`\n- `\u003cpre\u003ecode block\u003c/pre\u003e` for code blocks\n- `\u003cblockquote\u003equoted text\u003c/blockquote\u003e` for quotes\n\nExample:\n\n```\n\u003cb\u003eHello\u003c/b\u003e \u003ci\u003eworld\u003c/i\u003e! Here's some \u003ccode\u003ecode\u003c/code\u003e:\n\n\u003cpre\u003e\nfunction hello() {\n  console.log(\"Hello world!\");\n}\n\u003c/pre\u003e\n\n\u003cblockquote\u003eThis is a quote\u003c/blockquote\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburhanverse%2Fpostify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fburhanverse%2Fpostify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fburhanverse%2Fpostify/lists"}