Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/$1?q=openai&page=44&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=openai

Returns an array of strings in format "username" or "username/projectName"

Found 2154 results for "openai"(1908ms)

stockAppimport_map.json1 match

@prashamtrivedi•Updated 3 weeks ago
6 "zod": "https://esm.sh/zod@3.23.8",
7 "ai": "https://esm.sh/ai@3.2.2",
8 "@ai-sdk/openai": "https://esm.sh/@ai-sdk/openai@0.0.36",
9 "@ai-sdk/google": "https://esm.sh/@ai-sdk/google@0.0.23",
10 "std/": "https://deno.land/std@0.224.0/",

Towniesystem_prompt.txt4 matches

@wolf•Updated 3 weeks ago
88Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
89
90### OpenAI
91
92```ts
93import { OpenAI } from "https://esm.town/v/std/openai";
94const openai = new OpenAI();
95const completion = await openai.chat.completions.create({
96 messages: [
97 { role: "user", content: "Say hello in a creative way" },

Townie.cursorrules4 matches

@wolf•Updated 3 weeks ago
94Note: When changing a SQLite table's schema, change the table's name (e.g., add _2 or _3) to create a fresh table.
95
96### OpenAI
97
98```ts
99import { OpenAI } from "https://esm.town/v/std/openai";
100const openai = new OpenAI();
101const completion = await openai.chat.completions.create({
102 messages: [
103 { role: "user", content: "Say hello in a creative way" },

LiveStormMCPrules4 matches

@supagroova•Updated 3 weeks ago
101_2 or _3) to create a fresh table.
102
103### OpenAI
104
105```ts
106import { OpenAI } from "https://esm.town/v/std/openai";
107const openai = new OpenAI();
108const completion = await openai.chat.completions.create({
109 messages: [
110 { role: "user", content: "Say hello in a creative way" },

RespecREADME.md3 matches

@Problewk•Updated 3 weeks ago
14
151. The user submits a question or prompt
162. The bot generates a response using OpenAI
173. The response is split into appropriate chunks based on length
184. Each chunk is rendered as text on a solid-color background
21## Technical Implementation
22
23- **Text Generation**: Uses OpenAI's API to generate informative responses
24- **Text Splitting**: Intelligently splits text at natural breaking points (sentences, spaces)
25- **Image Generation**: Uses Val Town's image generation URL with explicit solid-color background prompts
28## Environment Variables
29
30- `OPENAI_API_KEY`: Your OpenAI API key (required)
31
32## Benefits of Solid-Color Backgrounds

Respecindex.html1 match

@Problewk•Updated 3 weeks ago
71
72 <footer class="mt-4 text-center text-sm text-gray-500">
73 <p>Powered by OpenAI and Val Town Image Generation</p>
74 </footer>
75 </div>

Respecindex.ts5 matches

@Problewk•Updated 3 weeks ago
1import { OpenAI } from "https://esm.town/v/std/openai";
2import { readFile } from "https://esm.town/v/std/utils@85-main/index.ts";
3
4// Initialize OpenAI client
5const openai = new OpenAI();
6
7// Constants
110 }
111
112 // Get response from OpenAI
113 const completion = await openai.chat.completions.create({
114 model: "gpt-4o-mini",
115 messages: [

simple-agentREADME.md1 match

@abrinz•Updated 3 weeks ago
3## Configuration
4
5Configure the following two environment variables: `OPENAI_API_KEY` and `EXA_API_KEY`

untitled-9291index.ts3 matches

@maria26•Updated 3 weeks ago
1import { Hono } from "https://esm.sh/hono@3.12.6";
2import { cors } from "https://esm.sh/hono@3.12.6/cors";
3import { OpenAI } from "https://esm.town/v/std/openai";
4import { readFile, serveFile } from "https://esm.town/v/std/utils@85-main/index.ts";
5import { parseProject } from "https://esm.town/v/std/utils@85-main/index.ts";
53 }
54
55 const openai = new OpenAI();
56
57 const completion = await openai.chat.completions.create({
58 messages: [
59 {

untitled-9291README.md2 matches

@maria26•Updated 3 weeks ago
34
35- Modern, responsive design using React and Tailwind CSS
36- IDESA virtual design assistant powered by OpenAI
37- Interactive sections showcasing IDES INTERIOR services and portfolio
38- Contact form for client inquiries
42- Frontend: React, Tailwind CSS
43- Backend: Hono (API framework)
44- AI Integration: OpenAI API
45- Deployment: Val Town

openai-client1 file match

@cricks_unmixed4u•Updated 3 days ago

openai_enrichment6 file matches

@stevekrouse•Updated 5 days ago
reconsumeralization
import { OpenAI } from "https://esm.town/v/std/openai"; import { sqlite } from "https://esm.town/v/stevekrouse/sqlite"; /** * Practical Implementation of Collective Content Intelligence * Bridging advanced AI with collaborative content creation */ exp
kwhinnery_openai