1# lit
2
3[Lit](https://lit.dev/docs/ssr/server-usage/) is kind of like Google's answer to React: it's a little more reliant on browser APIs like custom elements and the shadow DOM, a little less 'magic', like using JSX.
4
5This is an example of using Lit and rendering it straight to a string, which is something that's recently popular. It works pretty well, right off the bat: Lit provides nice ESM modules and a pretty smooth workflow!
3[QS](https://github.com/ljharb/qs/) is a pretty old module that you probably shouldn't use but it's still pretty heavily used.
4
5In the very very early days there wasn't a built-in way in JavaScript to parse querystrings. So QS was born. But then, Node.js added a `querystring` module built-in. Then, JavaScript introduced [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams), which you should use whenever you want to parse or generate query strings.
6
7Migrated from folder: Modules/qsExample
1# luxon
2
3[Luxon](https://moment.github.io/luxon/#/?id=luxon) is, like [date-fns](https://www.val.town/v/tmcw.datefnsExample), a good option for formatting, parsing, and manipulating dates. It's more of a direct successor to [moment](https://www.val.town/v/tmcw.momentExample) and has a similar method-chain-oriented API rather than function-call oriented API like date-fns.
4
5Migrated from folder: Modules/luxonExample
5## Usage
6
7## API
8
9### Acquire a lock.
1# Get YT Video Information
2
3Given a youtube video url, this val returns a small amount of information about the video: title, channel title, and the description. It uses the Youtube Data API v3, so you need to bring your own API key to get it to work (see [here](https://developers.google.com/youtube/v3/getting-started) about setting up an API key).
1Migrated from folder: Archive/valtownAPIExamples
1Migrated from folder: External_APIs/telegram/telegramWebhook/exampleTelegramMessage
1Migrated from folder: External_APIs/telegram/telegramWebhook/telegramValTownBotWebhookSetup
1The beating heart of the @ValTownBot on Telegram: https://www.val.town/v/stevekrouse.telegram
2
3Migrated from folder: External_APIs/telegram/telegramWebhook/telegramValTownBotWebhook
1# Send an email via [resend](https://resend.com)
2
3Requires a [resend](https://resend.com) API key, which you can get for free.
4
5## Usage
11 subject: "Hello World",
12 html: "Congrats on sending your first email!",
13 apiKey: @stevekrouse.secrets.resend,
14});
15```