Avatar

jamiedubs

i move away from the mic to breathe in
Joined March 27, 2023
Public vals
20
jamiedubs avatar
jamiedubs
mediainfo
HTTP
Fetches details about media files (images, video, audio, etc) using Mediainfo.js . e.g. codecs used, duration, file sizes, ID3 tags, etc. Check out https://jamiedubs-mediainfo.web.val.run/ for a little interactive example Beta! API response not 100% stable, I might move things around still. Especially this summary field idea
1
jamiedubs avatar
jamiedubs
rssSummarizerTest
Script
uses this glif to summarize a given feed using code. planning to use this in other stuff
0
jamiedubs avatar
jamiedubs
glifInventory
HTTP
messing with making a little inventory RAG system to work with https://glif.app - so glifs can create items for users, persist it into an inventory, and access it later see also its currency/number-oriented cousin, glifbux: https://www.val.town/v/jamiedubs/glifbux
0
jamiedubs avatar
jamiedubs
bricklesGame
HTTP
@jsxImportSource https://esm.sh/react
0
jamiedubs avatar
jamiedubs
randomCardImage
HTTP
An interactive, runnable TypeScript val by jamiedubs
0
jamiedubs avatar
jamiedubs
alchemyClient
Script
simple wrapper for Alchemy's blockchain APIs , for fetching blockchain data. Ethereum, Solana, etc uses my personal ALCHEMY_API_KEY, I forget if you can use it too or not! get your own if it doesn't work used by some of my other vals: https://www.val.town/v/jamiedubs/nftMetadata etc
0
jamiedubs avatar
jamiedubs
runGlif
Script
glif API mini-SDK make generative magical AI things set your GLIF_API_TOKEN in your own ENV, or you'll hit rate limits: https://glif.app/settings/api-tokens call from your val like: import { runGlif } from "https://esm.town/v/jamiedubs/runGlif"; const json = await runGlif({ id: "cluu91eda000cv8jd675qsrby", inputs: ["hello", "world"] }); console.log(json);
0
jamiedubs avatar
jamiedubs
roastCast
HTTP
Farcaster action that summons a https://glif.app bot to roast the cast, using glif AI magic #farcaster #glif
0
jamiedubs avatar
jamiedubs
syntheticLoot
HTTP
dark greetings cryptoadventurers. This val will print the contents of a given Ethereum wallet's Synthetic Loot , which is procedurally generated from your wallet address. To look at your sLoot in a browser with some fun pixel art, check out timshel's Synthetic Loot Viewer to use this endpoint, pass ?address=0x... e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00 the default response type is JSON. You can also get a simple list of the loot bag contents using ?format=text . e.g. https://jamiedubs-syntheticloot.web.val.run/?account=0xf296178d553c8ec21a2fbd2c5dda8ca9ac905a00&format=text
0
jamiedubs avatar
jamiedubs
sleeper
HTTP
// a very slow and sleepy function
0
jamiedubs avatar
jamiedubs
wikipediaToday
HTTP
fetch the contents of the Wikipedia "On this day in history" page. defaults to JSON output, but specify ?format=text or ?format=html for other outputs. e.g. https://jamiedubs-wikipediatoday.web.val.run/?format=json https://jamiedubs-wikipediatoday.web.val.run/?format=text https://jamiedubs-wikipediatoday.web.val.run/?format=html #wikipedia
0
jamiedubs avatar
jamiedubs
dataDemo
HTTP
// hello i am a simple demo of using GET/POST + Content-Type header to handle things differently
0
jamiedubs avatar
jamiedubs
randomMediaUrl
HTTP
// select random record from "files" based on format
0
jamiedubs avatar
jamiedubs
databin
HTTP
a super simple JSON setter/getter using valtown blobs. use GET to fetch it, use POST to set it. expects the inbound data to be JSON for simplicity. use ?key=foobar to specify different storage locations. set: curl -s -X POST -d '{"lol": "wut"}' https://jamiedubs-databin.web.val.run?key=foobar get: curl -s https://jamiedubs-databin.web.val.run?key=foobar # {"lol":"wut"}
0
jamiedubs avatar
jamiedubs
nftImage
HTTP
returns image URL (and only image URL) for a given NFT contract + tokenId. Uses Alchemy's NFT API to this use val, copy the Web API endpoint and use ?query params to specify the contract address and tokenId you want: https://jamiedubs-nftimage.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666 - FIXME valtown is turning & into "&", you need to fix it. even like this broken plain text by default. for JSON add &format=json , for an <img> tag use &format=html for other NFT metadata: https://www.val.town/v/jamiedubs.nftMetadata
1
jamiedubs avatar
jamiedubs
nftMetadata
HTTP
use by copying web API endpoint and appending "?contractAddress=...&tokenId..." - here's an example: https://jamiedubs-nftmetadata.web.val.run/?contractAddress=0x3769c5700Da07Fe5b8eee86be97e061F961Ae340&tokenId=666 uses Alchemy for indexed NFT data, via my other jamiedubs/alchemyClient val plus it's using my personal API key. don't abuse this or I'll disable it! yeesh
1