healthtech4africamain.tsx7 matches
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);
129return (
130<div className="app">
131<h1>AI Mental Health Therapist - {country}</h1>
132{renderContent()}
133<div className="chat">
221let systemMessage = "";
222if (stage === "urgent" || user.urgent) {
223systemMessage = "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") {
225systemMessage = "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") {
227systemMessage = "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") {
229systemMessage = "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}
231262<html>
263<head>
264<title>AI Mental Health Therapist</title>
265<style>${css}</style>
266</head>
email_channelREADME.md2 matches
3This val creates an email address that posts forwarded emails to a [Campsite](https://campsite.com) channel.
45It 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).
67For 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
13## Authentication
1415Login 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.
1617## Todos / Plans
sqliteExplorerAppmain.tsx2 matches
27<head>
28<title>SQLite Explorer</title>
29<link rel="preconnect" href="https://fonts.googleapis.com" />
3031<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
32<link
33href="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"
34rel="stylesheet"
35/>
webcamEffectsmain.tsx2 matches
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
1# Campsite API
23Note: this Val has been deprecated. Please use our official JS/TS SDK: https://www.npmjs.com/package/campsite-client
createGithubIssuemain.tsx2 matches
5}) {
6const response = await fetch(
7`https://api.github.com/repos/${repoOwner}/${repoName}/milestones?state=open&sort=due_on&direction=asc`,
8{
9headers: {
3738const response = await fetch(
39`https://api.github.com/repos/${repoOwner}/${repoName}/issues`,
40{
41method: "POST",
pageSpeedAPImain.tsx5 matches
81setHtmlContent('');
82try {
83const response = await fetch(`/api?url=${encodeURIComponent(url)}`);
84if (!response.ok) {
85throw 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">
267const url = new URL(request.url);
268
269if (url.pathname === "/api") {
270const testUrl = url.searchParams.get("url");
271if (!testUrl) {
279}
280281const apiUrl = `https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=${encodeURIComponent(testUrl)}`;
282283try {
284const response = await fetch(apiUrl);
285if (!response.ok) {
286throw new Error(`HTTP error! status: ${response.status}`);
monacoEditormain.tsx1 match
137try {
138// Make a POST request to the dummy URL
139const response = await fetch('https://example.com/api/save', {
140method: 'POST',
141headers: {