Search

Results include substring matches and semantically similar vals. Learn more
jqxu avatar
untitled_L32FDwyN
@jqxu
An interactive, runnable TypeScript val by jqxu
Script
export const untitled_L32FDwyN = (async () => {
chrisg avatar
untitled8252423
@chrisg
An interactive, runnable TypeScript val by chrisg
Script
let { who } = await import("https://esm.town/v/chrisg/who");
export let untitled8252423 = who = "Chris G"
stevekrouse avatar
untitled_ivoryFlea
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
Script
import { fetch } from "https://esm.town/v/std/fetch";
export let untitled_ivoryFlea = () => fetch("https://emojicdn.elk.sh/❤️");
maxmetcalfe avatar
untitled6709436
@maxmetcalfe
An interactive, runnable TypeScript val by maxmetcalfe
Script
export let untitled6709436 = default async function() {
console.log("here")
achitnis086 avatar
untitled_brownGrasshopper
@achitnis086
// 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({
trea avatar
untitled_jadeLizard
@trea
An interactive, runnable TypeScript val by trea
HTTP (deprecated)
export default async function(req: Request): Promise<Response> {
console.log(req.headers, req.headers.get("Authorization"));
if (!req.headers.get("Authorization")) {
return Response.json({ error: "Unauthorized" }, {
status: 401,
if (decodeBase64(req.headers.get("Authorization")) !== Deno.env.BASIC_PW) {
return Response.json({ error: "Forbidden" }, {
status: 403,
const release = await fetchJSON(
`https://api.github.com/repos/aryeohq/aryeo/releases/latest`,
Grizmo avatar
untitled3183208
@Grizmo
An interactive, runnable TypeScript val by Grizmo
Script
import { doSomething } from "https://esm.town/v/Grizmo/doSomething";
export let untitled3183208 = doSomething()
andreterron avatar
untitled8735888
@andreterron
An interactive, runnable TypeScript val by andreterron
Script
export let untitled8735888 = async (name) => `Hello ${name}`;
b3b00 avatar
untitled_tomatoRaccoon
@b3b00
An interactive, runnable TypeScript val by b3b00
HTTP (deprecated)
export let untitled_tomatoRaccoon = async (request: Request): Promise<Response> => {
return Response.json({ ok: true });
mccann avatar
untitled_fuchsiaChickadee
@mccann
An interactive, runnable TypeScript val by mccann
Script
let { aqi } = await import("https://esm.town/v/mccann/aqi");
import { easyAQI } from "https://esm.town/v/stevekrouse/easyAQI?v=3";
export const untitled_fuchsiaChickadee = (async () => {
const location = "tiburon, ca";
const aqiQuery = await easyAQI({
location,
const result = { ...aqiQuery, location };
aqi = result;
return aqiQuery;
tmcw avatar
untitled_emeraldCockroach
@tmcw
An interactive, runnable TypeScript val by tmcw
Script
import * as mod from "https://deno.land/std@0.209.0/testing/asserts.ts";
const x: number = 10;
mod.assert(true);
bantic avatar
untitled_harlequinDragon
@bantic
An interactive, runnable TypeScript val by bantic
Script
export default function() {
console.log("hi");
return "foo";
tmcw avatar
untitled_redEarthworm
@tmcw
An interactive, runnable TypeScript val by tmcw
HTTP (deprecated)
export default async () => {
const browserlessApi = Deno.env.get("BROWSERLESS_API_KEY");
const browser = await puppeteer.connect({
browserWSEndpoint: `wss://chrome.browserless.io?token=${browserlessApi}`,
const page = await browser.newPage();
const html = "<h1>hi</h1>";
await page.setContent(html);
const screenshot = await page.pdf();
await page.close();
await browser.close();
tinanii avatar
untitled_redLamprey
@tinanii
// 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({
liviacutra avatar
untitled_indigoPtarmigan
@liviacutra
An interactive, runnable TypeScript val by liviacutra
Script
function fetchRandomJoke() {
const response = fetch(
"https://official-joke-api.appspot.com/random_joke",
return response;
async function RandomJoke() {
const JOKE = {
"setup": "What do you call a group of disorganized cats?",
"punchline": "A cat-tastrophe.",
return JOKE;
const randomJoke = fetchRandomJoke();