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/?q=api&page=1021&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 10998 results for "api"(937ms)

minifyHTMLREADME.md1 match

@yieldrayUpdated 1 year ago
6```
7
8As an API:
9
10```ts

pugREADME.md1 match

@wiltUpdated 1 year ago
1# Pug HTML Template Renderer
2This function is equivalent to [`pug.render`](https://pugjs.org/api/reference.html#pugrendersource-options-callback) - it takes a Pug template string and renders it to an HTML string. `import(npm:pug)` doesn't work in Val.Town due to Pug's usage of `new Function`, which is forbidden for security reasons, so this function uses Val.Town's `eval` API instead.
3
4## Example

chatGPTPluginREADME.md2 matches

@stevekrouseUpdated 1 year ago
9![](https://i.imgur.com/lLUAcVc.png)
10
11It would be awesome if it knew how to use other APIs and make `fetch` calls to them, but it has been [failing at that](https://chat.openai.com/share/428183eb-8e6d-4008-b295-f3b0ef2bedd2).
12
13## Limitations
19## Future directions
20
21Once we have more robust APIs to search for existing vals, this plugin could be WAY more valuable! In theory GPT4 could first search for vals to do a certain task and then if it finds one it could then write code based on that val. In practice however, that might require too many steps for poor GPT. We might need to use some sort of agent or langchain thing if we wanted that sort of behavior.
22
23Adding authentication could also enable it to make requests using your secrets and private vals and create new vals for you. However I am dubious that this would actually be practically useful.

express_exampleREADME.md1 match

@tmcwUpdated 1 year ago
1This val is simple, and just a way to test the express API.

myExpressApiREADME.md1 match

@stevekrouseUpdated 1 year ago
1Migrated from folder: Archive/demo/myExpressApi

myApiREADME.md1 match

@mlucconeUpdated 1 year ago
1Migrated from folder: test/myApi

myApiREADME.md1 match

@acmuUpdated 1 year ago
1列表接口
2
3Migrated from folder: Gift/myApi
1Migrated from folder: External_APIs/Matrix/serverlessMatrixEchoBot

myApiREADME.md1 match

@robberfreeUpdated 1 year ago
1Migrated from folder: Archive/myApi

glifJsonREADME.md1 match

@jamiedubsUpdated 1 year ago
11#glif #glifs
12
13Migrated from folder: Glif_API/glifJson

daily-advice-app1 file match

@dcm31Updated 2 days ago
Random advice app using Advice Slip API

gptApiTemplate1 file match

@charmaineUpdated 3 days ago
papimark21
socialdata
Affordable & reliable alternative to Twitter API: ➡️ Access user profiles, tweets, followers & timeline data in real-time ➡️ Monitor profiles with nearly instant alerts for new tweets, follows & profile updates ➡️ Simple integration