Public
HTTP
yawnxyz avatar
yawnxyz
nighthawksChat
HTTP
It's Late. Get a drink. Have a chat. Welcome to Nighthawks. Nighthawks is an experiment in building interesting NPC characters with AI. The system combines large language models, simulates conversations using character sheets, and attempts to build memories based on the conversation. Improvise, have fun. Approach them like you would at a late night diner. Inspired by the Nighthawks painting. Built on a stripped down agent-based memory system.
0
yawnxyz avatar
yawnxyz
aiHonoHtmxAlpineStreamingExample
HTTP
This Frankenstein of an example shows how well Hono, htmx, and Alpine play together. Hono serves the frameworks, API calls, and functions htmx handles ajax requests, and can very powerfully request html and other content to swap out the front-end alpine handles app-like reactivity without having to always resort to server round trips
0
yawnxyz avatar
yawnxyz
nighthawks
Script
This is nighthawks an experimental NPC character generator that remembers details about conversations. Import this into other workflows for now; a UI is coming soon!
0
yawnxyz avatar
yawnxyz
getContentFromUrl
HTTP
getContentFromUrl Use this for summarizers. Combines https://r.jina.ai/URL and markdown.download's Youtube transcription getter to do its best to retrieve content from URLs. https://arstechnica.com/space/2024/06/nasa-indefinitely-delays-return-of-starliner-to-review-propulsion-data https://journals.asm.org/doi/10.1128/iai.00065-23 Usage: https://yawnxyz-getcontentfromurl.web.val.run/https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10187409/ https://yawnxyz-getcontentfromurl.web.val.run/https://www.youtube.com/watch?v=gzsczZnS84Y&ab_channel=PhageDirectory
1
yawnxyz avatar
yawnxyz
stringInferExample
Script
example of inferring params from a prompt: https://x.com/yawnxyz/status/1812922642510586039 putting results in does wonders use an "extraction guide" to direct results
0
yawnxyz avatar
yawnxyz
aiBasicExample
Script
// basic text generation
0
yawnxyz avatar
yawnxyz
SidebarToArchive
HTTP
Sidebar.io Archiver Sidebar's been one of my biggest design resources for the last decade. Since sidebar.io's break announcement this morning (https://sidebar.io/break/) I've set out to mess around with using Val.town to archive sidebar. The Google Sheet can be found here: https://docs.google.com/spreadsheets/d/1RghvMfPTR5xvHMAk1pKYuH2pFYYKOJ6bH0LLkHNZiuc/edit?usp=sharing Initially I was just piping data to Google Sheets but that's slow, wasteful and kind of dumb... instead I just wrapped Hono around the code to provide a download the CSV to browser.
1
yawnxyz avatar
yawnxyz
htmxGenFormsExample
HTTP
An interactive, runnable TypeScript val by yawnxyz
0
yawnxyz avatar
yawnxyz
aiSimpleGroq
Script
// set Deno.env.get("GROQ_API_KEY")
0
yawnxyz avatar
yawnxyz
audioManagerRunner
Script
An interactive, runnable TypeScript val by yawnxyz
0
yawnxyz avatar
yawnxyz
blurbs
HTTP
Blurbs Generator Give it a link (article, Science paper, or a PDF link), get a blurb and a bunch of tags. Built for Capsid & Tail but you can obviously use it for whatever
0
yawnxyz avatar
yawnxyz
dynamicFormInput
HTTP
An interactive, runnable TypeScript val by yawnxyz
0
yawnxyz avatar
yawnxyz
orangeVole
HTTP
An interactive, runnable TypeScript val by yawnxyz
0
kora avatar
kora
aiBasicExample
Script
Forked from yawnxyz/aiBasicExample
0
yawnxyz avatar
yawnxyz
aiImageExample
Script
// Function to handle image and text input using OpenAI's GPT-4-turbo
0
willthereader avatar
willthereader
getContentFromUrl
HTTP
Forked from yawnxyz/getContentFromUrl
0
yawnxyz-ai.web.val.run
October 13, 2024