Search
![isfeng avatar](https://images.clerk.dev/oauth_github/img_2QwsGl7CgLQFNybkUjXmgFsSBbE.png)
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](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
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(
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](https://images.clerk.dev/uploaded/img_2PqHa2Gsy93xQrjh2w78Xu0cChW.jpeg)
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);
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
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](https://images.clerk.dev/oauth_github/img_2Rfu4NcPavsV92LVhJhgwgNtXwR.png)
myApi
@luxian
An interactive, runnable TypeScript val by luxian
Script
export function myApi(name) {
return "hi " + name;
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](https://images.clerk.dev/oauth_github/img_2Ss90I2DHN3cXYlBs1PhitynT6X.jpeg)
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](https://images.clerk.dev/oauth_github/img_2SYbVhlH2aUBbaTDJ91Mu7z8Y25.jpeg)
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](https://images.clerk.dev/oauth_github/img_2RneNivvmvVhaNN6c8aPfYV22wS.jpeg)
myApi
@bmschmidt
An interactive, runnable TypeScript val by bmschmidt
Script
export function myApi(name) {
return "hi " + name;
![andrewn avatar](https://images.clerk.dev/oauth_github/img_2QHfEF9yREDnMfl2ii1vyIVUJva.jpeg)
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](https://images.clerk.dev/oauth_github/img_2SFF3yhQysrXuSjHHXVpl6djyj5.png)
myApi
@patrickwire
An interactive, runnable TypeScript val by patrickwire
Script
export function myApi(name) {
return "hi " + name;