{"id":23092616,"url":"https://github.com/kjdev/mmhd","last_synced_at":"2025-08-23T09:12:52.222Z","repository":{"id":145636367,"uuid":"11083838","full_name":"kjdev/mmhd","owner":"kjdev","description":"micro http server for makdown","archived":false,"fork":false,"pushed_at":"2013-10-07T06:51:14.000Z","size":152,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T18:37:38.808Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"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/kjdev.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":"2013-07-01T03:44:49.000Z","updated_at":"2013-10-07T06:51:16.000Z","dependencies_parsed_at":"2023-03-23T00:43:31.737Z","dependency_job_id":null,"html_url":"https://github.com/kjdev/mmhd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kjdev/mmhd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fmmhd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fmmhd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fmmhd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fmmhd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kjdev","download_url":"https://codeload.github.com/kjdev/mmhd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kjdev%2Fmmhd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746301,"owners_count":24813557,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-12-16T21:35:18.993Z","updated_at":"2025-08-23T09:12:52.194Z","avatar_url":"https://github.com/kjdev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mmhd: micro http server for makdown\n\nmicro http server for makdown\n\n## Dependencies\n\nlibmicrohttpd library.\n\n* [libmicrohttpd](http://www.gnu.org/software/libmicrohttpd)\n\nhoedown library.\n\n* [hoedown](https://github.com/kjdev/hoedown)\n\n## Build\n\nrequired.\n\n* [cmake](http://www.cmake.org)\n* [libmicrohttpd](http://www.gnu.org/software/libmicrohttpd)\n\n```\n% cmake .\n% make\n% make install\n```\n\n## Application\n\n command | description\n ------- | -----------\n mmhd    | micro http server for markdown\n\n### Application options\n\n option          | description               | default\n ------          | -----------               | -------\n -p, --port      | server bind port          | 8888\n -r, --rootdir   | document root directory   | .\n -d, --directory | directory index file name | index.md\n -s, --style     | style file                |\n -D, --daemonize | daemon command            |\n -P, --pidfile   | daemon pid file path      | /tmp/mmhd.pid\n\n## Run\n\ndefault bind port is 8888 and document root directory is '.'.\n\n```\n% mmhd [-p 8888] [-r .]\n```\n\nclient access.\n\n```\n% curl http://localhost:8888/test.md\n```\n\n`.md`, `.markdown` file is converted.\n\n### Run options\n\nset document root directory (/path/to/name).\n\n```\n% mmhd -r /path/to/name\n```\n\nset directory index (index.html).\n\n```\n% mmhd -d index.html\n```\n\nset style file (/path/to/style.html).\n\n```\n% mmhd -s /path/to/style.html\n```\n\n/path/to/style.html:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n\u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /\u003e\n\u003ctitle\u003eMarkdown\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\noutput after being converted into html from markdown in front of `\u003c/body\u003e`.\n\nthe other option confirm `--help`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fmmhd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkjdev%2Fmmhd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkjdev%2Fmmhd/lists"}