{"id":46627350,"url":"https://github.com/nynrathod/doolang","last_synced_at":"2026-04-01T17:26:19.569Z","repository":{"id":315029340,"uuid":"1057203233","full_name":"nynrathod/doolang","owner":"nynrathod","description":"Type-safe language for building APIs fast. Auth, CRUD, and deployment built-in, written in rust \u0026 llvm","archived":false,"fork":false,"pushed_at":"2026-03-17T11:18:19.000Z","size":5487,"stargazers_count":29,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-18T01:58:45.829Z","etag":null,"topics":["api-development","compiler","deployment-automation","doo","doolang","jwt-auth","postgresql","programming-language","rest-api"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nynrathod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":null,"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-09-15T12:13:04.000Z","updated_at":"2026-03-17T11:17:14.000Z","dependencies_parsed_at":"2025-10-17T04:19:43.999Z","dependency_job_id":"ee6b7dd8-888a-46e8-9270-75e64d5abf67","html_url":"https://github.com/nynrathod/doolang","commit_stats":null,"previous_names":["nynrathod/mylang","nynrathod/doolang"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/nynrathod/doolang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nynrathod%2Fdoolang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nynrathod%2Fdoolang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nynrathod%2Fdoolang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nynrathod%2Fdoolang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nynrathod","download_url":"https://codeload.github.com/nynrathod/doolang/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nynrathod%2Fdoolang/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31290537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api-development","compiler","deployment-automation","doo","doolang","jwt-auth","postgresql","programming-language","rest-api"],"created_at":"2026-03-07T23:02:11.800Z","updated_at":"2026-04-01T17:26:19.562Z","avatar_url":"https://github.com/nynrathod.png","language":"Rust","readme":"# Doo - Ship Production APIs in Minutes, Not Days\n\n[![Rust](https://img.shields.io/badge/Made%20with-Rust-orange)](https://www.rust-lang.org/)\n[![LLVM](https://img.shields.io/badge/LLVM-blueviolet)](https://llvm.org/)\n[![Native](https://img.shields.io/badge/Compiles%20to-Native-green)](https://llvm.org/)\n\n\u003e ⚠️ **Alpha Software**: Doo is in active development. Expect bugs and breaking changes. Not recommended for critical production use yet.\n\nDoo is a statically-typed, compiled programming language built in Rust + LLVM, designed for building production APIs quickly and safely. It uses automatic memory management via reference counting.\n\n**Stop wrestling with boilerplate. Write type-safe APIs and deploy with one command.**\n\n```rust\n// main.doo - Your entire API\nimport std::Http::Server;\nimport std::Database;\n\nstruct User {\n    id: Int @primary @auto,\n    email: Str @email @unique,\n    password: Str @hash,\n}\n\nstruct Todo {\n    id: Int @primary @auto,\n    title: Str @min(3),\n    done: Bool @default(false),\n}\n\nfn main() {\n    let db = Database::Postgres()?;\n    let app = Server::new(\":3000\");\n\n    // Authentication via JWT\n    app.auth(\"/signup\", \"/login\", User, db);\n\n    // Full CRUD\n    // GET, POST, GET/:id, PUT/:id, DELETE/:id\n    app.crud(\"/todos\", Todo, db);\n\n    app.start();\n}\n```\n\n**Run it:**\n\n```bash\ndoo run  # Compiles to native + starts server\n```\n\n---\n\n## Why Doo?\n\n| Traditional Stack          | Doo                       |\n| -------------------------- | ------------------------- |\n| 500+ lines of boilerplate  | 20 lines of code          |\n| 3 config files             | Zero config               |\n| Manual validation          | Auto-validated decorators |\n| Separate deployment setup  | One command deploy        |\n| Type mismatches at runtime | Compile-time safety       |\n\n---\n\n## 🔧 Installation\n\n### Windows (PowerShell)\n\n```powershell\nirm https://raw.githubusercontent.com/nynrathod/doolang/main/install.ps1 | iex\n```\n\n### Linux / macOS\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/nynrathod/doolang/main/install.sh | bash\n```\n\n### Verify Installation\n\n```bash\ndoo --help\n```\n\n---\n\n## 🎯 Quick Start\n\n### Starter Template\n\n```bash\ndoo init --template starter starter-api\ncd starter-api\ndoo run\n```\n\n### Blog Template\n\n```bash\ndoo init --template blog blog-api  # Blog posts + comments API\ncd blog-api\ndoo run\n```\n\nVisit `http://localhost:3000` - your API is live.\n\n---\n\n## 📖 Real-World Example\n\nComplete task management API with auth, CRUD, and custom queries:\n\n```rust\nimport std::Http::Server;\nimport std::Database;\n\nenum Status { Todo, InProgress, Done }\nenum Priority { Low, Medium, High }\n\nstruct User {\n    id: Int @primary @auto,\n    email: Str @email @unique,\n    password: Str @hash @min(8),\n}\n\nstruct Task {\n    id: Int @primary @auto,\n    title: Str @min(1) @max(200),\n    status: Status @default(Status::Todo),\n    priority: Priority @default(Priority::Medium),\n    userId: Int @foreign(User),\n}\n\nfn GetUrgent() -\u003e [Task] ! DatabaseError {\n    let db = Database::get()?;\n    let result: [Task] = db.rawWithParams(\n        \"SELECT * FROM tasks WHERE priority = $1 AND status != $2\",\n        [Priority::High, Status::Done]\n    )?;\n    Ok result;\n}\n\nfn main() {\n    let db = Database::Postgres()?;\n    let app = Server::new(\":3000\");\n\n    app.auth(\"/signup\", \"/login\", User, db);\n    app.crud(\"/tasks\", Task, db);\n    app.get(\"/tasks/urgent\", GetUrgent);\n\n    app.start();\n}\n```\n\n**That's it.** 30 lines for a production-ready API with:\n\n- ✓ User authentication with JWT\n- ✓ Password hashing\n- ✓ Struct validation\n- ✓ Full CRUD operations\n- ✓ Custom business logic\n- ✓ Auto error propagation\n- ✓ Auto migrate table on startup\n\n---\n\n## 🌐 Language Essentials\n\n### Variables \u0026 Types\n\n```rust\nlet name = \"Alice\";         // Type inferred\nlet age: Int = 25;          // Explicit\nlet mut count = 0;          // Mutable\n```\n\n| Type     | Example     |\n| -------- | ----------- |\n| `Int`    | `42`        |\n| `Float`  | `3.14`      |\n| `Str`    | `\"hello\"`   |\n| `Bool`   | `true`      |\n| `[T]`    | `[1, 2, 3]` |\n| `{K: V}` | `{\"a\": 1}`  |\n\n### Structs \u0026 Validation\n\n```rust\nstruct User {\n    id: Int @primary @auto,\n    email: Str @email @unique,\n    password: Str @hash @min(8) @max(20),\n    age: Int @min(18),\n}\n\n// Automatically create table on startup\nstruct AuditLog @table {\n    id: Int @primary @auto,\n    action: Str\n}\n```\n\n### Error Handling\n\n```rust\nfn divide(a: Int, b: Int) -\u003e Int ! Str {\n    if b == 0 { Err \"division by zero\"; }\n    Ok a / b;\n}\n\nlet result = divide(10, 2)?;  // Auto-propagate errors\n```\n\n### HTTP Routes\n\n```rust\nfn GetUser(id: Int) -\u003e User ! DatabaseError {\n    let db = Database::get()?;\n    Ok db.query(\"SELECT * FROM users WHERE id = $1\", id)?;\n}\n\napp.get(\"/users/:id\", GetUser);\n```\n\n**Full language guide:** See [`examples/`](examples/) folder for complete tutorials\n\n---\n\n## 📦 Examples\n\n- **[tasks_api](examples/tasks_api/)** - Complete CRUD + Auth + Custom queries\n- **[calculator](examples/calculator/)** - Error handling patterns\n- **[clean_code](examples/clean_code/)** - Service layers \u0026 validation\n\n**More examples:** [examples/](examples/)\n\n---\n\n## 💬 Community \u0026 Support\n\n- **GitHub Discussions**: Ask questions, share projects\n- **Issues**: Bug reports and feature requests\n- **Contributing**: We welcome PRs! See [CONTRIBUTING.md](CONTRIBUTING.md)\n\n---\n\n## What's Next\n\nWe're focused on adoption first. Next features will be driven by real developer needs:\n\n- More cloud providers + zero-config hosting\n- Multi-database support (MySQL, SQLite etc)\n- WebSocket, concurrency, async and many more\n\n**Want to influence the roadmap?** [Open a discussion →](https://github.com/nynrathod/doolang/discussions)\n\n---\n\n## 📜 License\n\nThis project is licensed under the MIT License\n\n---\n\n## 🙏 Acknowledgments\n\n- **LLVM Project**: For the powerful backend infrastructure\n- **Rust Community**: For inspiration and excellent tooling\n\n---\n\n**Ready to ship faster?** `doo init starter` ← Start here\n\n\u003e **Want to contribute?** See [CONTRIBUTING.md](CONTRIBUTING.md)  \n\u003e **For testing and development:** See [TEST.md](TEST.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnynrathod%2Fdoolang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnynrathod%2Fdoolang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnynrathod%2Fdoolang/lists"}