{"id":23191213,"url":"https://github.com/front-of-house/hyposcript","last_synced_at":"2026-04-25T02:02:11.011Z","repository":{"id":43809756,"uuid":"292933165","full_name":"front-of-house/hyposcript","owner":"front-of-house","description":"Tiny hyperscript made for server rendering.","archived":false,"fork":false,"pushed_at":"2023-02-07T03:13:59.000Z","size":177,"stargazers_count":20,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-18T00:53:45.462Z","etag":null,"topics":["hyperscript","hyposcript","jsx","ssr"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/front-of-house.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}},"created_at":"2020-09-04T19:44:20.000Z","updated_at":"2024-01-05T20:56:59.000Z","dependencies_parsed_at":"2023-02-19T14:45:56.473Z","dependency_job_id":null,"html_url":"https://github.com/front-of-house/hyposcript","commit_stats":null,"previous_names":["sure-thing/hyposcript"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/front-of-house%2Fhyposcript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/front-of-house%2Fhyposcript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/front-of-house%2Fhyposcript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/front-of-house%2Fhyposcript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/front-of-house","download_url":"https://codeload.github.com/front-of-house/hyposcript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230268704,"owners_count":18199806,"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":["hyperscript","hyposcript","jsx","ssr"],"created_at":"2024-12-18T12:16:35.355Z","updated_at":"2026-04-25T02:02:10.937Z","avatar_url":"https://github.com/front-of-house.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hyposcript\n\n[![npm version](https://img.shields.io/npm/v/hyposcript?style=flat\u0026colorA=4488FF\u0026colorB=4488FF)](https://www.npmjs.com/package/hyposcript) [![test coverage](https://img.shields.io/coveralls/github/sure-thing/hyposcript?style=flat\u0026colorA=223355\u0026colorB=223355)](https://coveralls.io/github/sure-thing/hyposcript?branch=main) [![npm bundle size](https://badgen.net/bundlephobia/min/hyposcript?color=223355\u0026labelColor=223355)](https://bundlephobia.com/result?p=hyposcript)\n\nHyper minimal hyperscript for server rendering.\n\n```\nnpm i hyposcript\n```\n\n## Usage\n\nHyposcript has essentially the same API as\n[hyperscript](https://github.com/hyperhype/hyperscript) or\n[React.createElement](https://reactjs.org/docs/react-without-jsx.html), so it\nshould feel familiar.\n\nThe difference is: no DOM, only strings.\n\n```js\nconst { h } = require('hyposcript')\n\nh('button', { class: 'btn' }, 'Click me!')\n\n// =\u003e \u003cbutton class=\"btn\"\u003eClick me!\u003c/button\u003e\n```\n\n### JSX\n\nTo use with JSX you'll need to transpile or use a runtime.\n\nFor example, if you're using `babel`, your config should probably look something\nlink this:\n\n```json\n{\n  \"presets\": [\n    [\n      \"@babel/preset-react\",\n      {\n        \"pragma\": \"h\",\n        \"pragmaFrag\": \"h\"\n      }\n    ]\n  ]\n}\n```\n\n### Benchmarks\n\nSince `hyposcript` is basically just concatenating strings, benchmark\ncomparisons with `hyperscript` or `react` are not really fair. And though\n`vhtml` and `hyposcript` are essentially the same, `hyposcript` does not escape\nHTML strings for you (be safe out there). Even so, there's a simple benchmark\nhere for general reference. These were run on an 2.4 GHz 8-Core Intel Core i9\nMacBook Pro.\n\n```\nhyperscript      x 27,932 ops/sec ±2.08% (89 runs sampled)\nreact            x 43,261 ops/sec ±0.63% (94 runs sampled)\nvhtml            x 168,688 ops/sec ±0.67% (91 runs sampled)\nhyposcript       x 444,603 ops/sec ±1.07% (89 runs sampled)\n```\n\n### License\n\nMIT License © [Sure Thing](https://github.com/sure-thing)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffront-of-house%2Fhyposcript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffront-of-house%2Fhyposcript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffront-of-house%2Fhyposcript/lists"}