{"id":17730998,"url":"https://github.com/ameshkov/llm-ads-demo","last_synced_at":"2025-06-29T12:32:55.912Z","repository":{"id":259328219,"uuid":"869048241","full_name":"ameshkov/llm-ads-demo","owner":"ameshkov","description":"Demo project that shows how LLM ads are implemented","archived":false,"fork":false,"pushed_at":"2024-11-13T14:03:52.000Z","size":390,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T08:49:36.691Z","etag":null,"topics":["adguard","ads","chatgpt","llm"],"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/ameshkov.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":"2024-10-07T16:20:56.000Z","updated_at":"2025-03-03T06:44:47.000Z","dependencies_parsed_at":"2024-10-24T12:51:01.159Z","dependency_job_id":"d341b21b-e104-4384-9fc6-ec0c878133c4","html_url":"https://github.com/ameshkov/llm-ads-demo","commit_stats":null,"previous_names":["ameshkov/llm-ads-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ameshkov/llm-ads-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Fllm-ads-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Fllm-ads-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Fllm-ads-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Fllm-ads-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ameshkov","download_url":"https://codeload.github.com/ameshkov/llm-ads-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ameshkov%2Fllm-ads-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262594241,"owners_count":23334169,"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":["adguard","ads","chatgpt","llm"],"created_at":"2024-10-25T23:00:40.201Z","updated_at":"2025-06-29T12:32:55.804Z","avatar_url":"https://github.com/ameshkov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM ads demo\n\nThis is a demo project that demonstrates how LLM ads can be implemented and\nalso how they can be blocked.\n\nYou can check out the demo here [llm-afds-demo.pages.dev](https://llm-afds-demo.pages.dev/).\n\n## How to run locally\n\n```bash\nnpm install\nnpm run dev\n```\n\nFor local development it is recommended to keep `ENV` to `local` in\n`vite.config.js` to avoid expensive calls to OpenAI API.\n\nIf you need to test the OpenAI API, you can set `ENV` to `prod` and\nprovide your OpenAI token in `.env` file.\n\n```properties\nAPI_TOKEN=sk-proj-...\n```\n\n## How to deploy\n\nThe demo project is supposed to be deployed on Cloudflare Pages. Check out\nthe Github Actions workflow in `.github/workflows/deploy.yml` for more details.\n\nIf you want to deploy the project on your own, you'll need to do the following:\n\n* Add a secret to the Cloudflare Pages project with your OpenAI token: `API_TOKEN`.\n* Add Workers AI binding to `AI` in the project settings.\n* Set up **strict** budget and rate limiting rules in OpenAI since the page\n  functions are not protected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameshkov%2Fllm-ads-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fameshkov%2Fllm-ads-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fameshkov%2Fllm-ads-demo/lists"}