Search
![ryanlegler avatar](https://images.clerk.dev/oauth_github/img_2TLFE75juOFhd2UfJmksWXUr6mS.jpeg)
myApi
@ryanlegler
An interactive, runnable TypeScript val by ryanlegler
Script
export function myApi(name) {
return "hi " + name;
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(
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
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](https://images.clerk.dev/oauth_github/img_2TaJ2cTjLA2tea7pAtBVDKp75ab.jpeg)
myApi
@destroytoday
An interactive, runnable TypeScript val by destroytoday
Script
export function myApi(name) {
return "hi " + name;
web_kdMqSWGmA9
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_kdMqSWGmA9(req) {
return new Response(`<!DOCTYPE html>
<html>
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
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](https://images.clerk.dev/oauth_github/img_2Shk9bpgSsOQ7fyIBitobf9op6i.png)
myApi
@johnlawver
An interactive, runnable TypeScript val by johnlawver
Script
export function myApi(name) {
return "hi " + name;
![hbc avatar](https://images.clerk.dev/oauth_github/img_2Scqk2Aw6mzQvDUVx31mRANYdi0.jpeg)
myApi
@hbc
An interactive, runnable TypeScript val by hbc
Script
export function myApi(name) {
return "hi " + name;
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 (
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
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