FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse
stevekrousechatGPTPlugin
Public
Like
chatGPTPlugin
Home
Code
2
README.md
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

ChatGPT Plugin for Val Town

Run code on Val Town from ChatGPT.

Usage

I haven't been able to get it to do very useful things yet. It certainly can evaluate simple JS code:

It would be awesome if it knew how to use other APIs and make fetch calls to them, but it has been failing at that.

Limitations

This plugin currently only has unauthenticated access to POST /v1/eval, which basically means that all it can do is evaluate JavaScript or TypeScript.

In theory it could refer to any existing vals in Val Town, but it wouldn't know about those unless you told it.

Future directions

Once we have more robust APIs to search for existing vals, this plugin could be WAY more valuable! In theory GPT4 could first search for vals to do a certain task and then if it finds one it could then write code based on that val. In practice however, that might require too many steps for poor GPT. We might need to use some sort of agent or langchain thing if we wanted that sort of behavior.

Adding authentication could also enable it to make requests using your secrets and private vals and create new vals for you. However I am dubious that this would actually be practically useful.

Installation

  1. Select GPT-4 (requires ChatGPT Plus)
  2. Click No plugins enabled

  1. Click "Install an unverified plugin" or "Develop your own plugin" (I'm not sure the difference)

  1. Paste in this val's express endpoint

https://stevekrouse-chatGPTPlugin.express.val.run
  1. Click through the prompts until it's installed

Migrated from folder: Archive/gptPlugin/chatGPTPlugin

Code
README.mdmain.tsx
Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.