{"id":16302642,"url":"https://github.com/timonson/himple","last_synced_at":"2026-04-25T12:36:37.661Z","repository":{"id":115674001,"uuid":"233460336","full_name":"timonson/himple","owner":"timonson","description":"Lightweight tokenizer and syntax highlighter","archived":false,"fork":false,"pushed_at":"2020-01-12T21:30:00.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:48:23.394Z","etag":null,"topics":["syntax-highlighter","tokenizer","web-components"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/timonson.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-12T21:19:34.000Z","updated_at":"2020-01-12T21:33:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"a13b590f-5f5f-46d7-90d3-84229aa74d6f","html_url":"https://github.com/timonson/himple","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/timonson/himple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonson%2Fhimple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonson%2Fhimple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonson%2Fhimple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonson%2Fhimple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timonson","download_url":"https://codeload.github.com/timonson/himple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timonson%2Fhimple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32262801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T09:15:33.318Z","status":"ssl_error","status_checked_at":"2026-04-25T09:15:31.997Z","response_time":59,"last_error":"SSL_read: 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":["syntax-highlighter","tokenizer","web-components"],"created_at":"2024-10-10T20:58:30.460Z","updated_at":"2026-04-25T12:36:37.622Z","avatar_url":"https://github.com/timonson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# himple\n\nLightweight tokenizer and syntax highlighter\n\n#### The following code will generate a rendered code block...\n\n```html\n\u003cbody\u003e\n  \u003cpre\u003e\u003ccode id=\"hFuncString\"\u003e\u003c/code\u003e\u003c/pre\u003e\n  \u003cscript type=\"module\"\u003e\n    import createHimple from \"./himple.js\"\n    const himple = createHimple()\n    const codeString = `h(\n  \"ul\",\n  { class: \"demo-switcher\" },\n  listElementContent.map((el, i) =\u003e\n    h(\n      \"li\",\n      {\n        onclick: event =\u003e change.next(event),\n        class: i === 0 ? \"active-index\" : null,\n      },\n      el.toString()\n    )\n  )\n)\n`\n    hFuncString.innerHTML = codeString\n    himple(hFuncString)\n  \u003c/script\u003e\n\u003c/body\u003e\n```\n\n#### ... which looks like this\n\n![](./himple-example.png \"himple highlighting\")\n\n## Credit\n\nLars Jung and his [lolight project](https://github.com/lrsjng/lolight)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonson%2Fhimple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonson%2Fhimple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonson%2Fhimple/lists"}