{"id":13533347,"url":"https://github.com/litehtml/litehtml","last_synced_at":"2025-05-14T04:07:52.323Z","repository":{"id":20026526,"uuid":"23294481","full_name":"litehtml/litehtml","owner":"litehtml","description":"Fast and lightweight HTML/CSS rendering engine","archived":false,"fork":false,"pushed_at":"2025-04-17T22:49:44.000Z","size":35365,"stargazers_count":2022,"open_issues_count":48,"forks_count":250,"subscribers_count":87,"default_branch":"master","last_synced_at":"2025-04-18T12:28:36.396Z","etag":null,"topics":["css","css-properties","css-standards","gumbo","gumbo-parser","html","html-renderer","litehtml","rendering-engine"],"latest_commit_sha":null,"homepage":"http://www.litehtml.com/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/litehtml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"support/README.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["http://www.litehtml.com/donate.html"]}},"created_at":"2014-08-24T22:17:10.000Z","updated_at":"2025-04-17T14:14:18.000Z","dependencies_parsed_at":"2023-02-19T13:15:44.680Z","dependency_job_id":"f69e262e-08b8-4c9f-b789-60c78d7efc80","html_url":"https://github.com/litehtml/litehtml","commit_stats":{"total_commits":787,"total_committers":53,"mean_commits":"14.849056603773585","dds":0.468869123252859,"last_synced_commit":"26d7b7ec7192f15fffc155d9dcdc991bcc5e4f65"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litehtml%2Flitehtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litehtml%2Flitehtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litehtml%2Flitehtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/litehtml%2Flitehtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/litehtml","download_url":"https://codeload.github.com/litehtml/litehtml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254069455,"owners_count":22009557,"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":["css","css-properties","css-standards","gumbo","gumbo-parser","html","html-renderer","litehtml","rendering-engine"],"created_at":"2024-08-01T07:01:18.913Z","updated_at":"2025-05-14T04:07:52.263Z","avatar_url":"https://github.com/litehtml.png","language":"C++","readme":"# What is litehtml?\n\n**litehtml** is the lightweight HTML rendering engine with CSS2/CSS3 support. Note that **litehtml** itself does not draw any text, pictures or other graphics and that **litehtml** does not depend on any image/draw/font library. You are free to use any library to draw images, fonts and any other graphics. **litehtml** just parses HTML/CSS and places the HTML elements into the correct positions (renders HTML). To draw the HTML elements you have to implement the simple callback interface [document_container](https://github.com/litehtml/litehtml/wiki/document_container). This interface is really simple, check it out! The [document_container](https://github.com/litehtml/litehtml/wiki/document_container) implementation is required to render HTML correctly.\n\n# Where litehtml can be used\n\n**litehtml** can be used when you need to show HTML formatted text or even to create a mini-browser, but using it as a full-featured HTML engine is not recommended. Usually you don't need something like WebKit to show simple HTML tooltips or HTML-formatted text, **litehtml** is much better for these as it's more lightweight and easier to integrate into your application.\n\n## HTML Parser\n\n**litehtml** uses the [gumbo-parser](https://codeberg.org/gumbo-parser/gumbo-parser) to parse HTML. Gumbo is an implementation of the HTML5 parsing algorithm implemented as a pure C99 library with no outside dependencies. It's designed to serve as a building block for other tools and libraries such as linters, validators, templating languages, and refactoring and analysis tools.\n\n## Compatibility\n\n**litehtml** is compatible with any platform supported by C++ and STL. For Windows MS Visual Studio 2013 is recommended. **litehtml** supports only UTF-8 strings.\n\n## Support for HTML and CSS standards\n\nUnfortunately **litehtml** is not fully compatible with HTML/CSS standards. There is lots of work to do to make **litehtml** work as well as modern browsers. But **litehtml** supports most HTML tags and CSS properties. You can find the list of supported CSS properties in  [this table](https://docs.google.com/spreadsheet/ccc?key=0AvHXl5n24PuhdHdELUdhaUl4OGlncXhDcDJuM1JpMnc\u0026usp=sharing). For most simple usecases the HTML/CSS features supported by **litehtml** are enough. Right now **litehtml** supports even some pages with very complex HTML/CSS designs. As an example the pages created with [bootstrap framework](http://getbootstrap.com/) are usually well formatted by **litehtml**.\n\n## Testing litehtml\n\nYou can [download the simple browser](http://www.litehtml.com/download.html) (**litebrowser**) to test the **litehtml** rendering engine.\n\nThe litebrowser source codes are available on GitHub:\n  * [For Windows](https://github.com/litehtml/litebrowser)\n  * [For Linux](https://github.com/litehtml/litebrowser-linux)\n  * [For Haiku](https://github.com/adamfowleruk/litebrowser-haiku)\n\n## License\n\n**litehtml** is distributed under [New BSD License](https://opensource.org/licenses/BSD-3-Clause).\nThe **gumbo-parser** is disributed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n\n## Links\n\n  * [source code](https://github.com/litehtml/litehtml)\n  * [website](http://www.litehtml.com/)\n","funding_links":["http://www.litehtml.com/donate.html"],"categories":["C++","Libraries"],"sub_categories":["C++"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitehtml%2Flitehtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flitehtml%2Flitehtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flitehtml%2Flitehtml/lists"}