Back to APIs list

db API examples & templates

Use these vals as a playground to view and fork db API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
templateRedditAlert
charmainetest
templateRedditAlert
Remix of: valdottown/templateRedditAlert
Cron
wholeFoodsRSS
Glench
wholeFoodsRSS
"regularPrice": 5.69, "salePrice": 4.19, "incrementalSalePrice": 3.77, "saleStartDate": "2023-03-01T00:00:00Z", "saleEndDate": "2023-04-04T23:59:59Z", "name": "Fairtrade Baby Hemp Unscented Soap Bar, 5 oz", "slug": "dr-bronners-fairtrade-baby-hemp-unscented-soap-bar-5-oz-b008588sm6", "brand": "Dr. Bronner's", "imageThumbnail": "https://m.media-amazon.com/images/S/assets.wholefoodsmarket.com/PIE/product/6351e34e671f8460db2d6d4b_0018787782057-glamor-front-2022-09-20t17-55-13-iphone-x-quality-90-1-32-2-user-5984ad42a967f880524de2c4-hoqo-666183.jpg", "store": 10091, "isLocal": false
HTTP
uploadByURL
stevedylandev
uploadByURL
An interactive, runnable TypeScript val by stevedylandev
Script
docFeedbackForm
stevekrouse
docFeedbackForm
Remix of: stevekrouse/form
HTTP
redditAlert
charmaine
redditAlert
Remix of: valdottown/templateRedditAlert
Cron
monacoEditor
yawnxyz
monacoEditor
An interactive, runnable TypeScript val by yawnxyz
HTTP
grandBlackReindeer
Azazil
grandBlackReindeer
An interactive, runnable TypeScript val by Azazil
HTTP
educatedPurpleMagpie
uncleojor
educatedPurpleMagpie
@jsxImportSource https://esm.sh/react@18.2.0
HTTP
handleSavePageForm
rwev
handleSavePageForm
An interactive, runnable TypeScript val by rwev
HTTP
valle_tmp_99448354664500286321490293968854
janpaul123
valle_tmp_99448354664500286321490293968854
// This approach will create a Wordle game using vanilla JavaScript, HTML, and CSS.
HTTP
btcPriceAlert
omaismoe
btcPriceAlert
Remix of: stevekrouse/btcPriceAlert
Cron
loyalOrangeCanidae
vishu44
loyalOrangeCanidae
Remix of: vishu44/reverentAquaCuckoo
HTTP
cerebras_coder
gokulnpc
cerebras_coder
Remix of: stevekrouse/cerebras_coder
HTTP
cors_example
stevekrouse
cors_example
CORS issues are the bane of frontend engineers. In Val Town, if you don't customize any CORS headers, we add these defaults: Access-Control-Allow-Origin: "*" Access-Control-Allow-Methods: "GET,HEAD,PUT,PATCH,POST,DELETE" You can override them if you wish to disallow CORS. This val is a client-side-rendered React app that makes requests to @stevekrouse/cors_example_backend. The backend is in a different val because CORS applies to requests on different domains. The backend has examples of the default permissive CORS behavior and disabled CORS.
HTTP
CerebrasCoder
kvrt
CerebrasCoder
Remix of: stevekrouse/cerebras_coder
HTTP
create_a_tool
ajax
create_a_tool
Remix of: ajax/assess_danger
HTTP