{"id":21923209,"url":"https://github.com/deislabs/wagi-fileserver-c","last_synced_at":"2026-05-09T10:53:58.072Z","repository":{"id":74327196,"uuid":"386386979","full_name":"deislabs/wagi-fileserver-c","owner":"deislabs","description":"A static file server for Wagi written in C","archived":false,"fork":false,"pushed_at":"2021-07-15T18:35:57.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-03-04T13:46:09.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Makefile","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/deislabs.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}},"created_at":"2021-07-15T18:22:26.000Z","updated_at":"2023-06-14T06:55:05.000Z","dependencies_parsed_at":"2023-07-24T03:01:46.318Z","dependency_job_id":null,"html_url":"https://github.com/deislabs/wagi-fileserver-c","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deislabs%2Fwagi-fileserver-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deislabs%2Fwagi-fileserver-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deislabs%2Fwagi-fileserver-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deislabs%2Fwagi-fileserver-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deislabs","download_url":"https://codeload.github.com/deislabs/wagi-fileserver-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945626,"owners_count":20536297,"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":[],"created_at":"2024-11-28T21:09:42.959Z","updated_at":"2026-05-09T10:53:58.000Z","avatar_url":"https://github.com/deislabs.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fileserver-C\n\nA [Wagi](https://github.com/deislabs/wagi) static fileserver written in C.\n\n\u003e DeisLabs is experimenting with many WASM technologies right now.\n\u003e This is one of a multitude of projects designed to test the limits\n\u003e of WebAssembly as a cloud-based runtime. This code is not stable or\n\u003e production ready.\n\n## Running in Wagi\n\n```console\n$ make build\n.tools/wasi-sdk-12.0/bin/clang ./src/main.c -o fileserver.wasm -glldb --sysroot .tools/wasi-sdk-12.0/share/wasi-sysroot/\n\n$ make bindle-push\nhippofactory HIPPOFACTS -v production --action bindle --server http://127.0.0.1:8080/v1\npushed: fileserver-c/0.1.0\n```\n\nThen run it in Wagi\n\n```console\n$ wagi --bindle fileserver-c/0.1.0 --bindle-server http://127.0.0.1:8080/v1\n```\n\n### Testing the Static Fileserver with `curl`\n\nAssuming you have Wagi running on `http://localhost:3000`\n\n```console\n$ curl -v localhost:3000/static/LICENSE\n*   Trying 127.0.0.1...\n* TCP_NODELAY set\n* Connected to localhost (127.0.0.1) port 3000 (#0)\n\u003e GET /LICENSE HTTP/1.1\n\u003e Host: localhost:3000\n\u003e User-Agent: curl/7.64.1\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Content-Length: 1104\n\u003c Content-Type: text/plain\n\u003c Date: Thu, 15 Jul 2021 18:14:49 GMT\n\u003c\nThe MIT License (MIT)\n\nCopyright (c) Microsoft Corporation. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE\n* Connection #0 to host localhost left intact\n* Closing connection 0\n```\n\n## Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of\nConduct](https://opensource.microsoft.com/codeofconduct/).\n\nFor more information see the [Code of Conduct\nFAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact\n[opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional\nquestions or comments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeislabs%2Fwagi-fileserver-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeislabs%2Fwagi-fileserver-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeislabs%2Fwagi-fileserver-c/lists"}