{"id":29220122,"url":"https://github.com/shadmanadman/kwebview","last_synced_at":"2025-08-01T15:07:34.228Z","repository":{"id":278241601,"uuid":"934967511","full_name":"shadmanadman/KWebView","owner":"shadmanadman","description":"A Lightweight and simple webview for Kotlin Multiplatform targeting Android, iOS and Desktop","archived":false,"fork":false,"pushed_at":"2025-07-26T09:33:34.000Z","size":556,"stargazers_count":13,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T13:55:07.581Z","etag":null,"topics":["kmp","kotlin","webapp","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/shadmanadman.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-18T17:31:41.000Z","updated_at":"2025-07-26T09:33:38.000Z","dependencies_parsed_at":"2025-06-29T11:04:39.636Z","dependency_job_id":"133b0da0-a665-4516-8184-123926889279","html_url":"https://github.com/shadmanadman/KWebView","commit_stats":null,"previous_names":["shadmanadman/kmp-webview","shadmanadman/kwebview"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/shadmanadman/KWebView","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadmanadman%2FKWebView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadmanadman%2FKWebView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadmanadman%2FKWebView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadmanadman%2FKWebView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadmanadman","download_url":"https://codeload.github.com/shadmanadman/KWebView/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadmanadman%2FKWebView/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268248556,"owners_count":24219555,"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-01T02:00:08.611Z","response_time":67,"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":["kmp","kotlin","webapp","webview"],"created_at":"2025-07-03T02:38:00.974Z","updated_at":"2025-08-01T15:07:34.222Z","avatar_url":"https://github.com/shadmanadman.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"http://www.wtfpl.net/\"\u003e\u003cimg\n       src=\"http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-4.png\"\n       width=\"80\" height=\"15\" alt=\"WTFPL\" /\u003e\u003c/a\u003e\n[![Kotlin](https://img.shields.io/badge/Kotlin-2.1.21-blue.svg?style=flat-square\u0026logo=kotlin)](https://kotlinlang.org/)\n[![Gradle](https://img.shields.io/badge/Gradle-8.x-green.svg?style=flat-square\u0026logo=gradle)](https://gradle.org/)\n![](kwebview.jpg)\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n### Adding dependencies\n- Add it in your `commonMain.dependencies`\n  ```\n  implementation(\"io.github.shadmanadman:kwebview:1.31.0\")\n  ```\n\n### Usage  \n```\nKWebView(\n    modifier: Modifier? = null,\n    url: String? = null,\n    htmlContent: String? = null,\n    enableJavaScript: Boolean = false,\n    allowCookies: Boolean = false,\n    enableDomStorageForAndroid: Boolean=false,\n    isLoading: ((isLoading: Boolean) -\u003e Unit)? = null,\n    onUrlClicked: ((url: String) -\u003e Unit)? = null\n)\n```\n- `isLoading`: Current loading status of the web view\n- `onUrlClicked`: If user click's on a link inside your web view you can handel it here. \n   - *Note*: Images(jpg,pngs) and attachment.id are excluded and will be opened inside your     \n     current web view.\n   - *Note*: If you don't implement this, all links will be opened in your current web view.\n- `enableJavaScript`: Enable javascript content\n- `allowCookies`: allow the webview to use cookies\n- `enableDomStorageForAndroid`: enable DOM storage for Android\n\n#### Rearranging html content\nIf you are loading html content you can change some font options and rearrange the content to be shown better\non smaller devices:\n```\nKWebView(\n    htmlContent: content.formatHtmlContent(\n    fontSize: Int = 12,\n    textAlign: TextAlign = TextAlign.JUSTIFY,\n    fontColor: String = \"#000000\"\n    ),\n    //... other params \n)\n```\n### Licence       \n```\n               DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n                    Version 2, December 2004 \n\n Copyright (C) 2025 Shadman Adman \u003cadman.shadman@gmail.com\u003e \n\n Everyone is permitted to copy and distribute Kmp-WebView or modified \n copies of this license document, and changing it is allowed as long \n as the name is changed. \n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE \n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION \n\n0. You just DO WHAT THE FUCK YOU WANT TO.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadmanadman%2Fkwebview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadmanadman%2Fkwebview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadmanadman%2Fkwebview/lists"}