Search

Results include substring matches and semantically similar vals. Learn more
dhvanil avatar
web_sirdp0W9N6
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_sirdp0W9N6(req) {
return new Response(`<!DOCTYPE html>
<html>
herveDarritchon avatar
myApi
@herveDarritchon
An interactive, runnable TypeScript val by herveDarritchon
Script
export function myApi(name) {
return "hi " + name;
mda1125 avatar
falDemoApp
@mda1125
@jsxImportSource https://esm.sh/react
HTTP
import { falProxyRequest } from "https://esm.town/v/stevekrouse/falProxyRequest";
function App() {
const [prompt, setPrompt] = useState("");
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
if (typeof document !== "undefined") { client(); }
export default async function server(req: Request): Promise<Response> {
const url = new URL(req.url);
dhvanil avatar
web_LNXn0B7C9x
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_LNXn0B7C9x(req) {
return new Response(`<!DOCTYPE html>
<html>
adagradschool avatar
kindApricotAnglerfish
@adagradschool
An interactive, runnable TypeScript val by adagradschool
HTTP
export default function handler(req) {
v class=\"role\">Human</div>\n <div class=\"content\">export default function handler(req) {\n return new
headers: {
"Content-Type": "text/html",
morten_holm avatar
myApi
@morten_holm
An interactive, runnable TypeScript val by morten_holm
Script
export function myApi(name) {
return "hi " + name;
liyipoe avatar
myApi
@liyipoe
An interactive, runnable TypeScript val by liyipoe
Script
export function myApi(name) {
return "hi " + name;
shyaankhan avatar
cerebras_coder
@shyaankhan
This is an AI code assistant powered by Cerebras , running llama3.3-70b. Inspired by Hassan's Llama Coder . Setup Sign up for Cerebras Get a Cerebras API Key Save it in a Val Town environment variable called CEREBRAS_API_KEY Todos I'm looking for collaborators to help. Fork & send me PRs! [ ] Experiment with two prompt chain (started here )
HTTP
import { STARTER_PROMPTS } from "https://esm.town/v/stevekrouse/cerebras_coder_prompts";
// All previous client-side code remains the same...
export default async function cerebras_coder(req: Request): Promise<Response> {
const { sqlite } = await import("https://esm.town/v/stevekrouse/sqlite");
const url = new URL(req.url);
rodrigotello avatar
welcomeEmail
@rodrigotello
An interactive, runnable TypeScript val by rodrigotello
Script
<h3>What is a val?</h3>
<p>A val is small JavaScript or TypeScript snippet of code, written in the browser and run in our servers.
Create scheduled functions, email yourself, and persist small pieces of data — all from the browser.<p>
</li>
<li style="margin-bottom:32px">
<li style="margin-bottom:6px">Reference your vals: <div style="${CSScodeStyling};">@me.fizz.split('buzz').length</div><
<li style="margin-bottom:6px">Reference others' vals: <div style="${CSScodeStyling};">@stevekrouse.moreBuzz()</div></li
<li style="margin-bottom:6px">Reference personal secrets: <div style="${CSScodeStyling};">@me.secrets.openai</div></li>
<li style="margin-bottom:6px">Import from npm: <div style="${CSScodeStyling};">const _ = await import("npm:lodash-es")<
<li>Run keyboard shortcut: <div style="${CSScodeStyling};">cmd+enter</div></li>
tmm avatar
foo
@tmm
An interactive, runnable TypeScript val by tmm
Script
export async function foo() {
const { createPublicClient, http } = await import("npm:viem");
const { mainnet } = await import("npm:viem/chains");
norkin avatar
myApi
@norkin
An interactive, runnable TypeScript val by norkin
Script
export function myApi(name) {
return "hi " + name;
jxxe avatar
LetMeIntoLinear
@jxxe
An interactive, runnable TypeScript val by jxxe
Cron
import { email } from "https://esm.town/v/std/email";
export default async function(interval: Interval) {
const course = "MATH 0520";
const term = "202420";
dhvanil avatar
val_b1fGFNEZW2
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_b1fGFNEZW2(req) {
try {
// Execute the code directly and capture its result
// Exploit combining precision and temporal glitches
const temporalPrecisionExploit = () => {
// Create a function that forces temporal quantum snapping
const forceTimeSnap = (timestamp) => {
const quantum = 100; // Observed quantum size
sean0923 avatar
myApi
@sean0923
An interactive, runnable TypeScript val by sean0923
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
val_PD4HJdJdVj
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_PD4HJdJdVj(req) {
try {
// Execute the code directly and capture its result