{"id":20314560,"url":"https://github.com/dashpilot/alpinejs-ssr","last_synced_at":"2025-07-19T02:34:16.264Z","repository":{"id":191063856,"uuid":"683856990","full_name":"dashpilot/alpinejs-ssr","owner":"dashpilot","description":"Dead simple server-side-rendering for Alpine.js","archived":false,"fork":false,"pushed_at":"2024-12-21T01:01:28.000Z","size":12,"stargazers_count":33,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-06T02:06:02.964Z","etag":null,"topics":["alpine-js","alpinejs","prerendering","server-side-rendering","ssg","ssr"],"latest_commit_sha":null,"homepage":"","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/dashpilot.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,"zenodo":null}},"created_at":"2023-08-27T23:06:21.000Z","updated_at":"2025-06-25T11:50:14.000Z","dependencies_parsed_at":"2025-04-11T17:20:30.755Z","dependency_job_id":"89d6bd0e-aa56-4b0b-8820-513020c06c2c","html_url":"https://github.com/dashpilot/alpinejs-ssr","commit_stats":null,"previous_names":["dashpilot/alpinejs-ssr"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dashpilot/alpinejs-ssr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Falpinejs-ssr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Falpinejs-ssr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Falpinejs-ssr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Falpinejs-ssr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashpilot","download_url":"https://codeload.github.com/dashpilot/alpinejs-ssr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashpilot%2Falpinejs-ssr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265877084,"owners_count":23842956,"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":["alpine-js","alpinejs","prerendering","server-side-rendering","ssg","ssr"],"created_at":"2024-11-14T18:15:51.866Z","updated_at":"2025-07-19T02:34:16.228Z","avatar_url":"https://github.com/dashpilot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpine.js SSR\n## Dead simple server-side-rendering for Alpine.js\n\nAlpine.js SSR allows you to server-side-render (SSR) your Alpine components in lightweight and dead-simple way. No need to set-up a Puppeteer-server, just import the module and off you go. After server-side-rendering your components stay fully hydratable and interactive!\n\n## Why?\nI love the simplicity and power of Alpine.js, but was missing the option of server-side rendering for SEO and robustness. There were no SSR options available for Alpine.js, so I built my own.\n\n## How to?\n\nFirst install the package from npm:\n```\nnpm install alpinejs-ssr\n```\nImport the module and call the `compile` function:\n```js\nimport {compile} from alpinejs-ssr\n\nconst html = `your Alpine.js html`\nconst data = {\"your\":\"data\"}\n\ncompile(html, data);\n```\nCheck out example.js for a full demo\n\n## Supported Alpine.js attributes\n\nSupports most attributes that make sense in a server context:\n`x-text`, `x-html`,`x-for`,`:src`,`:id`\n\nLet me know if you're missing any. `x-if` has not been implemented for SSR, because it would break interactivity on the client-side if the server would remove those blocks.\n\n## Press the :star: button\nDon't forget to press the :star: button to let me know I should continue improving this project.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Falpinejs-ssr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashpilot%2Falpinejs-ssr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashpilot%2Falpinejs-ssr/lists"}