Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/image-url.jpg%20%22Image%20title%22?q=api&page=1091&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 11753 results for "api"(2172ms)

evaluationFromValExampleREADME.md3 matches

@tmcwβ€’Updated 1 year ago
1# Val Town API: unauthenticated eval
2
3This val runs a val by using the [Val Town API](https://docs.val.town/api/reference) and returns the result of its evaluation.
4
5Migrated from folder: Val_Town_API/evaluationFromValExample

valTownApiExampleValREADME.md3 matches

@tmcwβ€’Updated 1 year ago
1# Val Town API: Find a val by handle and name
2
3This val fetches itself via the [Val Town API](https://docs.val.town/api/reference)! Weird, right?
4
5Migrated from folder: Val_Town_API/valTownApiExampleVal

valTownApiExampleUserREADME.md3 matches

@tmcwβ€’Updated 1 year ago
1# Val Town API: Find a user by their handle
2
3This demonstrates how to use the [Val Town API](https://docs.val.town/api/reference) to find a user.
4
5Migrated from folder: Val_Town_API/valTownApiExampleUser

valTownApiExampleSearchREADME.md3 matches

@tmcwβ€’Updated 1 year ago
1# Val Town API Search
2
3This demonstrates how to use the [Val Town API](https://docs.val.town/api/reference) to search for vals that mention "lodash".
4
5Migrated from folder: Val_Town_API/valTownApiExampleSearch

sha256ExampleREADME.md1 match

@tmcwβ€’Updated 1 year ago
1# Creating a SHA-256 hash of a string
2
3This example shows how you can hash a string using SHA-256 without using any NPM modules – just web standards! Adapted from an [example on MDN](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest).
4
5Migrated from folder: Web_standards/sha256Example

litExampleREADME.md1 match

@tmcwβ€’Updated 1 year ago
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!

qsExampleREADME.md1 match

@tmcwβ€’Updated 1 year ago
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

luxonExampleREADME.md1 match

@tmcwβ€’Updated 1 year ago
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

musicianApiREADME.md1 match

@maclongβ€’Updated 1 year ago
1Migrated from folder: Musician/musicianApi

TanaAPIHelperREADME.md1 match

@nbbaierβ€’Updated 1 year ago
1Migrated from folder: projects/tana/TanaAPIHelper

new-val-api-21 file match

@shouserβ€’Updated 2 mins ago
This is an example of using the API to create a val.

gpt-image-test

@CaptainJackβ€’Updated 16 hours ago
ζ΅‹θ―• gpt image ηš„δΈεŒ api θƒ½ε¦ζ»‘θΆ³ε›Ύη‰‡η”Ÿζˆθ¦ζ±‚
snartapi
papimark21