{"id":49692823,"url":"https://github.com/dna-dom/node-jsdom-starter","last_synced_at":"2026-05-07T19:05:04.926Z","repository":{"id":68720682,"uuid":"83650167","full_name":"dna-dom/node-jsdom-starter","owner":"dna-dom","description":"Sample dna-dom application running on node with jsdom","archived":false,"fork":false,"pushed_at":"2026-02-25T04:55:08.000Z","size":899,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-25T10:18:17.727Z","etag":null,"topics":["example","javascript","jsdom","nodejs","npm","starter"],"latest_commit_sha":null,"homepage":"https://dna-dom.org/docs/#setup-npm","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/dna-dom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-03-02T07:50:55.000Z","updated_at":"2026-02-25T05:05:13.000Z","dependencies_parsed_at":"2024-08-14T17:48:04.638Z","dependency_job_id":"523c21ed-f7a7-4507-a309-742e2cae128f","html_url":"https://github.com/dna-dom/node-jsdom-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dna-dom/node-jsdom-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-dom%2Fnode-jsdom-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-dom%2Fnode-jsdom-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-dom%2Fnode-jsdom-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-dom%2Fnode-jsdom-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dna-dom","download_url":"https://codeload.github.com/dna-dom/node-jsdom-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-dom%2Fnode-jsdom-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32751787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["example","javascript","jsdom","nodejs","npm","starter"],"created_at":"2026-05-07T19:05:03.669Z","updated_at":"2026-05-07T19:05:04.917Z","avatar_url":"https://github.com/dna-dom.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-jsdom-starter\n\u003cimg src=https://dna-dom.org/graphics/dna-logo.png align=right width=160 alt=logo\u003e\n\n_Sample dna-dom application running on node with jsdom_\n\n[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://dna-dom.org/license)\n[![Build](https://github.com/dna-dom/node-jsdom-starter/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/dna-dom/node-jsdom-starter/actions/workflows/run-spec-on-push.yaml)\n\n[dna-dom.org](https://dna-dom.org), a UI templating library, can be run headless (no browser) on\nNode.js with the DOM provided by jsdom.\n\n### Setup\nEnter the terminal commands:\n```shell\n$ cd node-jsdom-starter\n$ npm install\n$ node app\n```\n\n### Import and Initialize\n```javascript\n// Imports\nimport { JSDOM } from 'jsdom';\nimport { dna } from 'dna-dom';\n\n// Setup\nconst html = `\n   \u003c!doctype html\u003e\n   \u003chtml lang=en\u003e\n      \u003chead\u003e\n         \u003cmeta charset=utf-8\u003e\n         \u003ctitle\u003eTasks\u003c/title\u003e\n      \u003c/head\u003e\n      \u003cbody\u003e\n         \u003cp id=task class=dna-template\u003e~~title~~\u003c/p\u003e\n      \u003c/body\u003e\n   \u003c/html\u003e\n   `;\nconst dom = new JSDOM(html);\ndna.initGlobal(dom.window);\n```\n\n### Output\n![require dna-dom](screenshots/terminal.png)\n\n---\n[MIT License](LICENSE.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdna-dom%2Fnode-jsdom-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdna-dom%2Fnode-jsdom-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdna-dom%2Fnode-jsdom-starter/lists"}