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/$2?q=function&page=26&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 28923 results for "function"(2898ms)

CineFilmClubs.tsx1 match

@eddie_walk•Updated 1 day ago
7}
8
9export default function FilmClubs({ filmClubs }: FilmClubsProps) {
10 const activities = [
11 {

CineAbout.tsx1 match

@eddie_walk•Updated 1 day ago
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3
4export default function About() {
5 const coreValues = [
6 {

CineApp.tsx1 match

@eddie_walk•Updated 1 day ago
23}
24
25export default function App({ initialData }: AppProps) {
26 const [mobileMenuOpen, setMobileMenuOpen] = useState(false);
27 const [selectedVideo, setSelectedVideo] = useState<Video | null>(null);

TeamREADME.md1 match

@glance•Updated 1 day ago
106## Contributing
107
108When modifying the Notion database schema, ensure you update the `setPage` function in `controllers/controllers.ts` to match your new property structure.

CineShowcase.tsx1 match

@eddie_walk•Updated 1 day ago
10}
11
12export default function Showcase({ videos, categories, onVideoSelect }: ShowcaseProps) {
13 const [activeCategory, setActiveCategory] = useState<string>("all");
14 const [isLoading, setIsLoading] = useState(false);

CineVideoPlayer.tsx1 match

@eddie_walk•Updated 1 day ago
8}
9
10export default function VideoPlayer({ video, onClose }: VideoPlayerProps) {
11 const videoRef = useRef<HTMLVideoElement>(null);
12 const [playerState, setPlayerState] = useState<VideoPlayerState>({

CineVideoGallery.tsx1 match

@eddie_walk•Updated 1 day ago
9}
10
11export default function VideoGallery({ videos, onVideoSelect, isLoading = false }: VideoGalleryProps) {
12 if (isLoading) {
13 return (

CineContact.tsx1 match

@eddie_walk•Updated 1 day ago
3import type { ContactForm } from "../../shared/types.ts";
4
5export default function Contact() {
6 const [contactForm, setContactForm] = useState<ContactForm>({
7 name: '',

CineGetInvolved.tsx1 match

@eddie_walk•Updated 1 day ago
3import type { ClubInterestForm } from "../../shared/types.ts";
4
5export default function GetInvolved() {
6 const [activeForm, setActiveForm] = useState<'club' | 'volunteer' | 'donate' | 'partner'>('club');
7 const [clubForm, setClubForm] = useState<ClubInterestForm>({

CineHero.tsx1 match

@eddie_walk•Updated 1 day ago
2import React from "https://esm.sh/react@18.2.0?deps=react@18.2.0";
3
4export default function Hero() {
5 return (
6 <div className="relative min-h-screen flex items-center justify-center overflow-hidden">
tuna

tuna9 file matches

@jxnblk•Updated 11 hours ago
Simple functional CSS library for Val Town

getFileEmail4 file matches

@shouser•Updated 1 month ago
A helper function to build a file's email
lost1991
import { OpenAI } from "https://esm.town/v/std/openai"; export default async function(req: Request): Promise<Response> { if (req.method === "OPTIONS") { return new Response(null, { headers: { "Access-Control-Allow-Origin": "*",
webup
LangChain (https://langchain.com) Ambassador, KubeSphere (https://kubesphere.io) Ambassador, CNCF OpenFunction (https://openfunction.dev) TOC Member.