Back to packages list

Vals using ky

Description from the NPM package:
Tiny and elegant HTTP client based on the browser Fetch API
vladimyr avatar
googleFeelingLucky
@vladimyr
http
Google Feeling Lucky auto-redirect !lucky DuckDuckGo !Bangs offer the following shortcuts for Google's Feeling Lucky (going straight to the first result) search option: !fl - http://www.google.com/search?btnI&q={{{s}}} !gifl - http://google.com/search?btnI=1&q={{{s}}} !gluck - http://www.google.com/search?q={{{s}}}&btnI !lucky - http://www.google.com/search?q={{{s}}}&btnI Unfortunately, they don't work anymore due to redirect notices that get shown. This service enables you to skip redirect notice by altering your search from the original query e.g.: https://www.google.com/search?q=site:developer.mozilla.org+Object.hasOwn&btnI To the modified one made against this val's HTTP endpoint: https://vladimyr-googlefeelinglucky.web.val.run/?q=site:developer.mozilla.org+Object.hasOwn Additionally, you can define custom search shortcut inside your browser to allow a local bang-like experience: Name: Google Feeling Lucky Shortcut: !lucky URL with %s in place of query: https://vladimyr-googlefeelinglucky.web.val.run/?q=%s
vladimyr avatar
jwkToDidKey_tests
@vladimyr
script
// @see: https://w3c-ccg.github.io/did-method-key/#example-5
vladimyr avatar
jsrApi
@vladimyr
script
// SPDX-License-Identifier: 0BSD
vladimyr avatar
jsr
@vladimyr
http
Try on Val Town This service enables quick generation of new val with specified jsr package. Package authors can provide custom examples by setting either: valtownExample property of jsr.json / deno.json to contain example js/ts code valtownExampleFilename property of jsr.json / deno.json to point to the file with example js/ts code If no example is found val will be created with the default snippet, using @luca/flag as an example : import * as flag from "jsr:@luca/flag"; Go ahead ↗️ try it (on Val Town) ! 🎉 Additionally, the service supports ?code=<base64code> query param that allows overriding extracted/generated example code. For example one might want to override @luca/flag 's snippet with: import { printProgress } from "jsr:@luca/flag@1"; printProgress(); In order to do so first you need to convert it to base64: $ printf 'import { printProgress } from "jsr:@luca/flag@1";\n\nprintProgress();' | base64 -w0 # ==> aW1wb3J0IHsgcHJpbnRQcm9ncmVzcyB9IGZyb20gImpzcjpAbHVjYS9mbGFnQDEiOwoKcHJpbnRQcm9ncmVzcygpOw== Then you simply construct the URL by setting the returned value to code query param: ↗️ https://vladimyr-jsr.web.val.run?code=aW1wb3J0IHsgcH... Usage https://vladimyr-jsr.web.val.run/<scope>/<name>[@<version>] https://vladimyr-jsr.web.val.run?code=<base64code> Example https://vladimyr-jsr.web.val.run/@luca/flag https://vladimyr-jsr.web.val.run/@std/assert@0.220.1 https://vladimyr-jsr.web.val.run/@mark/html@latest
vladimyr avatar
fetchNewestVals
@vladimyr
script
// SPDX-License-Identifier: 0BSD
vladimyr avatar
fetch_example
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
dubShortenURL
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
dataURL
@vladimyr
script
// SPDX-License-Identifier: 0BSD
vladimyr avatar
fetchVal
@vladimyr
script
// SPDX-License-Identifier: 0BSD
vladimyr avatar
jsr2gh
@vladimyr
http
jsr2gh Redirect to jsr package's GitHub repository page, like vladimyr-jsr2gh.web.val.run/@luca/flag Usage https://vladimyr-jsr2gh.web.val.run/<scope>/<name> Example https://vladimyr-jsr2gh.web.val.run/@luca/flag https://vladimyr-jsr2gh.web.val.run/@std/assert
vladimyr avatar
fetchBlueskyPost
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
libbluesky
@vladimyr
script
// @see: https://docs.bsky.app/docs/api/com-atproto-identity-resolve-handle
vladimyr avatar
keyDidResolver
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
crates_io
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr
vladimyr avatar
npmRegistry
@vladimyr
script
An interactive, runnable TypeScript val by vladimyr