{"id":50719117,"url":"https://github.com/ehsanmok/mobin","last_synced_at":"2026-06-09T22:01:24.788Z","repository":{"id":351481135,"uuid":"1209892732","full_name":"ehsanmok/mobin","owner":"ehsanmok","description":"A pastebin service built entirely in Mojo🔥. Zero Python in backend: the HTTP server, WebSocket server, database layer, JSON serialization, and routing are all Mojo code.","archived":false,"fork":false,"pushed_at":"2026-05-12T01:44:55.000Z","size":372,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-12T02:14:33.332Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://mobin.fly.dev","language":"Mojo","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/ehsanmok.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":"docs/security.md","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":"2026-04-13T22:17:37.000Z","updated_at":"2026-05-12T01:44:59.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ehsanmok/mobin","commit_stats":null,"previous_names":["ehsanmok/mobin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ehsanmok/mobin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsanmok%2Fmobin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsanmok%2Fmobin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsanmok%2Fmobin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsanmok%2Fmobin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehsanmok","download_url":"https://codeload.github.com/ehsanmok/mobin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehsanmok%2Fmobin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34127345,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"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":[],"created_at":"2026-06-09T22:01:24.303Z","updated_at":"2026-06-09T22:01:24.778Z","avatar_url":"https://github.com/ehsanmok.png","language":"Mojo","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mobin\n\n[![CI](https://github.com/ehsanmok/mobin/actions/workflows/ci.yml/badge.svg)](https://github.com/ehsanmok/mobin/actions/workflows/ci.yml)\n[![Deploy](https://github.com/ehsanmok/mobin/actions/workflows/deploy.yml/badge.svg?event=workflow_run)](https://github.com/ehsanmok/mobin/actions/workflows/deploy.yml)\n\nA pastebin service built entirely in [Mojo](https://docs.modular.com/mojo/). Zero Python in the hot path: the HTTP server, WebSocket server, database layer, JSON serialisation, and routing are all Mojo code.\n\n**Live demo: [mobin.fly.dev](https://mobin.fly.dev/)**\n\n- **Backend**: Mojo ([flare](https://github.com/ehsanmok/flare) HTTP + WS, [sqlite](https://github.com/ehsanmok/sqlite), [json](https://github.com/ehsanmok/json), [morph](https://github.com/ehsanmok/morph) serde, [uuid](https://github.com/ehsanmok/uuid), [tempo](https://github.com/ehsanmok/tempo), [envo](https://github.com/ehsanmok/envo), [pprint](https://github.com/ehsanmok/pprint))\n- **Frontend**: Vanilla JS + nginx, live feed via WebSocket, auto-removal of expired pastes\n- **Infra**: Docker Compose, single root `pixi.toml` (monorepo), GitHub Actions -\u003e [Fly.io](https://fly.io) CD\n\n## Architecture\n\n```mermaid\ngraph TD\n    subgraph Browser\n        UI[HTML / JS frontend]\n    end\n\n    subgraph \"Docker / Fly.io\"\n        direction TB\n        NGINX[nginx :3000\\nfrontend]\n\n        subgraph Mojo backend process\n            FORK[fork]\n            HTTP[HttpServer :8080\\nREST API]\n            WS[WsServer :8081\\nWebSocket feed]\n        end\n\n        SQLITE[(SQLite WAL\\n/data/mobin.db)]\n    end\n\n    UI --\u003e|HTTP GET /| NGINX\n    UI --\u003e|REST API calls| HTTP\n    UI --\u003e|ws://...:8081/feed| WS\n\n    FORK --\u003e|parent| HTTP\n    FORK --\u003e|child| WS\n\n    HTTP --\u003e|per-request connection| SQLITE\n    WS --\u003e|per-connection connection| SQLITE\n```\n\n## Quick start\n\n```bash\npixi install          # resolve + install all Mojo dependencies\npixi run run-dev      # start backend on :8080 (HTTP) and :8081 (WS)\n```\n\nOpen `http://localhost:8080`. The backend serves the embedded frontend directly.\n\nOr with Docker Compose:\n\n```bash\ndocker compose up --build\n# Frontend: http://localhost:3000\n# Backend:  http://localhost:8080\n```\n\n## Documentation\n\n| Guide | What it covers |\n|-------|---------------|\n| [Architecture](docs/architecture.md) | Process model, database design, URL routing, stats table |\n| [API Reference](docs/api.md) | REST endpoints, WebSocket feed, TTL options, curl examples |\n| [Development](docs/development.md) | Repo layout, pixi commands, environment variables, integration tests |\n| [Package Management](docs/package-management.md) | Why Pixi, dependency pinning, dependency graph |\n| [Deployment](docs/deployment.md) | Fly.io, VPS + Docker Compose, Caddy TLS, Litestream backup |\n| [Performance](docs/performance.md) | Local and live benchmarks |\n| [Security](docs/security.md) | Security checklist and resilience |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsanmok%2Fmobin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehsanmok%2Fmobin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehsanmok%2Fmobin/lists"}