{"id":19785799,"url":"https://github.com/dna-engine/node-jsdom-starter","last_synced_at":"2025-10-26T02:44:05.058Z","repository":{"id":68720682,"uuid":"83650167","full_name":"dna-engine/node-jsdom-starter","owner":"dna-engine","description":"Sample dna-engine application running on node with jsdom","archived":false,"fork":false,"pushed_at":"2024-08-14T16:17:38.000Z","size":894,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T03:22:29.711Z","etag":null,"topics":["example","javascript","jsdom","nodejs","npm","starter"],"latest_commit_sha":null,"homepage":"https://dna-engine.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-engine.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}},"created_at":"2017-03-02T07:50:55.000Z","updated_at":"2024-08-14T16:17:42.000Z","dependencies_parsed_at":"2024-08-14T17:48:04.638Z","dependency_job_id":"523c21ed-f7a7-4507-a309-742e2cae128f","html_url":"https://github.com/dna-engine/node-jsdom-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-engine%2Fnode-jsdom-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-engine%2Fnode-jsdom-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-engine%2Fnode-jsdom-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dna-engine%2Fnode-jsdom-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dna-engine","download_url":"https://codeload.github.com/dna-engine/node-jsdom-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241119411,"owners_count":19912906,"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":["example","javascript","jsdom","nodejs","npm","starter"],"created_at":"2024-11-12T06:15:46.391Z","updated_at":"2025-10-26T02:44:04.981Z","avatar_url":"https://github.com/dna-engine.png","language":"JavaScript","readme":"# node-jsdom-starter\n\u003cimg src=https://dna-engine.org/graphics/dna-logo.png align=right width=160 alt=logo\u003e\n\n_Sample dna-engine application running on node with jsdom_\n\n[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://dna-engine.org/license)\n[![Build](https://github.com/dna-engine/node-jsdom-starter/actions/workflows/run-spec-on-push.yaml/badge.svg)](https://github.com/dna-engine/node-jsdom-starter/actions/workflows/run-spec-on-push.yaml)\n\n[dna-engine.org](https://dna-engine.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-engine';\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-engine](screenshots/terminal.png)\n\n---\n[MIT License](LICENSE.txt)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdna-engine%2Fnode-jsdom-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdna-engine%2Fnode-jsdom-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdna-engine%2Fnode-jsdom-starter/lists"}