Experimental podcast feed validator, supporting all of the new podcast namespace tags
Public version available at: https://validator.livewire.io/
- Ensure vscode is installed
- Ensure Deno is installed
- Ensure the Deno vscode extension is installed (from vscode -> Extensions)
- There are two vscode projects:
code validator-appto work on the client-side javascript appcode validator-workerto work on the cli, server (Cloudflare Worker), or common validation logic
- Run the standard
deno testto run unit tests - Install the
validatorcli tool- (from the
validator-workerdir)deno install --name validator -Af --unstable cli.ts
- (from the
- Run
validator buildto rebuild/embed the client app on any changes - Run
validator validate <url>to quickly test validation rules on the command-line - Use
denoflare serveto run the server on your local machine- Ensure denoflare is installed
- Run without config (from the
validator-workerdir):denoflare serve validator_worker.ts --watch-include static - Or using a .denoflare config file (example below):
denoflare serve validator-local --watch-include static - See the config below for the optional worker environment variable bindings to configure secrets
{ // This file supports comments and trailing commas! "$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.5.6/common/config.schema.json", "scripts": { "validator-local": { "path": "/path/to/livewire-validator/validator-worker/validator_worker.ts", "bindings": { // optional: displayed in the UI as the app version "version": { "value": "local" }, // optional: needed for search "piCredentials": { "value": "<api-key>:<api-secret>" }, // optional: needed for twitter api calls "twitterCredentials": { "value": "bearer:<bearer-token>" }, // optional: needed for mastodon login to reply "origin" : { "value": "http://localhost:8820" }, "mastodonClientName": { "value": "livewire-validator (local dev)" }, "mastodonClientUrl": { "value": "https://github.com/skymethod/livewire-validator" }, "storageNamespace": { "doNamespace": "local:StorageDO:storage=webstorage:container=validator-local" }, }, // optional: to run on a specific local port (default 8080) "localPort": 8820, }, } }