You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=57&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 19729 results for "api"(1578ms)
114} catch (error) {
115console.error("Error caching plant:", error);
116// Don't throw error - caching failure shouldn't break the API
117}
118}
1# Text Email API
23A simple API endpoint that receives text and emails it directly to configured recipients.
45## Recipients
67The API sends emails directly to:
8- sunny@getlightswitch.com
9- sunny.p.israni@gmail.com
30```
3132## API Endpoints
3334### POST /api/text
35Send text content via email to all configured recipients.
3652```
5354### GET /api/text
55Get email service status and recipient information.
5677### Send text using curl:
78```bash
79curl -X POST https://your-val-url/api/text \
80-H "Content-Type: application/json" \
81-d '{"text": "Hello, this is my message!"}'
84### Check service status:
85```bash
86curl https://your-val-url/api/text
87```
8889## Error Handling
9091The API returns appropriate HTTP status codes:
92- 200: Success (email sent)
93- 400: Bad request (missing or invalid text)
991001. **Update email recipients** in the code (replace the example emails)
1012. **Test the API** with a sample message
1023. **Check recipient inboxes** to confirm delivery
103