andreterron avatar
andreterron
email_docs
Script
Forked from std/email
0
pomdtr avatar
pomdtr
api
Script
An interactive, runnable TypeScript val by pomdtr
0
pomdtr avatar
pomdtr
playground
Script
Forked from easrng/playground
0
easrng avatar
easrng
user
Script
Forked from neverstew/user
0
easrng avatar
easrng
kyselyVtDialect
Script
Kysely Dialect for @std/sqlite Caveats It doesn't support transactions, there's no real way to do them on top of @std/sqlite AFAICT. Usage import { VtDialect } from "https://esm.town/v/easrng/kyselyVtDialect"; import { Kysely } from "npm:kysely"; const db = new Kysely({ dialect: new VtDialect(), }); Demo See @easrng/kyselyVtDemo, which uses this along with @easrng/kyselyVtTypes to generate schema types.
1
std avatar
std
fetch
Script
Proxied fetch - Docs ↗ The Javascript Fetch API is directly available within a Val. However sometimes fetch calls are blocked by the receiving server for using particular IP addresses. Additionally, network blips or unreliable web services may lead to failures if not handled properly. The Val Town standard library contains an alternative version, std/fetch , that wraps the JavaScript Fetch API to provide additional functionality. The fetch function from std/fetch reroutes requests using a proxy vendor so that requests obtain different IP addresses. It also automatically retries failed requests several times. Note that using std/fetch will be significantly slower than directly calling the Javascript Fetch API due to extra network hops. Usage After importing std/fetch , the fetch method is used with the same signature as the Javascript Fetch API. import { fetch } from "https://esm.town/v/std/fetch"; let result = await fetch("https://api64.ipify.org?format=json"); let json = await result.json(); console.log(json.ip); If you run the above code multiple times, you'll see that it returns different IP addresses, because std/fetch uses proxies so that each request is made from a different IP address. 📝 Edit docs
2
std avatar
std
sqlite
Script
SQLite - Docs ↗ SQLite is a lightweight, standard database. Every Val Town account comes with its own private SQLite database that is accessible from any of your vals via std/sqlite . Val Town SQLite is powered by Turso . Usage Migrations ORMs We recommend these admin data viewers for managing your database – viewing or editing data or your database table schema: Outerbase Studio (recommended) - formely known as LibSQL Studio – see instructions here SQLite Explorer (built in Val Town) Limits You can store 10mb on the free plan and up to 1gb on the paid plan. Contact us if you need more space. 📝 Edit docs
0
nicosql avatar
nicosql
harshAquamarineRooster
Script
Forked from stevekrouse/sqlite
0
oioioi avatar
oioioi
sqlite
Script
Forked from stevekrouse/sqlite
0
roadlabs avatar
roadlabs
openaiproxy
HTTP
Forked from std/openaiproxy
0
weaverwhale avatar
weaverwhale
api
Script
Forked from pomdtr/api
0
bons avatar
bons
blob
Script
Forked from std/blob
0
krehl avatar
krehl
sqlite
Script
Forked from stevekrouse/sqlite
0
vladimyr avatar
vladimyr
blob
Script
Forked from std/blob
0
toowired avatar
toowired
sqlite
Script
Forked from stevekrouse/sqlite
0
heaversm avatar
heaversm
sqlite
Script
Forked from stevekrouse/sqlite
0
Updated: January 24, 2024