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/$%7BsvgDataUrl%7D?q=api&page=23&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 19255 results for "api"(2493ms)

api_ianmenethil_comresHeaders.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\res.headers.ts
2
3import { Context, Next } from "hono";

api_ianmenethil_comreqQuery.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\req.query.ts
2import { Context, Next } from "hono";
3import { validator } from "hono/validator";

api_ianmenethil_comreqInputFilter.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\req.input.filter.ts
2import { Context, Next } from "hono";
3import { HTTPException } from "hono/http-exception";

api_ianmenethil_comreqHeaders.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\req.headers.ts
2import { Context, Next } from "hono";
3import { secureHeaders } from "hono/secure-headers";

api_ianmenethil_comreqBody.ts4 matches

@ianmenethil•Updated 19 hours ago
5 * Provides type-safe validation for login, workflow, hash, and configuration requests.
6 *
7 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\56.Validation.md} Hono Validation
8 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
9 * @author Val.town Server Infrastructure Team
10 * @version 2.0.0
99 * @returns HTTPException - Formatted 400 Bad Request exception with error details
100 *
101 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
102 */
103const createValidationError = (errors: ValidationError[]): HTTPException => {
127 * @throws HTTPException - 400 Bad Request with detailed validation errors if invalid
128 *
129 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\56.Validation.md} Hono Validation
130 */
131export const validateLogin = validator(

api_ianmenethil_comrateLimiter.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\rate.limiter.ts
2import { Context, Next } from "hono";
3import { HTTPException } from "hono/http-exception";

api_ianmenethil_comlogging.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\logging.ts
2
3import { APP_CONFIG } from "../core/appConfig.ts";

api_ianmenethil_comexceptionHandler.ts5 matches

@ianmenethil•Updated 19 hours ago
6 * Includes error building utilities for middleware use.
7 *
8 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
9 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\82.Context.md} Hono Context API
10 * @author Val.town Server Infrastructure Team
11 * @version 2.1.0
101 * @returns void - Configures the error handler on the provided app instance
102 *
103 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
104 */
105export const setupErrorHandler = (app: HonoErrorApp) => {
179 * @throws HTTPException - Always throws with provided status and formatted message
180 *
181 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
182 */
183export const throwHTTPError = (
223 * @throws HTTPException - Converts all errors to HTTPException format for global handler
224 *
225 * @see {@link file://F:\secure-web-guardian-api\.docs\Hono_documentation\83.Exception.md} Hono Exception Handling
226 */
227export const errorHandlerMiddleware = async (

api_ianmenethil_comcsrf.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\csrf.ts
2
3import { Context, Next } from "hono";

api_ianmenethil_combrowserChain.ts1 match

@ianmenethil•Updated 19 hours ago
1// F:\zApps\valtown.servers\APIServer\src\middleware\browserChain.ts
2/**
3 * Browser-to-backend middleware chain
Plantfo

Plantfo8 file matches

@Llad•Updated 2 hours ago
API for AI plant info

api_ianmenethil_com133 file matches

@ianmenethil•Updated 10 hours ago
apiry
snartapi