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=api&page=3&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 15177 results for "api"(1641ms)

Runtime146 words

https://docs.val.town/reference/runtime/
so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled. Included environment. fetch to make HTTP requests. import from npm and https.

Sections

Runtime

so they can make HTTP requests. Vals have access to environment variables. The experimental Temporal API is enabled.

Basic examples172 words

https://docs.val.town/vals/http/basic-examples/
unlike other triggers, expose a public endpoint. An HTTP file that works with the Web API takes a Request object as input and returns a Response object. The most basic

Sections

Basic examples

unlike other triggers, expose a public endpoint. An HTTP file that works with the Web API takes a Request object as input and returns a Response object. The most basic

Routing175 words

https://docs.val.town/vals/http/routing/
in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and

Sections

Routing

in ChatGPT Ask questions about this page. One of the coolest things about the Request/Response API is that it works with modern web frameworks, so you can use routing and

Saving data from a web page513 words

https://docs.val.town/guides/saving-data-from-a-web-page/
to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town. Blob storage. For example, this val is an app that

Sections

Saving data from a web page

to interact with it. You can either use form submissions or client-side JavaScript to make API calls to Val Town.

Blob storage

This is a remix of the above app that uses client-side React to make the API calls: You could easily host the React part anywhere (Vercel, Netlify, etc) and have

Vulnerability Disclosure Policy325 words

https://docs.val.town/contact-us/security/
severity of the exploit found. In-scope domains. Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program. Out of

Sections

In-scope domains

In-scope domains. Val Town uses the following domains: val.town. valtown.email. api.val.town. esm.town. val.run. Subdomains of these domains are in scope for the program.

Overview252 words

https://docs.val.town/vals/
that files within a val can have: HTTP Triggered by https requests. You can make APIs or websites Cron Triggered by a timer or cron expression Email Triggered by an

Sections

Triggers

Triggers. There are 3 types of triggers that files within a val can have: HTTP Triggered by https requests. You can make APIs or websites Cron Triggered by a timer

Discord bot625 words

https://docs.val.town/integrations/discord/how-to-make-a-discord-bot-hosted-24-7-for-free-in-/
Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces of data — all from the

Sections

Step 3: Login to Val Town

Step 3: Login to Val Town. Val Town is a social website to write, run, and host JavaScript. You can create APIs, scheduled functions, email yourself, and persist small pieces

Further Directions

you want. You’ll probably want to: Register a new Slash Command. Connect your bot to APIs like OpenAI’s GPT or Dall-E. Come join us in the Val Town Discord if

Environment variables271 words

https://docs.val.town/reference/environment-variables/
text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API tokens as Environment Variables via the val’s left side bar. Environment variables can be

Sections

Environment variables

text. Open in ChatGPT Ask questions about this page. You can store secrets, keys, and API tokens as Environment Variables via the val’s left side bar. Environment variables can be

Simplified val privacy275 words

https://docs.val.town/upgrading/simplified-val-privacy/
the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.

Sections

Upgrading

the privacy of a Val via the UI. There is currently no way to change the privacy status of Val via the API, but we plan to add that shortly.

Neon Postgres280 words

https://docs.val.town/integrations/databases/neon-postgres/
Open in ChatGPT Ask questions about this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional

Sections

Neon Postgres

Open in ChatGPT Ask questions about this page. Neon provides a PostgreSQL database with an API accessible over HTTP and a JavaScript SDK. This lets you use a more conventional

ChatApp.tsx8 matches

@c15r•Updated 4 hours ago
19
20export interface AppConfig {
21 anthropicApiKey: string;
22 mcpServers: MCPServer[];
23 selectedModel: string;
36export default function App() {
37 const [config, setConfig] = useState<AppConfig>({
38 anthropicApiKey: "",
39 mcpServers: DEFAULT_MCP_SERVERS,
40 selectedModel: "claude-3-5-sonnet-20241022",
45 // Load config from localStorage on mount
46 useEffect(() => {
47 const savedApiKey = localStorage.getItem("anthropic_api_key");
48 const savedMcpServers = localStorage.getItem("mcp_servers");
49 const savedMessages = localStorage.getItem("chat_messages");
51
52 setConfig({
53 anthropicApiKey: savedApiKey || "",
54 mcpServers: savedMcpServers ? JSON.parse(savedMcpServers) : DEFAULT_MCP_SERVERS,
55 selectedModel: savedModel || "claude-3-5-sonnet-20241022",
66 }
67
68 // Show settings if no API key is configured
69 if (!savedApiKey) {
70 setShowSettings(true);
71 }
74 // Save config to localStorage when it changes
75 useEffect(() => {
76 if (config.anthropicApiKey) {
77 localStorage.setItem("anthropic_api_key", config.anthropicApiKey);
78 }
79 localStorage.setItem("mcp_servers", JSON.stringify(config.mcpServers));

cerebras_coderREADME.md5 matches

@canstralian•Updated 4 hours ago
9The application has been converted to use Hono for better performance and caching:
10
11- **Backend**: Hono-based API server (`/backend/index.ts`)
12- **Frontend**: React SPA served from `/public/`
13- **Database**: SQLite with migrations and queries
17
181. Sign up for [Cerebras](https://cloud.cerebras.ai/)
192. Get a Cerebras API Key
203. Save it in your project env variable called `CEREBRAS_API_KEY`
21
22## Caching Strategy
27- **Main page**: 5 minutes cache
28
29## API Endpoints
30
31- `GET /` - Main application page
32- `POST /api/generate` - Generate code from prompt
33- `GET /p/:project` - Latest version of project
34- `GET /p/:project/v/:version` - Specific version of project

HN-fetch-call2 file matches

@ImGqb•Updated 15 hours ago
fetch HackerNews by API

token-server1 file match

@kwhinnery_openai•Updated 2 days ago
Mint tokens to use with the OpenAI Realtime API for WebRTC
Kapil01
apiv1