Trending Vals

151
yawnxyz avatar
yawnxyz
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
152
technovator avatar
technovator
cerebras_coder
HTTP
Forked from aksh202004/cerebras_coder
0
153
aksh202004 avatar
aksh202004
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
154
blake41 avatar
blake41
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
155
juganof avatar
juganof
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
156
tmcw avatar
tmcw
chatgptchess
HTTP
ChatGPT Chess Inspired by all this hubbub about chess weirdness , this val lets you play chess against ChatGPT 4 . Expect some "too many requests" hiccups along the way. ChatGPT gets pretty bad at making valid moves after the first 10 or so exchanges. This lets it retry up to 5 times to make a valid move, but if it can't, it can't.
0
157
maxm avatar
maxm
valTownChatGPT
HTTP
ChatGPT Implemented in Val Town Demonstrated how to use assistants and threads with the OpenAI SDK and how to stream the response with Server-Sent Events.
3
158
palamut62 avatar
palamut62
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
159
pomdtr avatar
pomdtr
vscode
HTTP
Manage your blobs using VS Code ! Just fork this val to install it, and use an api token to authenticate.
2
160
macronfalcone avatar
macronfalcone
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
161
seanwevans avatar
seanwevans
cerebras_coder
HTTP
Forked from stevekrouse/cerebras_coder
0
162
pomdtr avatar
pomdtr
sql
Script
SQL Template Tag Port of blakeembrey/sql-template-tag for usage in val.town. Usage import { sqlite } from "https://esm.town/v/std/sqlite" import { sql, zip } from "https://esm.town/v/pomdtr/sql" const query = sql`SELECT * FROM books WHERE author = ${author}`; console.log(query.sql) // => "SELECT * FROM books WHERE author = ?" console.log(query.args) // => [author] const res = await sqlite.execute(query) console.table(zip(res)) For advanced usage (ex: nesting queries), refer to the project readme .
6
163
stevekrouse avatar
stevekrouse
modifyImage
Script
Code from https://deno.com/blog/build-image-resizing-api Useful for compressing an image before sending to chatgpt4v, for example
0
164
wilhelm avatar
wilhelm
did
HTTP
BlueSky (atproto) Distributed ID handler Want your BlueSky handle to be [username]-did.web.val.run? Fork this val, and go through the steps in your account settings: https://bsky.app/settings/account
2
165
stevekrouse avatar
stevekrouse
FetchBasic
HTTP
Forked from hunty/FetchBasic
0
166
sarahxc avatar
sarahxc
slackScout
Cron
Slack scout sends a slack notification every time your keywords are mentioned on Twitter, Hacker News, or Reddit. Get notified whenever you, your company, or topics of interest are mentioned online. Built with Browserbase . Inspired by f5bot.com . Full code tutorial . Getting Started To run Slack Scout, you’ll need a Browserbase API key Slack Webhook URL: setup here Twitter Developer API key Browserbase Browserbase is a developer platform to run, manage, and monitor headless browsers at scale. We’ll use Browserbase to navigate to, and scrape our different news sources. We’ll also use Browserbase’s Proxies to ensure we simulate authentic user interactions across multiple browser sessions . Get started with Browserbase for free here . Twitter We’ve decided to use the Twitter API to include Twitter post results. It costs $100 / month to have a Basic Twitter Developer account. If you decide to use Browserbase, we can lend our token. Comment below for access. Once you have the SLACK_WEBHOOK_URL , BROWSERBASE_API_KEY , and TWITTER_BEARER_TOKEN , input all of these as Val Town Environment Variables . Project created by Sarah Chieng and Alex Phan 💌
14
167
janpaul123 avatar
janpaul123
reacttldraw
HTTP
Forked from tfayyaz/react_tldraw
1
168
wilhelm avatar
wilhelm
bsky
HTTP
Showing my BlueSky posts using their public API
2
169
rodrigotello avatar
rodrigotello
hnFollowApp
Script
Forked from stevekrouse/hnFollowApp
3
170
postpostscript avatar
postpostscript
html
Script
html: create sanitized HTML using tagged templates Examples import { html } from "https://esm.town/v/postpostscript/html" const unsafeInput = "<script>alert(1)</script>" console.log(html`Value: ${unsafeInput}`) // Value: &lt;script&gt;alert(1)&lt;/script&gt; These can be combined -- HTML marked as safe (instance is RawHTML ) will be directly inserted: const scripts = html`<script>alert(1)</script>` console.log(html`<head> ${scripts} </head>`.toString()) // <head> // <script>alert(1)</script> // </head> To easily create HTTP Response outputs like @stevekrouse/html, use the htmlResponse utility: import { html, htmlResponse } from "https://esm.town/v/postpostscript/html"; export default function(req: Request) { return htmlResponse` Request URL: ${decodeURIComponent(req.url)} `; } Tests: @postpostscript/htmlTest
1
171
stevekrouse avatar
stevekrouse
pollRSSFeeds
Cron
Poll RSS feeds This val periodically polls specified RSS feeds and send the author an email with new items. It checks each feed defined in rssFeeds for new content since the last run and sends an email with the details of the new items. Usage Fork @stevekrouse/rssFeeds and update it with your desired RSS feeds; Fork this val and replace the https://esm.town/v/stevekrouse/rssFeeds import with your newly forked val; Enjoy RSS updates on your email!
5
172
yawnxyz avatar
yawnxyz
translator
HTTP
Forked from yawnxyz/voice
7
173
daniellevine avatar
daniellevine
twitterAlert
Cron
Forked from stevekrouse/twitterAlert
0
174
maxm avatar
maxm
simpleWikipediaInstantSearch
HTTP
Simple Wikipedia Instant Search A quick demo of getting fuzzy matching and instant search working on Val Town
2
175
loading avatar
loading
file
HTTP
FileThing P2P file transfer using WebRTC
1
176
jamiedubs avatar
jamiedubs
twitterAlert
Cron
Forked from stevekrouse/twitterAlert
2
177
nws avatar
nws
feeds
HTTP
Forked from jordan/feeds
1
178
jonasmerlin avatar
jonasmerlin
bluesky_bot_template
Cron
This is a very simple template for the kind of Bluesky bot I build. It's very much all over the place. e.g. it sets up the "Agent" to post (because that part is documented well), but doesn't use it to search for posts. You can do that if you want (if you do, look here ), but I like to simply rawdogg the API, so that is what I'm doing here. The custom Post type is incomplete and only contains the stuff I found relevant. Error handling is payed only lip service to (at best) as well. ...But it works for me! How to use If you want to use this, you will have to set 2 environment variables for your val: BLUESKY_USERNAME BLUESKY_PASSWORD From what I can tell from my testing: BLUESKY_USERNAME can be both the bot account's handle as well as the email you use to log into it with. BLUESKY_PASSWORD can be both the account's main password as well as an app password. The rest is commented in the code. If you have any questions, feel free to message me on Bluesky: Jonas-Merlin Schumacher (@jonasmerlin.bsky.social) — Bluesky
1
179
stevekrouse avatar
stevekrouse
openai_structured_output_demo
Script
OpenAI Structured Output Demo Ensure responses follow JSON Schema for structured outputs The following demo uses zod to describe and parse the response to JSON. Learn more in the OpenAI Structured outputs docs .
2
180
hootz avatar
hootz
telegramDalleBot
Script
Telegram DALLE Bot A personal telegram bot you can message to create images with OpenAI's DALLE ✨ Set up yours fork this val speak to telegram’s https://t.me/botfather to create a bot and obtain a bot token set the bot token as a val town secret called telegramDalleBotToken add a random string as a val town secret called telegramDalleBotWebhookSecret set up your webhook with telegram like this: // paste and run this in your workspace on here @vtdocs.telegramSetWebhook(@me.secrets.telegramDalleBotToken, { url: /* your fork's express endpoint (click the three dots on a val) */, allowed_updates: ["message"], secret_token: @me.secrets.telegramDalleBotWebhookSecret, }); message your bot some prompts! (if you get stuck, you can refer to the telegram echo bot guide from docs.val.town)
6