{"id":17649036,"url":"https://github.com/daymxn/khtml","last_synced_at":"2025-07-23T18:05:48.970Z","repository":{"id":52845441,"uuid":"517875256","full_name":"daymxn/kHTML","owner":"daymxn","description":"Lightweight HTML5 DSL written in pure Kotlin!","archived":false,"fork":false,"pushed_at":"2022-08-05T00:09:31.000Z","size":160,"stargazers_count":6,"open_issues_count":95,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-14T20:32:59.799Z","etag":null,"topics":["documentation","dsl","functional","gradle","hacktoberfest","hacktoberfest-2022","hacktoberfest2022","html","html5","jvm","kotlin","lightweight","modular"],"latest_commit_sha":null,"homepage":"https://khtml.daymxn.com/","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daymxn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-26T01:38:19.000Z","updated_at":"2023-02-10T10:39:21.000Z","dependencies_parsed_at":"2022-08-22T23:00:42.493Z","dependency_job_id":null,"html_url":"https://github.com/daymxn/kHTML","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/daymxn/kHTML","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymxn%2FkHTML","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymxn%2FkHTML/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymxn%2FkHTML/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymxn%2FkHTML/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daymxn","download_url":"https://codeload.github.com/daymxn/kHTML/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymxn%2FkHTML/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266726627,"owners_count":23974927,"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-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["documentation","dsl","functional","gradle","hacktoberfest","hacktoberfest-2022","hacktoberfest2022","html","html5","jvm","kotlin","lightweight","modular"],"created_at":"2024-10-23T11:23:41.835Z","updated_at":"2025-07-23T18:05:48.949Z","avatar_url":"https://github.com/daymxn.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"wiki/logo.svg\" alt=\"kHTML logo\" width=\"350\"/\u003e\n\u003c/p\u003e\n\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/daymxn/kHTML?style=flat-square)\n![GitHub last commit (branch)](https://img.shields.io/github/last-commit/daymxn/kHTML/main?style=flat-square)\n![GitHub issues](https://img.shields.io/github/issues/daymxn/kHTML?style=flat-square)\n![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/daymxn/kHTML?style=flat-square)\n![GitHub](https://img.shields.io/github/license/daymxn/kHTML?style=flat-square)\n# kHTML\n\nSuper light-weight HTML5 DSL written in pure Kotlin!\n\nLearn how to use kHTML by reading our wiki [here.](https://khtml.daymxn.com/en/overview/)\n\n## Example\n\n```kotlin\nfun makeUserDisplay(users: List\u003cString\u003e) =\n    html {\n        body {\n            this write users.map { userEntry(it) }\n        }\n    }\n\nfun userEntry(name: String) =\n    div {\n        p {\n            this write \"Hello! My name is $name\"\n        }\n    }\n```\n\n## Installation\n\nUnfortunately, kHTML artifacts are not currently available on maven central. The reasoning for this can be found [here.](https://github.com/daymxn/kHTML/issues/1)\n\nFor the time being, you can pull kHTML artifacts from GitHub Packages.\n\n**_Gradle_**\n```kotlin\nimplementation(\"com.daymxn:khtml:1.0.0\")\n```\n\n**_Maven_**\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.daymxn\u003c/groupId\u003e\n  \u003cartifactId\u003ekhtml\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Notable features\n\n- 1:1 Mapping between HTML elements and Kotlin classes\n- Easily compile kHTML elements to string representations of HTML5\n- Functional element creation support\n- Fully documented API\n- Modular API to allow easy extendability\n- Lightweight DSL\n\n## Roadmap\n\n- Add unit tests\n- Add support for additional common HTML5 elements\n- Extend elements to offer _all_ props typically offered from their HTML counterpart\n\n## Getting Started\n\n[Basics](https://khtml.daymxn.com/en/getting%20started/basics/)\n\n[Adding Text](https://khtml.daymxn.com/en/getting%20started/text/)\n\n[Functional Elements](https://khtml.daymxn.com/en/getting%20started/functional-elements/)\n\n[More Functional Elements](https://khtml.daymxn.com/en/getting%20started/functional-elements-again/)\n\n[Configuring Elements](https://khtml.daymxn.com/en/getting%20started/configuring-elements/)\n\n[Adding custom Tags](https://khtml.daymxn.com/en/getting%20started/adding-custom-tags/)\n\n## Contributing\n\nContributions are always welcome!\n\nSee [contributing.md](/contributing.md) for ways to get started.\n\n\n## License\n\n[Apache 2.0](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaymxn%2Fkhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaymxn%2Fkhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaymxn%2Fkhtml/lists"}