Search
untitled1382609
@arbesman
An interactive, runnable TypeScript val by arbesman
Script
import { untitled5654871 } from "https://esm.town/v/stevekrouse/untitled5654871";
export let untitled1382609 = untitled5654871 + 100
untitled7953808
@mxderouet
An interactive, runnable TypeScript val by mxderouet
Script
export let untitled7953808 = function () {
console.email("Remember to try val.town for Weather Bot");
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({
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({
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({
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,
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({
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";
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");
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-aa8c56e49800/public)
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](https://www.val.town/v/stevekrouse/sqlite_admin/fork) to your account.
It uses [basic authentication](https://www.val.town/v/pomdtr/basicAuth) with your [Val Town API Token](https://www.val.town/settings/api) as the password (leave the username field blank).
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);
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;
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>");
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",
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",