{"id":27857354,"url":"https://github.com/jockdarock/gptscript-fun","last_synced_at":"2026-02-23T13:16:31.113Z","repository":{"id":233884700,"uuid":"787639410","full_name":"JockDaRock/gptscript-fun","owner":"JockDaRock","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-26T20:00:13.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-25T16:46:15.311Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/JockDaRock.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-04-16T22:45:42.000Z","updated_at":"2024-04-26T20:00:17.000Z","dependencies_parsed_at":"2025-05-04T13:18:46.368Z","dependency_job_id":"8237ee4c-b570-4abc-9442-83142c91e1c0","html_url":"https://github.com/JockDaRock/gptscript-fun","commit_stats":null,"previous_names":["jockdarock/gptscript-fun"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/JockDaRock/gptscript-fun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JockDaRock%2Fgptscript-fun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JockDaRock%2Fgptscript-fun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JockDaRock%2Fgptscript-fun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JockDaRock%2Fgptscript-fun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JockDaRock","download_url":"https://codeload.github.com/JockDaRock/gptscript-fun/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JockDaRock%2Fgptscript-fun/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29743765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"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":[],"created_at":"2025-05-04T13:18:27.829Z","updated_at":"2026-02-23T13:16:31.084Z","avatar_url":"https://github.com/JockDaRock.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing GPTScript out and having fun with some usecases.\n\n\u003e This is my repository for having some fun with GPTScript https://github.com/gptscript-ai/gptscript. I have been using this and I like how easy it is to use. Look for more updated examples as time goes on.\n\n\u003e My first gptscript is a modification of one of the examples from the gptscript repo. I modified it and the instructions to make it more user friendly for your dev environment. I also modified it to reduce clutter, utilize the system it is running on better, not install global dependencies, cleanup easier, etc. Basically it is almost full autopilot for getting your environment up and running... assuming you have the Requirements installed.\n\n\u003e Other notes: as mention in the requirements below, you need access to the OpenAI chatgpt AI and gpt4-turbo model, this requires you to pay. I have not tried out other models, so that is a bummer, I am looking to correct this soon. Basically gptscript takes advantage of the agent tools and functions parts of the gpt API from OpenAI.\n\n\u003e pywebapp.gpt is based on this original script I made modifications from... https://github.com/gptscript-ai/gptscript/blob/main/examples/hacker-news-headlines.gpt\n\n## Requirements\n\n1. GPTScript, duh... install instructions found here https://github.com/gptscript-ai/gptscript#quick-start\n2. Install mongosh https://www.mongodb.com/docs/mongodb-shell/install/\n3. Install and have Docker running so gptscript can start a mongo database for you. I use Rancher Desktop for this, but Docker Desktop or if you are on a Linux distribution OS just docker is fine.\n4. A recent version of Python3 would be helpful\n5. OpenAI ChatGPT API using gpt4-turbo model, it is the default model.\n\n## Devices it has been tested on\n* Mac Intel i9 64GB RAM using iterm2 as terminal\n* Windows 11 AMD 32 GB RAM using WSL2 Ubuntu as terminal\n* Mac M1 16 GB RAM using standard mac terminal\n\n## Instructions on use\n\nIf you haven't already done so, git clone this repo and change directories into the folder.\n\n```shell\ngit clone https://github.com/JockDaRock/gptscript-fun \u0026\u0026 cd gptscript-fun\n```\n\nCopy env.template file to .env to store our environment variables.\n\n```shell\ncp env.template .env\n```\n\nEdit the newly created .env file by adding in your API key for OpenAI\n\n```\nOPENAI_API_KEY=\u003csome-api-key\u003e\n```\n\nI would checkout the gptscript to make sure you agree with what is in it, you know because it will be executing commands on your computer... or just let it rip!\n\nNow, run the command below to have your API key and other variables to be sourced as environment variables for gptscript to use.\n\n\n```shell\nenv $(cat .env | xargs) gptscript pywebapp.gpt\n```\n\nThis is a good point to checkout what is created and glance over the code that gptscript created for you. You can use this as a template if you want to create other python applications or just use it as is.\n\nNow change directories to the newly created headline directory and then run the start.sh script to get the python program running.\n\n```shell\ncd headline \u0026\u0026 ./start.sh\n```\n\nVisit http://127.0.0.1:5000 or http://localhost:5000 in your browser.\n\nHit ctrl-c on your keyboard to exit the python app when you are ready.\n\nCongrats you did it!!! Or the AI did it!!! whatever...\n\nYou could further automate the gptscript to do all of the starting everything for you so you don't have to follow the instructions, but that is for you to do ;).\n\n## Cleanup\n\nIn your terminal in the gptscript-fun directory, run the following command cleanup your directory.\n\n```shell\n./gpt_cleanup.sh\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjockdarock%2Fgptscript-fun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjockdarock%2Fgptscript-fun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjockdarock%2Fgptscript-fun/lists"}