{"id":29093434,"url":"https://github.com/dmtrkovalenko/assembly-http-server","last_synced_at":"2025-07-31T09:06:03.614Z","repository":{"id":266933786,"uuid":"899678049","full_name":"dmtrKovalenko/assembly-http-server","owner":"dmtrKovalenko","description":"Under 200 loc HTTP server in Assembly (+ react server components implementation in assembly)","archived":false,"fork":false,"pushed_at":"2025-01-11T04:07:08.000Z","size":3622,"stargazers_count":175,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-24T02:15:29.970Z","etag":null,"topics":["arm64","http","http-server"],"latest_commit_sha":null,"homepage":"","language":"Assembly","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/dmtrKovalenko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2024-12-06T19:15:55.000Z","updated_at":"2025-06-10T14:41:38.000Z","dependencies_parsed_at":"2024-12-07T05:16:19.637Z","dependency_job_id":"dbc8b594-dd94-44f4-8e05-7c42a3f23f63","html_url":"https://github.com/dmtrKovalenko/assembly-http-server","commit_stats":null,"previous_names":["dmtrkovalenko/macos-assembly-http-server","dmtrkovalenko/assembly-http-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmtrKovalenko/assembly-http-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtrKovalenko%2Fassembly-http-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtrKovalenko%2Fassembly-http-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtrKovalenko%2Fassembly-http-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtrKovalenko%2Fassembly-http-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmtrKovalenko","download_url":"https://codeload.github.com/dmtrKovalenko/assembly-http-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmtrKovalenko%2Fassembly-http-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262399769,"owners_count":23305164,"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":["arm64","http","http-server"],"created_at":"2025-06-28T08:30:20.806Z","updated_at":"2025-06-28T08:30:23.921Z","avatar_url":"https://github.com/dmtrKovalenko.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MacOS HTTP server using pure assembly \n\nYes it is what it says in the title. Pure arm 64 assembly implementation of HTTP server in assembly with a \n\n- real (but primitive) routing (try /urmom and /urdad routes)\n- some kind of configuration (you can change the port in one place and it applies everywhere)\n- primitive logging to stdout\n\nAnd still under 200 lines of code.\n\n## Build and run it\n\nIt is a macos only assembly (remember, arm64) so it will work only on Apple Silicon macs.\n\n```bash\nas -o server.o server.s\nld -o server server.o -lSystem -L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -syslibroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -arch arm64 -platform_version macos 15.0 15.0 -e _main -dynamic\n\n./server\n```\n\nI recorded a very detailed youtube video with the description of every part of this assembly server. Watch here -\u003e https://www.youtube.com/watch?v=xfBVv3WI8kU\u0026t=2s\u0026ab_channel=NeoGoose\n\n## React server components implementation\n\nThis is fun, I know. Yes I also implemeneted a backend for React Server Components in assembly, you can find the code [here](https://github.com/dmtrKovalenko/assembly-http-server/tree/main/react_server_components). To run this app you need to run the actual react app dev server by installing node js and running \n\n```\nnpm install --legacy-peer-deps\nnpm start\n```\n\n**And** running the http server the same way as described above. \n\nOh and there is also a youtube video for this one -\u003e https://www.youtube.com/watch?v=i-4BJXTAFD0\u0026t=29s\n\n## Why did I do this? \n\nI don't know but you can follow me on twitter to not miss the next crazy thing I do: https://x.com/neogoose_btw\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmtrkovalenko%2Fassembly-http-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmtrkovalenko%2Fassembly-http-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmtrkovalenko%2Fassembly-http-server/lists"}