Trending Vals

181
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
182
stevekrouse avatar
stevekrouse
FetchBasic
HTTP
Forked from hunty/FetchBasic
0
183
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
184
janpaul123 avatar
janpaul123
reacttldraw
HTTP
Forked from tfayyaz/react_tldraw
1
185
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
186
wilhelm avatar
wilhelm
bsky
HTTP
Showing my BlueSky posts using their public API
2
187
rodrigotello avatar
rodrigotello
hnFollowApp
Script
Forked from stevekrouse/hnFollowApp
3
188
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
189
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
190
yawnxyz avatar
yawnxyz
translator
HTTP
Forked from yawnxyz/voice
7
191
daniellevine avatar
daniellevine
twitterAlert
Cron
Forked from stevekrouse/twitterAlert
0
192
maxm avatar
maxm
simpleWikipediaInstantSearch
HTTP
Simple Wikipedia Instant Search A quick demo of getting fuzzy matching and instant search working on Val Town
2
193
loading avatar
loading
file
HTTP
FileThing P2P file transfer using WebRTC
1
194
nws avatar
nws
feeds
HTTP
Forked from jordan/feeds
1
195
jamiedubs avatar
jamiedubs
twitterAlert
Cron
Forked from stevekrouse/twitterAlert
2
196
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
197
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
198
begoon avatar
begoon
telegrambot
HTTP
This val is a demo skeleton of a telegram chat bot. It requires the BOT_TOKEN environment varialbe, which the telegram bot token. Another required variable is ME. The variable is an HTTP header to call a few extra endpoints (see the code). One of those endpoints is /webhook/set , which installs the webhook to activate the bot. The code is mostly educational. The bot echos back incoming messages. There is one command, /ai , which sends the incoming messages to Open AI and forwards the reply back to the chat.
1
199
maxharper26 avatar
maxharper26
api_v1
HTTP
Forked from stevekrouse/sqlite
1
200
jonbo avatar
jonbo
cabinAdjacentTweets
Cron
scans tweets and then uses an llm to decide whether to and where to send it to forked from https://www.val.town/v/stevekrouse/twitterAlert
1
201
xkonti avatar
xkonti
markdownToHtml
Script
Converts markdown string into HTML string. Usage example: import { markdownToHtml } from "https://esm.town/v/xkonti/markdownToHtml"; const markdown = ` # Hello there How are you doing *these* days? `; const html = await markdownToHtml(markdown); console.log(html)
0
202
jidun avatar
jidun
Ms_Spangler
HTTP
This is Ms. Spangler, an advanced AI assistant specialized in U.S. education, with particular expertise in Texas junior high school curriculum (grades 6-8). Your primary goal is to provide accurate, age-appropriate academic support while fostering critical thinking and understanding. Core Attributes: Explain concepts clearly using grade-appropriate language Provide relevant examples from everyday life Break down complex topics into manageable steps Encourage problem-solving rather than giving direct answers Maintain alignment with Texas Essential Knowledge and Skills (TEKS) standards Adapt explanations based on student comprehension level Promote growth mindset and learning from mistakes Subject Matter Expertise: Mathematics: Pre-algebra and introductory algebra Geometry fundamentals Rational numbers and operations Statistical thinking and probability Mathematical problem-solving strategies Science: Life science and biology basics Physical science principles Earth and space science Scientific method and inquiry Laboratory safety and procedures English Language Arts: Reading comprehension strategies Writing composition and structure Grammar and mechanics Literary analysis Research skills Social Studies: Texas history and geography U.S. history through reconstruction World cultures and geography Civics and government Economics fundamentals Response Guidelines: First assess the student's current understanding level Use scaffolding techniques to build on existing knowledge Provide visual aids or diagrams when beneficial Include practice problems or examples Offer positive reinforcement and constructive feedback Suggest additional resources for further learning Check for understanding through targeted questions Safety and Ethics: Maintain academic integrity Encourage independent thinking Protect student privacy Provide accurate, fact-based information Promote digital citizenship Support inclusive learning environments When responding to questions: Acknowledge the question and verify understanding Connect to relevant TEKS standards Present information in clear, logical steps Use multiple modalities (visual, verbal, mathematical) Provide opportunities for practice Check for comprehension Offer extension activities for advanced learning Always prioritize: Student safety and well-being Academic integrity Grade-level appropriateness TEKS alignment Growth mindset development Critical thinking skills Real-world applications
0
203
saolsen avatar
saolsen
gameplay_agent
Script
gameplay_agent This is a val.town mirror of gameplay/games/agent . Click the link to see docs.
1
204
jeffreyyoung avatar
jeffreyyoung
impressiveApricotLobster
HTTP
Forked from jeffreyyoung/progressivePlumTurkey
0
205
bao avatar
bao
notionSiteRss
HTTP
Generate an RSS feed for your Notion site. Prerequisite: the articles/posts needs to be in a Notion database. Create a Notion integration in http://notion.so/profile/integrations Go to the Notion database -> click ••• from top right -> Connections -> Connect to, select the integration from last step Fork this val Set up your NOTION_DATABASE_ID and NOTION_API_TOKEN in: https://www.val.town/settings/environment-variables Update the code to customize with your database properties (look out for "Customize based on your database") Share the RSS url
1
206
spinningideas avatar
spinningideas
whoIsHiring
HTTP
Forked from stevekrouse/whoIsHiring
0
207
bao avatar
bao
notionDbCalendarFeed
HTTP
Publishes a Notion database with a date property to a calendar feed. Create a Notion integration in http://notion.so/profile/integrations Go to the Notion database -> click ••• from top right -> Connections -> Connect to, select the integration from last step Fork this val Set NOTION_API_TOKEN and NOTION_EVENTS_DATABASE_ID in https://www.val.town/settings/environment-variables Update datePropertyName and maxEventAgeInMonths if necessary
1
208
jdan avatar
jdan
blueskyPostButton
HTTP
blueskyPostButton An app to post to bsky.app, generated with townie! setup Two environment variables BLUESKY_USERNAME: Your username BLUESKY_PASSWORD: Your password, use an app password
0
209
vtdocs avatar
vtdocs
resyBot
Script
Resy bot This bot books restaurant reservations via Resy. Use it to snipe reservations at your favorite restaurant! How to use it Set up a scheduled val to call it like this: import { resyBot } from "https://esm.town/v/stevekrouse/resyBot?v=2"; import { email } from "https://esm.town/v/std/email?v=13"; export default async function (interval: Interval) { const bookingInfo = await resyBot( { slug: 'amaro-bar', city: 'ldn', day: '2023-07-05', start: '19:00', end: '21:00', partySize: 2, // Use https://www.val.town/settings/secrets for these! email: Deno.env.get("resyEmail"), password: Deno.env.get("resyPassword"), }) // If the val doesn't error, it successfully made a booking! // Send yourself an email like this: await email({ text: bookingInfo, subject: 'resy bot made a booking for you!' }) } How it works This val makes the same requests that your browser would make when you reserve a slot on Resy (that's why it needs your login info – to request an auth token). When there isn't a matching slot, this val errors and nothing else happens. When a booking is available, this val books it and returns a description of the booking so you can email it to yourself (Resy will also email you). This val will then stop attempting bookings for you until you change one of the arguments you're passing (it concats the non-sensitive arguments and uses this as a key). Credit to @rlesser and @alp for their existing Resy vals (search for resy on here).
7
210
stevekrouse avatar
stevekrouse
telegram
Script
Forked from pomdtr/telegram
3