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.
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
janpaul123
valle_tmp_99448354664500286321490293968854
// This approach will create a Wordle game using vanilla JavaScript, HTML, and CSS.
HTTP

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