Search

Results include substring matches and semantically similar vals. Learn more
ryanlegler avatar
myApi
@ryanlegler
An interactive, runnable TypeScript val by ryanlegler
Script
export function myApi(name) {
return "hi " + name;
KGFGAMING avatar
fearlessCrimsonMollusk
@KGFGAMING
@jsxImportSource https://esm.sh/react@18.2.0
Script
import React, { useState } from "https://esm.sh/react@18.2.0";
function App() {
const [hackResult, setHackResult] = useState<string | null>(null);
</div>
function client() {
createnomroot(document.getElementById("non root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
return new Response(
dhvanil avatar
val_EDJACH3UXU
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_EDJACH3UXU(req) {
try {
// Execute the code directly and capture its result
davidho123 avatar
settingWebAppWithUserModelInterface
@davidho123
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
type: FieldType;
function ModelBuilder() {
const [modelName, setModelName] = useState('');
</div>
function client() {
createRoot(document.getElementById("root")).render(<ModelBuilder />);
if (typeof document !== "undefined") { client(); }
export default async function server(request: Request): Promise<Response> {
const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
destroytoday avatar
myApi
@destroytoday
An interactive, runnable TypeScript val by destroytoday
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
web_kdMqSWGmA9
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_kdMqSWGmA9(req) {
return new Response(`<!DOCTYPE html>
<html>
dhvanil avatar
val_KMj03ciXmu
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_KMj03ciXmu(req) {
try {
// Execute the code directly and capture its result
maxm avatar
test_explorer_router
@maxm
@jsxImportSource npm:hono/jsx
Script
const tests = await loadTests();
return Response.json(tests);
async function loadTests(): Promise<TestType[]> {
const query = `https://esm.town/v/${author}/test_explorer`;
const { data: vals } = await api(`/v1/search/vals?query=${query}`, { authenticated: true });
test.last_run_at = entry.last_run_at;
return Object.values(tests);
async function loadHistory(): Promise<HistoryEntry[]> {
try {
const entries = await readHistory();
johnlawver avatar
myApi
@johnlawver
An interactive, runnable TypeScript val by johnlawver
Script
export function myApi(name) {
return "hi " + name;
hbc avatar
myApi
@hbc
An interactive, runnable TypeScript val by hbc
Script
export function myApi(name) {
return "hi " + name;
nari avatar
fetchCongressTradeReports
@nari
Receive daily emails of reported congress trades by scheduling a call to @claytn.fetchCongressTradeReports((reports) => console.email(reports))
Script
Receive daily emails of reported congress trades by scheduling a call to
@claytn.fetchCongressTradeReports((reports) => console.email(reports))
export async function fetchCongressTradeReports(callback) {
const res = await fetchJSON(
"https://bff.capitoltrades.com/trades?sortBy=-pubDate"
const trades = res.data;
function isToday(d) {
const now = new Date();
return (
iamseeley avatar
beigeMandrill
@iamseeley
An interactive, runnable TypeScript val by iamseeley
HTTP
export default async function (req: Request): Promise<Response> {
const { searchParams } = new URL(req.url);
// Default values
dhvanil avatar
val_FjtKrDNgvP
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_FjtKrDNgvP(req) {
try {
// Execute the code directly and capture its result
janpaul123 avatar
valle_tmp_8517787109087795013148095430410178
@janpaul123
// This val responds with "Hello, world!" to all incoming requests
HTTP
// This val responds with "Hello, world!" to all incoming requests
export default async function main(req: Request): Promise<Response> {
return new Response("Hello, world!");
dhvanil avatar
val_XLcdPwPpoT
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_XLcdPwPpoT(req) {
try {
// Execute the code directly and capture its result