{"id":27163950,"url":"https://github.com/murderteeth/ygptplugin","last_synced_at":"2025-04-09T01:53:21.621Z","repository":{"id":177513045,"uuid":"658490854","full_name":"murderteeth/ygptplugin","owner":"murderteeth","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-11T21:24:56.000Z","size":2097,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-14T02:00:02.866Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ygptplugin.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/murderteeth.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}},"created_at":"2023-06-25T22:29:15.000Z","updated_at":"2024-04-14T02:00:02.867Z","dependencies_parsed_at":null,"dependency_job_id":"c7fa0fe2-5635-4f9b-9893-32b6ae5da4d6","html_url":"https://github.com/murderteeth/ygptplugin","commit_stats":null,"previous_names":["murderteeth/ygptplugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murderteeth%2Fygptplugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murderteeth%2Fygptplugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murderteeth%2Fygptplugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murderteeth%2Fygptplugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murderteeth","download_url":"https://codeload.github.com/murderteeth/ygptplugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247959806,"owners_count":21024843,"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":[],"created_at":"2025-04-09T01:53:21.064Z","updated_at":"2025-04-09T01:53:21.609Z","avatar_url":"https://github.com/murderteeth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ygptplugin\ntalk to the Yearn protocol in real-time using ChatGPT\n\n```\nsup! if you have developer access to OpenAI, you can now\ninstall yGptPlugin as an Unverified Plugin from the\nplugin store. when prompted, use this domain:\n\nygptplugin.vercel.app\n\nwip. enjoy 😸\n```\n\n## dev\nfor now.. to run this project locally you either need to be a memeber of murderteeth's vercel team or you can create your own vercel project and link to that. If you create your own vercel project, use the vercel dashboard to add a postgres database to your project. The following works in either case:\n```bash\nyarn add vercel -g\nvercel link\nyarn\nyarn pullenv\nyarn migrate\nyarn dev\n```\n\n## db changes and migrations\n```bash\n# make changes to prisma/schema.prisma\nyarn migrate\n```\n\n## local plugin testing\n- start your local server, `yarn dev`\n- go to ChatGPT's plugin store, click `Develop your own plugin`, enter `localhost:3000`.\n\n\n## manual endpoint testing \n```bash\ncurl -v \\\n  -H \"Content-type: application/json\" \\\n  'http://localhost:3000/api/ai/sql?languageQuery=vaults%20with%20high%20apy'\n```\n\n## sync\n```bash\ncurl -v \\\n  -H \"key: ********\" \\\n  -H \"Content-type: application/json\" \\\n  -d '{ }' \\\n  'http://localhost:3000/api/sync'\n```\n\n## cron\nuses qstash to keep data synced\nhttps://upstash.com\n\nschedule a QStash sync job\n```\ncurl -v \\\n  -H \"Authorization: Bearer ********\" \\\n  -H \"Upstash-Forward-key: ********\" \\\n  -H \"Upstash-Cron: */30 * * * *\" \\\n  -H \"Content-type: application/json\" \\\n  -d '{}' \\\n  'https://qstash.upstash.io/v1/publish/https://ygptplugin.vercel.app/api/sync'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurderteeth%2Fygptplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurderteeth%2Fygptplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurderteeth%2Fygptplugin/lists"}