{"id":19788871,"url":"https://github.com/niklaskorz/scarf","last_synced_at":"2026-05-11T21:33:34.537Z","repository":{"id":4578958,"uuid":"5720715","full_name":"niklaskorz/scarf","owner":"niklaskorz","description":"Non-blocking web server for Objective-C (OS X and iOS)","archived":false,"fork":false,"pushed_at":"2012-09-09T09:58:08.000Z","size":676,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T14:44:18.290Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://niklaskorz.github.com/scarf/","language":"Objective-C","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/niklaskorz.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}},"created_at":"2012-09-07T18:25:44.000Z","updated_at":"2013-11-07T21:34:27.000Z","dependencies_parsed_at":"2022-07-07T16:47:16.081Z","dependency_job_id":null,"html_url":"https://github.com/niklaskorz/scarf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niklaskorz/scarf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklaskorz%2Fscarf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklaskorz%2Fscarf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklaskorz%2Fscarf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklaskorz%2Fscarf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklaskorz","download_url":"https://codeload.github.com/niklaskorz/scarf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklaskorz%2Fscarf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32913770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-11T17:09:15.040Z","status":"ssl_error","status_checked_at":"2026-05-11T17:08:45.420Z","response_time":120,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-12T06:29:04.341Z","updated_at":"2026-05-11T21:33:34.509Z","avatar_url":"https://github.com/niklaskorz.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Scarf** is a non-blocking web server for Objective-C, supporting both OS X and iOS.\n\n**Dependencies:**\n\n- Grand Central Dispatch (OS X 10.6 or newer, iOS 4.0 or newer)\n- New Objective-C literals (Clang 4.0 or newer)\n- [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket)\n\nLicense\n-------\n**Scarf** uses the MIT license. See [LICENSE](https://raw.github.com/dindresto/scarf/master/LICENSE) for more information.\n\nSimple Example\n--------------\n```objc\nSCHTTPRequestHandler *indexHandler = [[SCHTTPRequestHandler alloc] init];\n[indexHandler setHandlerBlock:^(SCHTTPRequest *request, SCHTTPResponse *response) {\n    [response write:@\"Hello World!\"];\n    return YES;\n} forMethod:@\"GET\"];\n\nNSDictionary *routes = @{\n    @\"/\": indexHandler\n};\n\nSCHTTPServer *server = [[SCHTTPServer alloc] initWithRoutes:routes];\nNSError *error;\n[server listenToPort:8080 error:\u0026error];\nif (error) {\n    NSLog(@\"Couldn't start HTTP server: %@\", error);\n}\n```\n\nUsage\n-----\nYou might have noticed that **Scarf** doesn't have any Xcode project files. Instead, you're encouraged to use [CocoaPods](https://github.com/CocoaPods/CocoaPods). Though you're free to copy the source files directly into your project (but keep in mind that you'll also need to add [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket) yourself in this case).\nSee the [wiki](https://github.com/dindresto/scarf/wiki) for examples and documentation.\n\n###With CocoaPods\nIn this case, you'll just need a Podfile in your project (see the [CocoaPods wiki](https://github.com/CocoaPods/CocoaPods/wiki) for more information) with **Scarf** as a dependency:\n\n```ruby\npod 'Scarf', :git =\u003e 'https://github.com/dindresto/scarf.git'\n```\n\n###Without CocoaPods\nJust make sure you also get [CocoaAsyncSocket](https://github.com/robbiehanson/CocoaAsyncSocket).\n\nProjects using Scarf\n--------------------\nFor now, this list is empty. Anyway, it would be nice of you to contact me if you use **Scarf** in one of your projects.\n\nOther platforms\n--------------------------\nIt may be possible to use **Scarf** on other platforms. Grand Central Dispatch is also available on [FreeBSD](http://wiki.freebsd.org/GCD \"Grand Central Dispatch (GCD) on FreeBSD\") and Linux ([Debian](http://packages.debian.org/sid/libdispatch0 \"user space implementation of the Grand Central Dispatch API\"), [source](http://libdispatch.macosforge.org/)), and you're free to port libdispatch to your favorite system, since it's [open source](http://libdispatch.macosforge.org/).\nAside of that, you'll also need a port of the [Foundation Framework](http://developer.apple.com/library/mac/#documentation/cocoa/reference/foundation/ObjC_classic/_index.html \"Foundation Framework Reference\"), like [GNUStep](http://www.gnustep.org/), and a compiler with support for the new Objective-C literals (Clang 4.0 or newer).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklaskorz%2Fscarf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklaskorz%2Fscarf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklaskorz%2Fscarf/lists"}