{"id":19206014,"url":"https://github.com/whiletruu/elm-server-playground","last_synced_at":"2026-06-24T09:32:08.502Z","repository":{"id":170841877,"uuid":"646948243","full_name":"WhileTruu/elm-server-playground","owner":"WhileTruu","description":"Playground for server generating, running tasks, returning data to FE","archived":false,"fork":false,"pushed_at":"2023-05-30T04:05:34.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T06:29:42.973Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","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/WhileTruu.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":"2023-05-29T17:59:21.000Z","updated_at":"2023-05-29T17:59:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"352963c6-93a5-44d2-8f71-3d66fc76a1c7","html_url":"https://github.com/WhileTruu/elm-server-playground","commit_stats":null,"previous_names":["whiletruu/elm-server-playground"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WhileTruu/elm-server-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhileTruu%2Felm-server-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhileTruu%2Felm-server-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhileTruu%2Felm-server-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhileTruu%2Felm-server-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WhileTruu","download_url":"https://codeload.github.com/WhileTruu/elm-server-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WhileTruu%2Felm-server-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34724746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-24T02:00:07.484Z","response_time":106,"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":[],"created_at":"2024-11-09T13:14:28.902Z","updated_at":"2026-06-24T09:32:08.497Z","avatar_url":"https://github.com/WhileTruu.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elm server pages (or something)\n\n\nThe idea is for page configs to include tasks for resolving flags, extract the\ninstructions for how to do those tasks, then do those tasks on the server and \ninclude the data as a variable in the served html file.\n\n1. Page config includes a ResolverTask - the task to be resolved\n2. Elm codegen creates an elm worker which outputs a stringified description of \nthe task to be resolved for each page via a port\n3. The build bash script wraps the worker in a js file, runs it and writes the \noutput to a file.\n\nThe server serving the html files can then do the task(s) and provide the page \nwith the data via flags. Alternatively it could be turned into a CGI type thing.\n\n\n\n# Build\n\n\n```bash\nbash ./build.sh dev\n```\n\n```bash\nbash ./build.sh prod\n```\n\n\n# Run\n\n\n```bash\nnode server.mjs\n```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiletruu%2Felm-server-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwhiletruu%2Felm-server-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwhiletruu%2Felm-server-playground/lists"}