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/$%7Bart_info.art.src%7D?q=api&page=1434&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 18170 results for "api"(2283ms)

healthtech4africamain.tsx7 matches

@thomaskangah•Updated 8 months ago
93 <div>
94 <h2>Urgent Support for Kenyan Youth</h2>
95 <p>We're here to help you. Please start chatting with our AI therapist below.</p>
96 <p>If you're in immediate danger, please contact these helplines:</p>
97 <ul>
121 <div>
122 <h2>{stage === "therapy" ? "AI Therapy Session" : "Follow-up Support"}</h2>
123 <p>Chat with your AI therapist below:</p>
124 </div>
125 );
129 return (
130 <div className="app">
131 <h1>AI Mental Health Therapist - {country}</h1>
132 {renderContent()}
133 <div className="chat">
221 let systemMessage = "";
222 if (stage === "urgent" || user.urgent) {
223 systemMessage = "You are an AI mental health therapist specializing in helping depressed Kenyan youth. Provide empathetic, culturally sensitive support, and focus on immediate coping strategies. If the user expresses suicidal thoughts, strongly encourage them to contact the provided helplines.";
224 } else if (stage === "questionnaire") {
225 systemMessage = "You are an AI assistant conducting a neuroscience-based questionnaire for a Kenyan youth. Guide the user through the questions and provide a summary at the end, with a focus on identifying signs of depression.";
226 } else if (stage === "therapy") {
227 systemMessage = "You are an AI mental health therapist specializing in treating depression in Kenyan youth. Provide empathetic and culturally sensitive support, focusing on cognitive-behavioral techniques and mindfulness practices.";
228 } else if (stage === "followup") {
229 systemMessage = "You are an AI mental health therapist providing follow-up support for a Kenyan youth who may be experiencing depression. Check on their progress, offer additional guidance, and encourage the development of healthy coping mechanisms.";
230 }
231
262 <html>
263 <head>
264 <title>AI Mental Health Therapist</title>
265 <style>${css}</style>
266 </head>

email_channelREADME.md2 matches

@campsite•Updated 8 months ago
3This val creates an email address that posts forwarded emails to a [Campsite](https://campsite.com) channel.
4
5It uses GPT-4 to extract a readable version of the forwarded email from the raw body. If you don't want to use GPT-4, omit the `OPENAI_API_KEY` and the raw body will be included in the post. Other providers are available via [Vercel's AI SDK](https://sdk.vercel.ai/docs/introduction#model-providers).
6
7For help with creating integrations, check out the [Campsite API docs](https://app.campsite.com/campsite/p/notes/campsite-api-docs-l07d7gm5n5rm). You'll need to create an integration and get an API key.

sqliteExplorerAppREADME.md1 match

@robertbrook•Updated 8 months ago
13## Authentication
14
15Login to your SQLite Explorer with [password authentication](https://www.val.town/v/pomdtr/password_auth) with your [Val Town API Token](https://www.val.town/settings/api) as the password.
16
17## Todos / Plans

sqliteExplorerAppmain.tsx2 matches

@robertbrook•Updated 8 months ago
27 <head>
28 <title>SQLite Explorer</title>
29 <link rel="preconnect" href="https://fonts.googleapis.com" />
30
31 <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32 <link
33 href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap"
34 rel="stylesheet"
35 />

webcamEffectsmain.tsx2 matches

@kian•Updated 8 months ago
2 * This app creates a webcam-based image processing application with spooky effects.
3 * It requests webcam permissions, displays the video feed, and applies visual and audio effects.
4 * We use React for the UI, the browser's MediaDevices API for webcam access,
5 * and Web Audio API for continuous audio effects.
6 */
7

apiREADME.md1 match

@campsite•Updated 8 months ago
1# Campsite API
2
3Note: this Val has been deprecated. Please use our official JS/TS SDK: https://www.npmjs.com/package/campsite-client

basicAuthREADME.md1 match

@flymaster•Updated 8 months ago
17```
18
19If you want to use an apiToken as a password:
20
21```ts

createGithubIssuemain.tsx2 matches

@stevekrouse•Updated 8 months ago
5}) {
6 const response = await fetch(
7 `https://api.github.com/repos/${repoOwner}/${repoName}/milestones?state=open&sort=due_on&direction=asc`,
8 {
9 headers: {
37
38 const response = await fetch(
39 `https://api.github.com/repos/${repoOwner}/${repoName}/issues`,
40 {
41 method: "POST",

pageSpeedAPImain.tsx5 matches

@eligosmlytics•Updated 8 months ago
81 setHtmlContent('');
82 try {
83 const response = await fetch(`/api?url=${encodeURIComponent(url)}`);
84 if (!response.ok) {
85 throw new Error(`HTTP error! status: ${response.status}`);
194 </button>
195 </form>
196 <p className="note">Note: This tool uses the PageSpeed Insights API without authentication, which has usage limits. For higher quotas, consider using an API key.</p>
197 <div className="content-wrapper">
198 <div className="results-container">
267 const url = new URL(request.url);
268
269 if (url.pathname === "/api") {
270 const testUrl = url.searchParams.get("url");
271 if (!testUrl) {
279 }
280
281 const apiUrl = `https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=${encodeURIComponent(testUrl)}`;
282
283 try {
284 const response = await fetch(apiUrl);
285 if (!response.ok) {
286 throw new Error(`HTTP error! status: ${response.status}`);

monacoEditormain.tsx1 match

@yawnxyz•Updated 8 months ago
137 try {
138 // Make a POST request to the dummy URL
139 const response = await fetch('https://example.com/api/save', {
140 method: 'POST',
141 headers: {

xxxclearinghouse_validator

@toowired•Updated 7 hours ago
Request validator for clearance API

Apiify11 file matches

@wolf•Updated 1 day ago
snartapi
apiry