{"id":15416550,"url":"https://github.com/jahilldev/hypnode-server","last_synced_at":"2026-01-07T21:05:25.189Z","repository":{"id":40916535,"uuid":"226140093","full_name":"jahilldev/hypnode-server","owner":"jahilldev","description":"Provides a simple utility to run server side to build HTML strings","archived":false,"fork":false,"pushed_at":"2023-01-05T02:23:33.000Z","size":1092,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-09T08:23:49.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jahilldev.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":"2019-12-05T16:07:26.000Z","updated_at":"2020-08-28T15:15:16.000Z","dependencies_parsed_at":"2023-02-03T06:00:31.337Z","dependency_job_id":null,"html_url":"https://github.com/jahilldev/hypnode-server","commit_stats":null,"previous_names":["jhdevuk/hypnode-server"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jahilldev/hypnode-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahilldev%2Fhypnode-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahilldev%2Fhypnode-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahilldev%2Fhypnode-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahilldev%2Fhypnode-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jahilldev","download_url":"https://codeload.github.com/jahilldev/hypnode-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jahilldev%2Fhypnode-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28237788,"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":"2026-01-07T02:00:05.975Z","response_time":58,"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":[],"created_at":"2024-10-01T17:12:22.264Z","updated_at":"2026-01-07T21:05:25.162Z","avatar_url":"https://github.com/jahilldev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A super fast utility function to build HTML strings for server side rendering from [`hypnode`](https://github.com/jhdevuk/hypnode) virtual `DOM` references.\n\n# Getting Started\n\nTo install `hypnode`, you can use one of the following in your project:\n\n`yarn add hypnode-server` or `npm install hypnode-server`\n\n# Usage\n\nThe `render` function can be imported in one of the following ways:\n\n```javascript\nimport { render } from 'hypnode-server';\n```\n\n```javascript\nconst { render } = require('hypnode-server');\n```\n\nTo generate a virtual representation of your `DOM` structure, call your `hypnode` functions on the server. This will return an `IVNode` instance that you can pass to the `render` function. For example:\n\n```javascript\nimport { h } from 'hypnode';\nimport { render } from 'hypnode-server';\n\n/*[...]*/\n\nconst output = h('div', { className: 'wrapper' }, [\n   h('p', { title: 'First paragraph' }, 'Lorem ipsum'),\n]);\n\n/*[...]*/\n\nconst result = render(output);\n```\n\nor, with `JSX`:\n\n```javascript\nimport { h } from 'hypnode';\nimport { render } from 'hypnode-server';\n...\nconst output = (\n   \u003cdiv class=\"wrapper\"\u003e\n      \u003cp title=\"First paragraph\"\u003eLorem ipsum\u003c/p\u003e\n   \u003c/div\u003e\n);\n\n/*[...]*/\n\nconst result = render(output);\n```\n\nYou will now have an `HTML` string that can be returned in a response from your server.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahilldev%2Fhypnode-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjahilldev%2Fhypnode-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjahilldev%2Fhypnode-server/lists"}