{"id":15105905,"url":"https://github.com/obsidian-rs/obsidian","last_synced_at":"2025-09-27T05:30:59.853Z","repository":{"id":49284088,"uuid":"150985147","full_name":"obsidian-rs/obsidian","owner":"obsidian-rs","description":"Ergonomic async http framework for reliable and efficient web","archived":true,"fork":false,"pushed_at":"2021-06-20T10:42:43.000Z","size":1580,"stargazers_count":27,"open_issues_count":14,"forks_count":4,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-11-16T18:13:42.411Z","etag":null,"topics":["async","await","framework","http-framework","rust","web-development"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/obsidian-rs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-30T16:37:53.000Z","updated_at":"2024-11-13T17:24:18.000Z","dependencies_parsed_at":"2022-08-25T10:11:24.558Z","dependency_job_id":null,"html_url":"https://github.com/obsidian-rs/obsidian","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian-rs%2Fobsidian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian-rs%2Fobsidian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian-rs%2Fobsidian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/obsidian-rs%2Fobsidian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/obsidian-rs","download_url":"https://codeload.github.com/obsidian-rs/obsidian/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234391377,"owners_count":18824809,"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":["async","await","framework","http-framework","rust","web-development"],"created_at":"2024-09-25T20:44:06.198Z","updated_at":"2025-09-27T05:30:54.550Z","avatar_url":"https://github.com/obsidian-rs.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://obsidian-rs.github.io\"\u003e\n    \u003cimg alt=\"Obsidian Logo\" src=\".github/media/logo.png\" width=\"450\"\u003e\n  \u003c/a\u003e\n  \u003ch1 align=\"center\"\u003e\n    Obsidian\n  \u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003eObsidian\u003c/strong\u003e is an ergonomic Rust async http framework for reliable and efficient web.\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://crates.io/crates/obsidian\"\u003e\n      \u003cimg alt=\"Obsidian crate\" src=\"https://img.shields.io/crates/v/obsidian.svg\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/obsidian-rs/obsidian/actions\"\u003e\n      \u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/obsidian-rs/obsidian/workflows/Obsidian%20Action/badge.svg\"\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg alt=\"Obsidian serve\" src=\"./screenshot/serve.png\" \u003e\n\u003c/div\u003e\n\n## Get Started\n```toml\n[dependencies]\n# add these 2 dependencies in Cargo.toml file\nobsidian = \"0.2.2\"\ntokio = \"0.2.21\"\n```\n\n## Hello World\n\n```rust\nuse obsidian::{context::Context, App};\n\n#[tokio::main]\nasync fn main() {\n    let mut app: App = App::new();\n\n    app.get(\"/\", |ctx: Context| async { ctx.build(\"Hello World\").ok() });\n\n    app.listen(3000).await;\n}\n```\n\n## Hello World (with handler function)\n\n```rust\nuse obsidian::{context::Context, App, ContextResult};\n\nasync fn hello_world(ctx: Context) -\u003e ContextResult {\n    ctx.build(\"Hello World\").ok()\n}\n\n\n#[tokio::main]\nasync fn main() {\n    let mut app: App = App::new();\n\n    app.get(\"/\", hello_world);\n\n    app.listen(3000).await;\n}\n```\n\n## JSON Response\n\n```rust\nuse obsidian::{context::Context, App, ContextResult};\nuse serde::*;\n\nasync fn get_user(ctx: Context) -\u003e ContextResult {\n    #[derive(Serialize, Deserialize)]\n    struct User {\n        name: String,\n    };\n\n    let user = User {\n        name: String::from(\"Obsidian\"),\n    };\n    ctx.build_json(user).ok()\n}\n\n#[tokio::main]\nasync fn main() {\n    let mut app: App = App::new();\n\n    app.get(\"/user\", get_user);\n\n    app.listen(3000).await;\n}\n\n```\n\n## Example Files\n\nExample are located in `example/main.rs`.\n\n## Run Example\n\n```\ncargo run --example example\n```\n\n## Current State\n\nNOT READY FOR PRODUCTION YET!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidian-rs%2Fobsidian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobsidian-rs%2Fobsidian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobsidian-rs%2Fobsidian/lists"}