{"id":19935025,"url":"https://github.com/optimizely/amp-js-sdk-poc","last_synced_at":"2026-03-04T16:02:15.790Z","repository":{"id":253962346,"uuid":"811907478","full_name":"optimizely/amp-js-sdk-poc","owner":"optimizely","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-20T14:14:58.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":25,"default_branch":"main","last_synced_at":"2025-03-08T12:45:59.101Z","etag":null,"topics":["optimizely-library","optimizely-owner-px"],"latest_commit_sha":null,"homepage":"","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/optimizely.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":"2024-06-07T14:40:01.000Z","updated_at":"2024-08-20T14:15:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"84a609ca-6925-4747-b914-c2cb46d79f32","html_url":"https://github.com/optimizely/amp-js-sdk-poc","commit_stats":null,"previous_names":["optimizely/amp-js-sdk-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/optimizely/amp-js-sdk-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Famp-js-sdk-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Famp-js-sdk-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Famp-js-sdk-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Famp-js-sdk-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/optimizely","download_url":"https://codeload.github.com/optimizely/amp-js-sdk-poc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/optimizely%2Famp-js-sdk-poc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30085818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T15:40:14.053Z","status":"ssl_error","status_checked_at":"2026-03-04T15:40:13.655Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["optimizely-library","optimizely-owner-px"],"created_at":"2024-11-12T23:18:29.913Z","updated_at":"2026-03-04T16:02:15.725Z","avatar_url":"https://github.com/optimizely.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Optimizely SDK - AMP Page\nPOC on how to use Optimizely SDK on a AMP page. Here are couple of things to consider\n- AMP has a JS file size restriction due to performance reason. So have to use the Lite variant of the JavaScript SDK which excludes the datafile manager and event processor packages.  As a result, it is expected that you will provide the datafile manually to the Optimizely SDK either through a local file reference or by using the provided platform-specific `getDatafile()` helper to load in your Optimizely project's datafile. Here are some supported links to get more information- \n\n- [AMP Size Restriction](https://amp.dev/documentation/components/amp-script#restrictions)\n- [Optimizely JS - Get started](https://github.com/optimizely/javascript-sdk?tab=readme-ov-file#get-started)\n\n## Build configuration\nWe have used vite for JS bundling and some preparation purposes. To get the project up and running, do following. \n\nMake changes to `main.ts` or `index.html` if necessary. Then run - \n\n```\n# If not already installed\nnpm install\nnpm run build\n```\n## Run\nAfter running the build command, you should see the newly created `dist` directory. Inside that you will find the **AMP valid** HTML document with the custom generated \\\u003camp-script\u003e tag . You have to serve this dist dirctory with a server to see it live. Now to preview it locally, you can run -\n\n```\nnpm run preview\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimizely%2Famp-js-sdk-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptimizely%2Famp-js-sdk-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptimizely%2Famp-js-sdk-poc/lists"}