2
3// Send a pushover message.
4// token, user, and other opts are as specified at https://pushover.net/api
5export default async function pushover({
6 token,
16 url: string;
17}) {
18 return await fetch("https://api.pushover.net/1/messages.json", {
19 method: "POST",
20 headers: {
18- *scraper* Goes to bytes.dev and scrapes latest published newsletter
19- *inserter* Insert it to SQLite if this newsletter already not exists
20- *notifier* Uses Pushover API to send ios mobile notifications
21
22### Pushover notifications
4async function fetchRandomJoke() {
5 const response = await fetch(
6 "https://official-joke-api.appspot.com/random_joke",
7 );
8 return response.json();
2 * Simple, free webhook to start using WhatsApp Platform.
3 * Handles GET request for verification, and POST request for notifications.
4 * Meta example: https://glitch.com/edit/#!/whatsapp-cloud-api-echo-bot
5 *
6 * Setup:
9 * 2. Set your env variable `WHATSAPP_WEBHOOK_VERIFY_TOKEN`
10 * Set env variables in val: https://docs.val.town/reference/environment-variables/
11 * hub.verify_token value: https://developers.facebook.com/docs/graph-api/webhooks/getting-started
12 *
13 * Note:
1// SPDX-License-Identifier: 0BSD
2import { getConfig } from "https://esm.town/v/vladimyr/jsrApi";
3import { newValURL } from "https://esm.town/v/vladimyr/newValURL";
4import { type HtmlProcessor, serveReadme } from "https://esm.town/v/vladimyr/serveReadme";
14 "redirect": req.redirect,
15 "searchParams": Object.fromEntries(searchParams.entries()),
16 "docs": "https://developer.mozilla.org/en-US/docs/Web/API/Request",
17 });
18};
1// SPDX-License-Identifier: 0BSD
2import * as jsrApi from "https://esm.town/v/vladimyr/jsrApi";
3
4const latest = await jsrApi.getLatestVersion("valibot", "valibot");
5console.log(latest);
6// ==> >=0.30.0
7
8const manifest = await jsrApi.getManifest("@valibot", "valibot", "0.30.0");
9console.log(manifest["/jsr.json"].checksum);
10// ==> sha256-d76f30c31d6700f06ff4bc0e1cf508de87e5bad348d75dbadb6376fee4359d90
11
12// @see: https://jsr.io/@valibot/valibot/0.30.0/jsr.json
13const pkgConfig = await jsrApi.getConfig("valibot", "valibot", "0.30.0");
14console.log(pkgConfig);
15// ==> { name: "@valibot/valibot", version: "0.30.0" }
20{
21 // @see: https://jsr.io/@mark/html/1.0.0/deno.json
22 const pkgConfig = await jsrApi.getConfig("mark", "html", "1.0.0");
23 console.log(pkgConfig);
24 // ==> { name: "@mark/html", version: "1.0.0" }
13];
14
15// @see: https://jsr.io/docs/api#package-metadata
16const PkgMetaSchema = v.object({
17 scope: v.string(),
20});
21
22// @see: https://jsr.io/docs/api#package-version-metadata
23const PkgVerMetaSchema = v.object({
24 manifest: v.record(
1Migrated from folder: jsr/jsrApi_example
1Migrated from folder: jsr/jsrApi