Search
onlineGamesAPK
@nauss21
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
icon: "🃏"
function GameCard({ game }) {
return (
</div>
function App() {
return (
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
return new Response(`
val_DDT4GSkTOz
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export default async function handler(req) {
try {
const result = await (async () => {
function isPrime(num) {
if (num <= 1) return false;
return true;
function findLowestThreeDigitPrime() {
for (let num = 100; num < 1000; num++) {
KPoolCafeGameMenu
@Kpool
@jsxImportSource https://esm.sh/react@18.2.0
Cron
import React, { useEffect, useRef, useState } from "https://esm.sh/react@18.2.0";
function App() {
const [selectedCategory, setSelectedCategory] = useState("cafe");
color: "#a0a0a0",
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
// Server-side code remains the same as in the previous implementation
checkHackerNewsForPatreon
@mikker
// This val checks Hacker News for news about Patreon, Buy Me A Coffee, and Ko-fi,
Cron
const KEY = new URL(import.meta.url).pathname.split("/").at(-1);
const TABLE_NAME = `${KEY}_notified_stories`;
async function initializeDatabase() {
await sqlite.execute(`
CREATE TABLE IF NOT EXISTS ${TABLE_NAME} (
story_id INTEGER UNIQUE,
notified_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
async function checkHackerNewsForPatreon() {
await initializeDatabase();
const response = await fetch("https://hacker-news.firebaseio.com/v0/newstories.json");
labLoginBanUser
@evol
An interactive, runnable TypeScript val by evol
HTTP
import * as bcrypt from "https://deno.land/x/bcrypt@v0.4.1/mod.ts";
import { sqlite } from "https://esm.town/v/std/sqlite";
export default async function(req: Request): Promise<Response> {
const TABLE_NAME = "lab_login_users_with_times";
const body = await req.json();
val_xsF31rYfbQ
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export default async function handler(req) {
try {
const result = await (async () => {
function isPrime(num) {
if (num <= 1) return false;
return true;
function findLowestThreeDigitPrime() {
for (let num = 100; num < 1000; num++) {

verifyEmail
@pomdtr
An interactive, runnable TypeScript val by pomdtr
Script
async function fetchUser(token: string): Promise<{ email: string }> {
const resp = await fetch("https://api.val.town/v1/me", {
headers: {
throw new Error("Could not fetch user");
return resp.json();
export async function verifyEmail(email: string) {
try {
const user = await fetchUser(Deno.env.get("valtown"));

fetchCongressTradeReports
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { email } from "https://esm.town/v/std/email?v=9";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
export async function fetchCongressTradeReports({ lastRunAt }) {
const res = await fetchJSON(
"https://bff.capitoltrades.com/trades?sortBy=-pubDate",
enterpriseExpenseManagement
@ashh
management.code
HTTP
status: 'PENDING' | 'APPROVED' | 'REJECTED';
function App() {
const [expenses, setExpenses] = useState<Expense[]>([]);
fetchExpenses();
async function fetchExpenses() {
try {
console.error('Failed to fetch expenses', error);
async function submitExpense() {
try {
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
web_qUw9pGGCvn
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_qUw9pGGCvn(req) {
return new Response(`<!DOCTYPE html>
<html lang="en">
</div>
<script>
function createSparks() {
const container = document.getElementById('explosionContainer');
for (let i = 0; i < 100; i++) {
srcbackend
@temptemp
// console.log(await streamwishExtractor("ru04dsfz6sjj"));
Script
url: string;
export async function Fetcher(url: string, referer: string) {
const design = `?destination=${encodeURIComponent(url)}&referer=${encodeURIComponent(referer)}`;
return request.text();
function unpack(p: any, a: any, c: any, k: any) {
while (c--) if (k[c]) p = p.replace(new RegExp("\\b" + c.toString(a) + "\\b", "g"), k[c]);
return p;
function mat(r: any, l: any) {
return r.exec(l);
export async function streamwishExtractor(id: string): Promise<DataSheet> {
const returnData: DataSheet = {
// console.log(await streamwishExtractor("ru04dsfz6sjj"));
export async function doodstreamExtractor(id: string): Promise<DataSheet> {
const returnData: DataSheet = {
// console.log(await doodstreamExtractor("iw358beiadas"));
export async function streamtapeExtractor(id: string): Promise<DataSheet> {
const returnData: DataSheet = {

neatBlackSwift
@stevekrouse
This is an AI code assistant powered by Cerebras , running llama3.3-70b. Inspired by Hassan's Llama Coder . Setup Sign up for Cerebras Get a Cerebras API Key Save it in a Val Town environment variable called CEREBRAS_API_KEY Todos I'm looking for collaborators to help. Fork & send me PRs! [ ] Experiment with two prompt chain
HTTP
function Hero({
Turn your ideas into fully functional apps in{" "}
function App() {
function handleStarterPromptClick(promptItem: typeof prompts[number]) {
async function handleSubmit(e: React.FormEvent | string) {
function handleVersionChange(direction: "back" | "forward") {
function client() {
function extractCodeFromFence(text: string): string {
async function generateCode(prompt: string, currentCode: string) {
export default async function server(req: Request): Promise<Response> {
emailRandomJoke
@pujdesai
// Fetches a random joke.
Script
import { email } from "https://esm.town/v/std/email?v=9";
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",

markLessonComplete
@petermillspaugh
An interactive, runnable TypeScript val by petermillspaugh
Script
import { sqlite } from "https://esm.town/v/std/sqlite?v=4";
export async function markLessonComplete(emailAddress: string) {
await sqlite.execute({
sql: `
hnTopStory
@whatrocks
An interactive, runnable TypeScript val by whatrocks
Cron
import { fetch } from "https://esm.town/v/std/fetch";
import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
export async function hnTopStory() {
const topStories: Number[] = await fetch(
"https://hacker-news.firebaseio.com/v0/topstories.json?print=pretty"