{"id":13433207,"url":"https://github.com/ozgrozer/chatgpt-artifacts","last_synced_at":"2025-10-08T06:39:18.997Z","repository":{"id":245748767,"uuid":"819117355","full_name":"ozgrozer/chatgpt-artifacts","owner":"ozgrozer","description":"Bring Claude's Artifacts feature to ChatGPT","archived":false,"fork":false,"pushed_at":"2024-08-01T17:37:38.000Z","size":1649,"stargazers_count":494,"open_issues_count":7,"forks_count":90,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-25T05:09:14.795Z","etag":null,"topics":["artifacts","chatgpt","claude"],"latest_commit_sha":null,"homepage":"https://airenamer.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ozgrozer.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","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-23T20:32:48.000Z","updated_at":"2025-05-16T15:44:45.000Z","dependencies_parsed_at":"2024-07-21T20:18:51.180Z","dependency_job_id":"4beae229-32fb-4a8a-b5b3-a71b13c02ee7","html_url":"https://github.com/ozgrozer/chatgpt-artifacts","commit_stats":null,"previous_names":["ozgrozer/chatgpt-artifacts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ozgrozer/chatgpt-artifacts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozgrozer%2Fchatgpt-artifacts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozgrozer%2Fchatgpt-artifacts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozgrozer%2Fchatgpt-artifacts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozgrozer%2Fchatgpt-artifacts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ozgrozer","download_url":"https://codeload.github.com/ozgrozer/chatgpt-artifacts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ozgrozer%2Fchatgpt-artifacts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278903014,"owners_count":26065785,"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","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"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":["artifacts","chatgpt","claude"],"created_at":"2024-07-31T02:01:22.460Z","updated_at":"2025-10-08T06:39:18.970Z","avatar_url":"https://github.com/ozgrozer.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Others","Learning"],"sub_categories":["Repositories"],"readme":"# chatgpt-artifacts\n\nBring Claude's Artifacts feature to ChatGPT\n\n## Preview\n\nhttps://github.com/ozgrozer/chatgpt-artifacts/assets/651938/abc68e48-2a85-4cb8-a17a-ae795de1ed26\n\n## Usage\n\nClone this repository\n\n```\ngit clone https://github.com/ozgrozer/chatgpt-artifacts.git\n```\n\nInstall dependencies\n\n```\nnpm install\n```\n\nDuplicate `.env.example` as `.env` and add your OPEN AI API key\n\n```\ncp .env.example .env\nvim .env\n```\n\nBuild the app\n\n```\nnpm run build\n```\n\nStart the app\n\n```\nnpm start\n```\n\n## Ollama Support\n\nTo make it work with your local LLMs like Llama3 or Gemma2 you just need to make a simple update in the code.\n\nOpen `/pages/api/chat.js` file\n\n```js\n// change this\nconst openai = new OpenAI({\n  apiKey: process.env.OPENAI_API_KEY\n})\n// to this\nconst openai = new OpenAI({\n  apiKey: 'ollama',\n  baseURL: 'http://127.0.0.1:11434/v1'\n})\n\n// change this\nconst stream = await openai.chat.completions.create({\n  stream: true,\n  model: 'gpt-4o',\n  messages: conversations[conversationId]\n})\n// to this\nconst stream = await openai.chat.completions.create({\n  stream: true,\n  model: 'llama3',\n  messages: conversations[conversationId]\n})\n```\n\n## Groq Support\n\nTo make it work with Groq you just need to get an API key [here](https://console.groq.com/keys) and make a simple update in the code.\n\nOpen `/pages/api/chat.js` file\n\n```js\n// change this\nconst openai = new OpenAI({\n  apiKey: process.env.OPENAI_API_KEY\n})\n// to this\nconst openai = new OpenAI({\n  apiKey: process.env.OPENAI_API_KEY,\n  baseURL: 'https://api.groq.com/openai/v1'\n})\n\n// change this\nconst stream = await openai.chat.completions.create({\n  stream: true,\n  model: 'gpt-4o',\n  messages: conversations[conversationId]\n})\n// to this\nconst stream = await openai.chat.completions.create({\n  stream: true,\n  model: 'llama3-70b-8192',\n  messages: conversations[conversationId]\n})\n```\n\n## Azure OpenAI Support\n\nTo make it work with Azure OpenAI, you need to create a resource in the [Azure Portal](https://portal.azure.com/) and then create a deployment in the [Azure OpenAI Studio](https://oai.azure.com/) and get your API key, API version, API endpoint and make a simple update in the code.\n\nOpen `/pages/api/chat.js` file\n\n```js\n// change this\nconst openai = new OpenAI({\n  apiKey: process.env.OPENAI_API_KEY\n})\n// to this (change the API version if yours is different)\nconst openai = new OpenAI({\n  apiKey: process.env.OPENAI_API_KEY,\n  defaultQuery: { 'api-version': '2023-03-15-preview' },\n  defaultHeaders: { 'api-key': process.env.OPENAI_API_KEY },\n  baseURL: 'https://\u003cRESOURCE_NAME\u003e.openai.azure.com/openai/deployments/\u003cDEPLOYMENT_NAME\u003e'\n})\n\n// change your model here\nconst stream = await openai.chat.completions.create({\n  stream: true,\n  model: 'gpt-4o',\n  messages: conversations[conversationId]\n})\n```\n\n## License\n\n[GPL-3.0](https://github.com/ozgrozer/chatgpt-artifacts/blob/main/license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozgrozer%2Fchatgpt-artifacts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fozgrozer%2Fchatgpt-artifacts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fozgrozer%2Fchatgpt-artifacts/lists"}