{"id":16236798,"url":"https://github.com/jlengstorf/no-js-personalization","last_synced_at":"2025-06-26T05:05:12.907Z","repository":{"id":41127512,"uuid":"497827501","full_name":"jlengstorf/no-js-personalization","owner":"jlengstorf","description":"Example of using Netlify Edge Functions to create an adaptive UI with no client-side JavaScript.","archived":false,"fork":false,"pushed_at":"2022-08-11T14:30:19.000Z","size":48,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-24T19:41:52.329Z","etag":null,"topics":["edge-computing","edge-functions","personalization"],"latest_commit_sha":null,"homepage":"https://no-js-personalization.netlify.app/","language":"HTML","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/jlengstorf.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":"2022-05-30T07:04:59.000Z","updated_at":"2023-04-24T19:18:26.000Z","dependencies_parsed_at":"2022-09-22T00:03:25.891Z","dependency_job_id":null,"html_url":"https://github.com/jlengstorf/no-js-personalization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jlengstorf/no-js-personalization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengstorf%2Fno-js-personalization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengstorf%2Fno-js-personalization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengstorf%2Fno-js-personalization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengstorf%2Fno-js-personalization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlengstorf","download_url":"https://codeload.github.com/jlengstorf/no-js-personalization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengstorf%2Fno-js-personalization/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262003969,"owners_count":23243352,"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":["edge-computing","edge-functions","personalization"],"created_at":"2024-10-10T13:33:05.902Z","updated_at":"2025-06-26T05:05:12.858Z","avatar_url":"https://github.com/jlengstorf.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Personalized UIs with No Client-Side JavaScript\n\nThis is an experiment with [Netlify Edge Functions](https://www.netlify.com/blog/announcing-serverless-compute-with-edge-functions/?utm_source=readme\u0026utm_medium=github\u0026utm_campaign=devex-jl) to show how we can create adaptive UIs without client-side JavaScript.\n\nThis example uses Edge Functions to set and read a cookie. \n\n- Every time the user navigates to a new page on the site, the cookie is updated with a score for the type of content that was visited\n- The score reflects an assumed interest in that category of content (more clicks === more interest is the assumption)\n- When the home page is loaded, products are sorted so the most interesting show up first based on the user's current score\n\nTry it out here: https://no-js-personalization.netlify.app/\n\n\n## Local development\n\n```sh\n# clone the repo\ngit clone git@github.com:jlengstorf/no-js-personalization.git\n\n# move into the folder\ncd no-js-personalization/\n\n# install dependencies\nnpm i\n\n# install the Netlify CLI\nnpm i -g netlify-cli\n\n# start the local dev server\nntl dev\n```\n\n## Stack\n\nThis demo uses:\n- [Netlify Edge Functions](https://no-js-personalization.netlify.app/)\n- [Netlify serverless functions](https://docs.netlify.com/functions/overview/) with [On-Demand Builders](https://docs.netlify.com/configure-builds/on-demand-builders/#app)\n- [Hasura Cloud](https://cloud.hasura.io/)\n- [Unsplash](https://unsplash.com/) for images\n- Plain HTML + CSS\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlengstorf%2Fno-js-personalization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlengstorf%2Fno-js-personalization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlengstorf%2Fno-js-personalization/lists"}