Search

Results include substring matches and semantically similar vals. Learn more
beorn avatar
myApi
@beorn
An interactive, runnable TypeScript val by beorn
Script
export function myApi(name) {
return "hi " + name;
avranju avatar
myApi
@avranju
An interactive, runnable TypeScript val by avranju
Script
export function myApi(name) {
return "hi " + name;
jamisonl avatar
darkMagentaFlamingo
@jamisonl
Bot for Cama discord server. To initialize new slash commands, you have to run a separate bit of code. This is for modifying their functionality
HTTP
mmands, you have to run a separate bit of code. This is for modifying their functionality
req.headers.get("X-Signature-Ed25519"),
req.headers.get("X-Signature-Timestamp"),
// Get the user calling this slash command
const userId = await body.member?.user?.id;
if (bank[userId] === undefined) bank[userId] = starting_amount;
dayal avatar
myApi
@dayal
An interactive, runnable TypeScript val by dayal
Script
export function myApi(name) {
return "hi " + name;
sharanbabu avatar
aiTextEditor
@sharanbabu
* This val creates a text editing tool using the Cerebras Llama 70B model. * It includes a command input field with speech-to-text functionality, a collapsible additional context area, * and a rich text editor. The user's command, additional context, and current text are sent to the Cerebras API, * which returns the modified text to be displayed in the editor. * We use React for the UI, the Web Speech API for speech recognition, and the Cerebras API for text processing.
HTTP
* This val creates a text editing tool using the Cerebras Llama 70B model.
* It includes a command input field with speech-to-text functionality, a collapsible additional context area,
* and a rich text editor. The user's command, additional context, and current text are sent to the Cerebras API,
// Server-side code
async function server(request: Request): Promise<Response> {
if (request.method === "POST" && new URL(request.url).pathname === "/process") {
import ReactQuill from "https://esm.sh/react-quill";
function App() {
const [command, setCommand] = useState("");
horatiothomas avatar
dream_interpreter
@horatiothomas
interpret your dream
Cron
export default async function(interval) {
// Sample phrases and words that are likely to appear in dream descriptions
const introPhrases = [
dhvanil avatar
val_tOqCakgwrZ
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_tOqCakgwrZ(req) {
try {
// Execute the code directly and capture its result
troygoode avatar
myApi
@troygoode
An interactive, runnable TypeScript val by troygoode
Script
export function myApi(name) {
return "hi " + name;
MattPayneOrg avatar
myApi
@MattPayneOrg
An interactive, runnable TypeScript val by MattPayneOrg
Script
export function myApi(name) {
return "hi " + name;
rayman avatar
mgsrBotEndpoint
@rayman
// Forked from @mattx.examplebot_endpoint
Express (deprecated)
)).text(),
break;
// Helper function to show the user an ephemeral message how to undo a recorded game.
case "Undo Help":
res.json({
gokulnpc avatar
UI
@gokulnpc
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
HTTP
function ComponentGenerator() {
const ComponentFunc = new Function('React', `return (${code})`)();
placeholder="Describe your React component (e.g., 'A todo list with add and delete functionality')"
function App() {
function client() {
export default async function server(request: Request): Promise<Response> {
const { OpenAI } = await import("https://esm.town/v/std/openai");
const openai = new OpenAI();
const response = await openai.chat.completions.create({
Generate a complete, functional React component based on the user's description.
raulreclique avatar
hello
@raulreclique
An interactive, runnable TypeScript val by raulreclique
Script
export function hello(app) {
return "Apple Sauce";
korede avatar
arenaHelpers
@korede
An interactive, runnable TypeScript val by korede
Script
import { fetch } from "https://esm.town/v/std/fetch";
export const arenaHelpers = (async () => {
async function requestUserWithChannels(userId: number, opts: {
accessToken?: string;
authToken?: string;
console.log("DEBUG", "end fetch user w channels");
return await response.json();
const resolveChannels = async function (arenaUserCreds) {
console.log("DEBUG", "start resolve channels");
try {
schpet avatar
linearStandup
@schpet
daily post to slack listing all the linear issues assigned to you that changed status. thrown together with https://aider.chat/ + sonnet
Cron
name
function getYesterdayDateRange(): { startDate: string; endDate: string } {
const now = new Date();
return { startDate, endDate };
export async function exec(interval: Interval) {
const apiKey = Deno.env.get("LINEAR_API_KEY");
(a, b) => a.lastChangeDate.getTime() - b.lastChangeDate.getTime(),
function determineMatchedContext(
history: any[],
dhvanil avatar
val_zFIaCfbFds
@dhvanil
An interactive, runnable TypeScript val by dhvanil
HTTP
export async function val_zFIaCfbFds(req) {
try {
// Execute the code directly and capture its result