Search

Results include substring matches and semantically similar vals. Learn more
shaparder avatar
myApi
@shaparder
An interactive, runnable TypeScript val by shaparder
Script
export function myApi(name) {
return "hi " + name;
impactvelocity avatar
myApi
@impactvelocity
An interactive, runnable TypeScript val by impactvelocity
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
val_M2RuLeNjIx
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_M2RuLeNjIx(req) {
try {
// Execute the code directly and capture its result
emma avatar
myApi
@emma
An interactive, runnable TypeScript val by emma
Script
export function myApi(name) {
return "hi " + name;
ant avatar
runner
@ant
An interactive, runnable TypeScript val by ant
Script
export function runner(req, resp) {
console.log(req);
console.log(resp);
bentossell avatar
hnFollowApp
@bentossell
// Forked from @stevekrouse.hnFollowApp
Cron
import { email } from "https://esm.town/v/std/email?v=9";
import { hnLatestPosts } from "https://esm.town/v/stevekrouse/hnLatestPosts?v=18";
export default async function({ lastRunAt }) {
let posts = await hnLatestPosts({
query: "AI, LLM",
dhvanil avatar
val_AEI5YxH6RC
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export default async function handler(req) {
try {
const result = await (async () => {
function fibonacci() {
let a = 0, b = 1;
while (b < 1000) {
alby avatar
myApi
@alby
An interactive, runnable TypeScript val by alby
Script
export function myApi(name) {
return "hi " + name;
bhelx avatar
myApi
@bhelx
An interactive, runnable TypeScript val by bhelx
Script
export function myApi(name) {
return "hi " + name;
dhvanil avatar
val_IqQ0SMdyJQ
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_IqQ0SMdyJQ(req) {
try {
// Execute the code directly
cephalization avatar
PhoenixProxy
@cephalization
https://simonwillison.net/2024/Aug/23/anthropic-dangerous-direct-browser-access/ THIS IS NO LONGER NECESSARY This Val will proxy anthropic HTTP requests from some frontend client, like langchain, so that you can utilize anthropic apis from the browser. Convert it to an HTTP val in order to use it (you may want to setup an ENV var / header to protect the endpoint with a secret key)
Script
const HOSTED_PHOENIX_BASE_URL = "https://llamatrace.com";
// const HOSTED_PHOENIX_BASE_URL = "https://app.phoenix.arize.com";
export default async function(req: Request) {
if (req.method === "OPTIONS") {
return new Response(null, {
impedivity avatar
myApi
@impedivity
An interactive, runnable TypeScript val by impedivity
Script
export function myApi(name) {
return "hi " + name;
sudojimmy avatar
myApi
@sudojimmy
An interactive, runnable TypeScript val by sudojimmy
Script
export function myApi(name) {
return "hi " + name;
stevekrouse avatar
val_town_client
@stevekrouse
* Create a Valtown API client * @param options - Valtown API client options * @param options.baseUrl - API base URL * @param options.token - API token (if null, no token will be used, if undefined, the token from the environment variable "valtown" will be used)
Script
* @param options.baseUrl - API base URL
* @param options.token - API token (if null, no token will be used, if undefined, the token from the environment variable
export default function createClient(options: {
baseUrl?: string;
token?: string | null | undefined;
pranjaldotdev avatar
pushover
@pranjaldotdev
// Send a pushover message.
Script
// Send a pushover message.
// token, user, and other opts are as specified at https://pushover.net/api
export default async function pushover({
token,
user,