Search

Results include substring matches and semantically similar vals. Learn more
isfeng avatar
gpt
@isfeng
An interactive, runnable TypeScript val by isfeng
Script
import { runVal } from "https://esm.town/v/std/runVal";
export async function gpt(prompt) {
return await runVal("patrickjm.gpt3", {
prompt: prompt,
stevekrouse avatar
firehose
@stevekrouse
@jsxImportSource https://esm.sh/react
HTTP
const agent = new AtpAgent({ service });
function App() {
const [messages, setMessages] = useState([]);
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
client();
export default async function server(request: Request): Promise<Response> {
return new Response(
dhvanil avatar
val_EzhMBKOVWM
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_EzhMBKOVWM(req) {
try {
// Execute the code directly and capture its result
// Let's explore how complexity and meaning can emerge from simplicity
// This time modeling the concept of interconnectedness and growth
function createFractalTree(depth) {
if (depth === 0) return ['|'];
const patterns = [];
stevekrouse avatar
cerebras_debater
@stevekrouse
Cerebras Debater An app that debates with itself while you watch Setup Sign up for Cerebras Get a Cerebras API Key Save it in a Val Town environment variable called CEREBRAS_API_KEY
HTTP
topic: "is ai or crypto is going to be more impactful?",
function App() {
const [personality1, setPersonality1] = useState("an emacs enthusiast");
</div>
function client() {
createRoot(document.getElementById("root")).render(<App />);
client();
export default async function server(req: Request): Promise<Response> {
const url = new URL(req.url);
dhvanil avatar
val_ILKOorzhdB
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_ILKOorzhdB(req) {
try {
// Execute the code directly and capture its result
dhvanil avatar
val_YZn5WPiaWB
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_YZn5WPiaWB(req) {
try {
// Execute the code directly and capture its result
luxian avatar
myApi
@luxian
An interactive, runnable TypeScript val by luxian
Script
export function myApi(name) {
return "hi " + name;
diegoivo avatar
cerebras_coder
@diegoivo
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
</a>
function Hero({
prompt,
<p className="text-[#bababa] text-center max-w-[25ch] mx-auto my-4 font-dm-sans">
Turn your ideas into fully functional apps in{" "}
<span className="relative w-fit text-fuchsia-400 z-10 italic font-semibold rounded-full">
</section>
function App() {
// ... [rest of the existing App component remains unchanged]
mgruel avatar
alias
@mgruel
An interactive, runnable TypeScript val by mgruel
Script
: T extends UserParams ? UserResult
: never;
export function alias<P extends Params>(params: P): Promise<Result<P>> {
const username = params.username;
let url = `https://api.val.town/v1/alias/${username}`;
dpetrouk avatar
fetchTweet
@dpetrouk
An interactive, runnable TypeScript val by dpetrouk
Script
import { fetch } from "https://esm.town/v/std/fetch";
import { normalizeURL } from "https://esm.town/v/stevekrouse/normalizeURL?v=3";
export async function fetchTweet(url) {
const tweetId = url.match(/(\d{19})/)[1];
const tweetUrl =
bmschmidt avatar
myApi
@bmschmidt
An interactive, runnable TypeScript val by bmschmidt
Script
export function myApi(name) {
return "hi " + name;
andrewn avatar
dailyMathFact
@andrewn
An interactive, runnable TypeScript val by andrewn
Script
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
export async function dailyMathFact() {
let mathFact = await fetchText(
"http://numbersapi.com/random/math",
patrickwire avatar
myApi
@patrickwire
An interactive, runnable TypeScript val by patrickwire
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
web_cgvolHK08C
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function web_cgvolHK08C(req) {
return new Response(`<!DOCTYPE html>
<html>
dr0 avatar
pingReplit
@dr0
An interactive, runnable TypeScript val by dr0
Cron
import { fetch } from "https://esm.town/v/std/fetch";
export async function pingReplit() {
fetch("https://lookup.icxk.top/imgs/36x36.png");