Search

Results include substring matches and semantically similar vals. Learn more
arbesman avatar
untitled1382609
@arbesman
An interactive, runnable TypeScript val by arbesman
Script
import { untitled5654871 } from "https://esm.town/v/stevekrouse/untitled5654871";
export let untitled1382609 = untitled5654871 + 100
mxderouet avatar
untitled7953808
@mxderouet
An interactive, runnable TypeScript val by mxderouet
Script
export let untitled7953808 = function () {
console.email("Remember to try val.town for Weather Bot");
ericjay12 avatar
untitled_blackChicken
@ericjay12
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
jayjung66 avatar
untitled_salmonPig
@jayjung66
// Fetches a random joke.
Script
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
poulin_al_northeastern avatar
untitled_magentaWildebeest
@poulin_al_northeastern
// Fetches a random joke.
Cron
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
stevekrouse avatar
untitled_FuPJSmj8
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { discordGetMembers } from "https://esm.town/v/vtdocs/discordGetMembers?v=6";
export let untitled_FuPJSmj8 = discordGetMembers(
process.env.discordBot,
process.env.discordServerId,
dwrii avatar
untitled_ivoryBeaver
@dwrii
// Fetches a random joke.
Script
// Fetches a random joke.
async function fetchRandomJoke() {
const response = await fetch(
"https://official-joke-api.appspot.com/random_joke",
return response.json();
const randomJoke = await fetchRandomJoke();
const setup = randomJoke.setup;
const punchline = randomJoke.punchline;
// Sends an email with the joke.
export const emailRandomJoke = email({
snm avatar
untitled4965473
@snm
An interactive, runnable TypeScript val by snm
Script
export let untitled4965473 = /**
* OpenAI text completion. https://platform.openai.com/docs/api-reference/completions
* val.town has generously provided a free daily quota. Until the quota is met, no need to provide an API key.
* To see if the quota has been met, you can run @patrickjm.openAiFreeQuotaExceeded()
* For full REST API access, see @patrickjm.openAiTextCompletion
export gpt3 = async (params: {
openAiKey?: string,
prompt: string,
maxTokens?: number,
const MODEL = "text-davinci-003";
rodrigotello avatar
untitled_apricotTortoise
@rodrigotello
An interactive, runnable TypeScript val by rodrigotello
Script
import { myApi } from "https://esm.town/v/blainandsimple/myApi?v=3";
export let untitled_apricotTortoise = myApi("Rodrigo");
serna avatar
untitled_oliveLoon
@serna
SQLite Admin This is a lightweight SQLite Admin interface to view and debug your SQLite data. It's currently super limited (no pagination, editing data, data-type specific viewers), and is just a couple dozens lines of code over a couple different vals. Forks encouraged! Just comment on the val if you add any features that you want to share. To use it on your own Val Town SQLite database, fork it to your account. It uses basic authentication with your Val Town API Token as the password (leave the username field blank).
HTTP (deprecated)
# SQLite Admin
This is a lightweight SQLite Admin interface to view and debug your SQLite data.
![Screenshot 2023-12-08 at 13.35.04.gif](https://imagedelivery.net/iHX6Ovru0O7AjmyT5yZRoA/ee9a9237-96a0-4276-60b5-aa8c56e4980
It's currently super limited (no pagination, editing data, data-type specific viewers), and is just a couple dozens lines of
To use it on your own Val Town SQLite database, [fork it](https://www.val.town/v/stevekrouse/sqlite_admin/fork) to your accou
It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/s
const app = new Hono();
app.get("/", async (c) => c.html(await sqlite_admin_tables()));
app.get("/:table", async (c) => c.html(await sqlite_admin_table(c.req.param("table"))));
export default basicAuth(app.fetch);
joshmock avatar
untitledTW
@joshmock
An interactive, runnable TypeScript val by joshmock
Script
import { set } from "https://esm.town/v/std/set?v=11";
let { tw } = await import("https://esm.town/v/joshmock/tw");
export async function untitledTW(params) {
if (params && params.val) {
tw = params.val;
await set("tw", tw);
return tw;
bitbloxhub avatar
untitled_xQPufWn7
@bitbloxhub
An interactive, runnable TypeScript val by bitbloxhub
Script
export const untitled_xQPufWn7 = (() => {
const email_testing = console.email(
{ html: "<h1 style=", font } - family,
"Roboto",
sans - serif
(">testing 1 2 3</h1>");
stevekrouse avatar
untitled_Wa1Bbkim
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { runVal } from "https://esm.town/v/std/runVal";
export const untitled_Wa1Bbkim = runVal("patrickjm.gpt3", {
prompt: "tell me about nnamdi",
andreterron avatar
untitled_tomatoKiwi
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
import { createGeneratedVal } from "https://esm.town/v/andreterron/createGeneratedVal";
export let untitled_tomatoKiwi = createGeneratedVal({
valTownKey: process.env.vt_token,
description:
"A val that given a text file position in `{line, col}` and the text contents, returns the index position",
stevekrouse avatar
untitled_RfqtWbJz
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
export const untitled_RfqtWbJz = (() => {
const a = 1;
const b = 2;
return a + b;