{"id":22311105,"url":"https://github.com/kr1sp1n/deno-preact-ssr-example","last_synced_at":"2026-05-09T06:35:21.638Z","repository":{"id":66323742,"uuid":"272558596","full_name":"kr1sp1n/deno-preact-ssr-example","owner":"kr1sp1n","description":"server-side rendering with deno","archived":false,"fork":false,"pushed_at":"2020-06-22T07:19:46.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-22T16:54:44.553Z","etag":null,"topics":["deno","example","preact","ssr","static-site-generator"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/kr1sp1n.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-15T22:41:50.000Z","updated_at":"2022-07-06T23:59:49.000Z","dependencies_parsed_at":"2023-03-13T20:29:54.741Z","dependency_job_id":null,"html_url":"https://github.com/kr1sp1n/deno-preact-ssr-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kr1sp1n/deno-preact-ssr-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr1sp1n%2Fdeno-preact-ssr-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr1sp1n%2Fdeno-preact-ssr-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr1sp1n%2Fdeno-preact-ssr-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr1sp1n%2Fdeno-preact-ssr-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kr1sp1n","download_url":"https://codeload.github.com/kr1sp1n/deno-preact-ssr-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kr1sp1n%2Fdeno-preact-ssr-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32809849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["deno","example","preact","ssr","static-site-generator"],"created_at":"2024-12-03T21:17:41.600Z","updated_at":"2026-05-09T06:35:21.614Z","avatar_url":"https://github.com/kr1sp1n.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deno-preact-ssr-example\n\nUse deno as a static site generator by rendering preact app to a string.\nThe data is delivered by the server as ES Module and fetched in `render.js` in order to pass it to the preact app as props.\nFurthermore `htm` is used as alternative to JSX and `jss` is used as CSS-in-JS framework.\n\n1. Start server on port 8000:\n\n    ```bash\n    deno run --allow-net --allow-read --unstable src/server.js\n    ```\n\n2. Render html pages to `dist` dir:\n\n    ```bash\n    deno run --unstable --allow-read --allow-write src/render.js\n    ```\n\n3. Open the `dist/index.html` with any browser.\n\n4. Change `data.json` and render again by reloading only `http://localhost:8000/data.js`:\n\n    ```bash\n    deno run --unstable --allow-read --allow-write --reload=http://localhost:8000/data.js src/render.js\n    ```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkr1sp1n%2Fdeno-preact-ssr-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkr1sp1n%2Fdeno-preact-ssr-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkr1sp1n%2Fdeno-preact-ssr-example/lists"}