Search
untitled_magentaBee
@xuesjiang
An interactive, runnable TypeScript val by xuesjiang
Script
export async function untitled_magentaBee() {
const { default: axios } = await import("npm:axios");
const url =
"https://microsoft.webhook.office.com/webhookb2/c092e225-69b9-4c55-8596-6080dd20a0c7@72f988bf-86f1-41af-91ab-2d7cd011db47/IncomingWebhook/c66ca2ccd2e841a08d659cfc06004324/76bcdcb1-ab16-4d46-96d0-8c219165d40a";
const message = "testing";
const card = {
type: "message",
attachments: [
contentType: "application/vnd.microsoft.card.adaptive",
contentUrl: null,
untitled_YABHhfJ7
@ytf
An interactive, runnable TypeScript val by ytf
Script
export const untitled_YABHhfJ7 = (async () => {
untitled_bronzePenguin
@rafter
An interactive, runnable TypeScript val by rafter
Script
export const untitled_bronzePenguin = (async () => {
return `<h1>Hello from Val</h1>`;
untitled_magentaBaboon
@jora_cody
An interactive, runnable TypeScript val by jora_cody
Script
export let untitled_magentaBaboon = async () => {
// const cheerio = await import("npm:cheerio");
// const request = await fetch("https://woolworths.com.au");
// const $ = cheerio.load(request.body);
return new Response(`<h1>Hi!</h1>`, {
headers: { "Content-Type": "text/html" },
untitled_redTurtle
@devdoshi
// The OpenAPI documentation will be available at /doc
HTTP
const ParamsSchema = z.object({
id: z
.string()
.min(3)
.openapi({
param: {
name: "id",
in: "path",
example: "1212121",
const UserSchema = z
untitled_cyanLamprey
@stevekrouse
// export default async () => html(await blob.getJSON("dateme_html_cache"));
Script
import { timed } from "https://esm.town/v/stevekrouse/timed";
const dateme_html_cache = await (await fetch("https://stevekrouse-dateme.web.val.run/")).text();
await blob.delete("dateme_html_cache");
// export default async () => html(await blob.getJSON("dateme_html_cache"));
untitled_scarletPinniped
@hiteshjoshi
An interactive, runnable TypeScript val by hiteshjoshi
HTTP
export default async function(req: Request): Promise<Response> {
return Response.json({ ok: false });
untitled_blueTrout
@yokoli
An interactive, runnable TypeScript val by yokoli
Script
export const untitled_blueTrout = (async () => {
return {
data: "hello",
untitled_jadeLizard
@trea
An interactive, runnable TypeScript val by trea
HTTP
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`,
untitled_sendForm
@joey
An interactive, runnable TypeScript val by joey
Script
import { renderHtml } from "https://esm.town/v/joey/renderHtml";
export const untitled_sendForm = (...args) => {
return renderHtml(
args,
`<form action="https://api.val.town/eval/@joey.untitled_handleForm">
Subject <input name="subject" /> <br/>
<textarea name="body" placeholder="Enter message body.."></textarea><br/>
<button>Submit</button>
</form>`
untitled_roseGuanaco
@stevekrouse
An interactive, runnable TypeScript val by stevekrouse
HTTP
import { html } from "https://esm.town/v/stevekrouse/html";
export default async function(req: Request): Promise<Response> {
// return new Response("<h1>Hello FRC!</h1>", { headers: {
// "Content-Type": "text/html"
return html("<h1>Hello FRC 2!</h1>");
untitled_tomatoRaccoon
@b3b00
An interactive, runnable TypeScript val by b3b00
HTTP
export let untitled_tomatoRaccoon = async (request: Request): Promise<Response> => {
return Response.json({ ok: true });
untitled_blackOstrich
@shink
An interactive, runnable TypeScript val by shink
Script
export const untitled_blackOstrich = (async () => {
const bima = new Date().toISOString() + " z " + Math.random();
const htmlExample = (req) =>
new Response("bima", {
headers: {
"Content-Type": "text/plain",