{"id":28514201,"url":"https://github.com/xirzo/websiteinc","last_synced_at":"2026-05-12T09:32:40.605Z","repository":{"id":280035948,"uuid":"940775006","full_name":"xirzo/WebsiteInC","owner":"xirzo","description":"Website written in C","archived":false,"fork":false,"pushed_at":"2025-06-22T15:08:24.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-14T06:43:46.056Z","etag":null,"topics":["c","nojavascript","website"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/xirzo.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":"2025-02-28T19:11:14.000Z","updated_at":"2025-06-22T15:08:28.000Z","dependencies_parsed_at":"2025-05-08T22:23:41.830Z","dependency_job_id":"fc7b61a2-661c-49aa-ad93-4df1a65e607e","html_url":"https://github.com/xirzo/WebsiteInC","commit_stats":null,"previous_names":["xirzo/cwebsite","xirzo/websiteinc","xirzo/c-website"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xirzo/WebsiteInC","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FWebsiteInC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FWebsiteInC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FWebsiteInC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FWebsiteInC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xirzo","download_url":"https://codeload.github.com/xirzo/WebsiteInC/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xirzo%2FWebsiteInC/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32932401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["c","nojavascript","website"],"created_at":"2025-06-09T01:36:03.336Z","updated_at":"2026-05-12T09:32:40.576Z","avatar_url":"https://github.com/xirzo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🖥️C-Website\n\n[![C Language](https://img.shields.io/badge/Language-C-blue.svg)](https://en.wikipedia.org/wiki/C_(programming_language))\n[![CMake](https://img.shields.io/badge/Build-CMake-green.svg)](https://cmake.org/)\n\n\u003e [!WARNING]  \n\u003e This project was created for educational purposes and demonstration only.\n\u003e The code is not production-grade and may have significant limitations, bugs, or security issues.  \n\u003e **Do not use this :)**\n\nThis project aims to create a fully functional website using the C programming language.\n\n![image](https://github.com/user-attachments/assets/f0fff757-9d7b-452c-851d-24035820b5bd)\n\n## ✨ Features\n\n- **Pure C Implementation**: Built using standard C libraries and minimal dependencies\n- **Simple HTTP Server**: Handles basic HTTP requests and serves static content\n- **Routing System**: Maps URLs to file resources\n\n## 🛠 Requirements\n\n- ⚙️ GCC compiler (clang won`t work)\n- 🛠 CMake (version 3.10 or higher)\n- 📦 [Http Parser Library](https://github.com/xirzo/httpparser)\n\n## 🔧 Building\n\n```bash\ngit clone https://github.com/xirzo/WebsiteInC\ncd WebsiteInC\n\nmkdir build\ncd build\n\ncmake .. --preset=gcc\nmake\n```\n\n## 🚀 Usage\n\nAfter building, set the port env and run the server:\n\n```bash\nexport PORT=5000\n```\n\n```bash\n./c_website\n```\n\nThe server will start on port 5000 by default. You can access the website at `http://localhost:5000`.\n\n## ⚙️ How It Works\n\nThe router maps the requested URI to a file. Then the server uses a simple HTTP parser to process incoming requests. When a request comes in, the router provides a file path then server reads the file and sends it back as an HTTP response.\n\nCurrent routes:\n\n- `/` → `index.html`\n- `/style.css` → `style.css`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fwebsiteinc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxirzo%2Fwebsiteinc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxirzo%2Fwebsiteinc/lists"}