Avatar

stevekrouse

mayor of val town
Public vals
773
stevekrouse avatar
stevekrouse
hello_world
HTTP
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
createGithubIssue
Script
This helper function creates a Github Issue in the specified repo, assigned to whoever you want. It also adds it into the current milestone. We use this in @stevekrouse/renderEmails to auto-create issues when we have server restarts, in the current milestone, assigned to @maxm, our infra guy. import { createIssue } from 'https://esm.town/v/stevekrouse/createGithubIssue'; console.log( await createIssue({ title: "Test Issue", body: "This is a test issue.", repoOwner: "val-town", repoName: "val.town", assignee: "maxmcd", githubToken: Deno.env.get("GITHUB_CONTRIBUTIONS"), }), );
1
stevekrouse avatar
stevekrouse
stripFences
Script
Strip Fences Useful for stripping out code fences, ie from a reply from an llm where you want code and it replies with markdown code fences around that code.
0
stevekrouse avatar
stevekrouse
socialDataProxy
HTTP
A proxy that lets Val Town users get some free SocialData Search to power their Twitter Alerts, ie @stevekrouse/twitterAlert I reccomend interfacing with this proxy via this helper function: @stevekrouse/socialDataSearch
0
stevekrouse avatar
stevekrouse
socialDataSearch
Script
Helper function to call SocialData Twitter Search API, via my proxy: @stevekrouse/socialDataProxy
0
stevekrouse avatar
stevekrouse
drivingTealKite
HTTP
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
git_jiggy
HTTP
Needs GITHUB_CONTRIBUTIONS key set in your Val Town Environment Variables . Get this token here: https://github.com/settings/personal-access-tokens/new Give it basically the minimum permissions. It should only pull public data anyways.
2
stevekrouse avatar
stevekrouse
exampleSQLQuery
Script
example output { columns: [ "id", "content", "time" ], columnTypes: [ "INTEGER", "TEXT", "TIMESTAMP" ], rows: [ { id: 1, content: "asdfasdf", time: "2024-05-24 19:11:52" } ], rowsAffected: 0, lastInsertRowid: null }
0
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
stevekrouse avatar
stevekrouse
ics_example
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
vtTokenSessionAuthSafe
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
sqliteAdminDashboard
HTTP
Simple SQLite dashboard made by townie in this video: https://x.com/stevekrouse/status/1833577807093371325
0
stevekrouse avatar
stevekrouse
chatWithCerebras
HTTP
An interactive, runnable TypeScript val by stevekrouse
1
stevekrouse avatar
stevekrouse
ExampleGetParams
HTTP
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
memeGenerator
HTTP
* This meme creation tool app will allow users to create memes by selecting an image and adding top and bottom text. * We'll use HTML5 Canvas to render the meme directly in the browser, with custom positioning for different meme templates.
0
stevekrouse avatar
stevekrouse
zod_demo_shared
Script
An interactive, runnable TypeScript val by stevekrouse
1