{"id":13725010,"url":"https://github.com/ndesmic/react-ssg","last_synced_at":"2025-05-07T19:32:29.723Z","repository":{"id":37368509,"uuid":"313400288","full_name":"ndesmic/react-ssg","owner":"ndesmic","description":"Simple 20 line react SSG","archived":false,"fork":false,"pushed_at":"2021-08-10T07:13:11.000Z","size":22,"stargazers_count":72,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-04T01:26:49.155Z","etag":null,"topics":[],"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/ndesmic.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-11-16T19:03:45.000Z","updated_at":"2024-05-10T21:50:10.000Z","dependencies_parsed_at":"2022-08-19T01:51:43.745Z","dependency_job_id":null,"html_url":"https://github.com/ndesmic/react-ssg","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndesmic%2Freact-ssg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndesmic%2Freact-ssg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndesmic%2Freact-ssg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndesmic%2Freact-ssg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndesmic","download_url":"https://codeload.github.com/ndesmic/react-ssg/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224645171,"owners_count":17346090,"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":[],"created_at":"2024-08-03T01:02:09.768Z","updated_at":"2024-11-14T15:30:37.729Z","avatar_url":"https://github.com/ndesmic.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"React-SSG\n=========\n\nNextJS and Gatsby can be overkill, this is simple 20-line example of doing react static-site generation using [htm](https://github.com/developit/htm) instead of transpilation.\n\n## How to use:\n\nIncluded are two flavors, react and preact.  While both are included, if you use this as a base you'll probably only want to use one (and I'd recommend Preact because it's much smaller).\n\n```\nnode renderers/htm-react-renderer.js\n```\nor\n```\nnode renderers/htm-preact-renderer.js\n```\n\n| Option | Description | Default |\n|--------|-------------|---------|\n| `-o`   | output directory name | \"./output/\" |\n| `-t`   | template directory name | \"./templates/\" |\n\nFiles are exported using the same name to the output folder.  Files with preceeding `_` are partials and will not be exported.  You can use these for layouts and such.  Path for folders must end with `/`.\n\nThis is designed to be an example you build on, it should be easy to hook up other CLI tools to render other assets.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndesmic%2Freact-ssg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndesmic%2Freact-ssg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndesmic%2Freact-ssg/lists"}