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/?q=react&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 4184 results for "react"(509ms)

Github user's stars (pagination)426 words

https://docs.val.town/integrations/github/github-users-stars-pagination/
when you get a comment reaction! Create a GitHub personal access token: https://github.com/settings/personal-access-tokens/new. Give it permissions to the repositories that you’re interested in getting comment reaction notifications for. Allow Read-only

Sections

Email yourself when you get a comment reaction!

you get a comment reaction! Create a GitHub personal access token: https://github.com/settings/personal-access-tokens/new. Give it permissions to the repositories that you’re interested in getting comment reaction notifications for. Allow Read-only access

HTML & JSX201 words

https://docs.val.town/vals/http/jsx/
quickly turn that JSX object into a string that you can use for a response. React. Vue. Solid. Hono. Interoperability. Deno has JSX and TypeScript support, but browsers do not.

Sections

React

React.

Saving data from a web page513 words

https://docs.val.town/guides/saving-data-from-a-web-page/
is a fork 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 it

Sections

Blob storage

is a fork 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 it

SQLite example

will leave it as an exercise to an ambitious and helpful reader to convert the React demo to use SQLite and submit a PR to this docs page. Note: we

Townie500 words

https://docs.val.town/reference/townie/
run on the server or in a client-side context. By default, it’ll tend to use React to build front-end interfaces and the built-in SQLite storage for persisting data. To change

Sections

HTTP val Template

run on the server or in a client-side context. By default, it’ll tend to use React to build front-end interfaces and the built-in SQLite storage for persisting data. To change

CTGBreakerFarcasterMiniApp.tsx2 matches

@horsefacts•Updated 3 hours ago
1/** @jsxImportSource https://esm.sh/react@19 */
2import fcsdk from "https://esm.sh/@farcaster/frame-sdk";
3import { useEffect, useState } from "https://esm.sh/react@19";
4import { formatAddress, formatJSON, MonoButtonWithStatus, Section } from "./ui.tsx";
5

my-first-valtest3 matches

@bugraipek•Updated 4 hours ago
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import React from "https://esm.sh/react@18.2.0";
4
5// Array of random Turkish sentences

reactHonoStarter4 file matches

@Nabinduthraj•Updated 10 hours ago

atProtoLexiconThing4 file matches

@wilhelm•Updated 22 hours ago
Starter template with client-side React & Hono server