You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=react&page=22&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=react
Returns an array of strings in format "username" or "username/projectName"
Found 16978 results for "react"(2587ms)
170- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
171- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
172- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
173- Ensure all React dependencies and sub-dependencies are pinned to the same version
174- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
175257- Always run table creation before querying
2582593. **React Configuration:**
260- All React dependencies must be pinned to 18.2.0
261- Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
262- Rendering issues often come from mismatched React versions
2632644. **File Handling:**
180- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
181- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
182- **React Configuration:** When using React libraries, pin versions with `?deps=react@18.2.0,react-dom@18.2.0` and start the file with `/** @jsxImportSource https://esm.sh/react@18.2.0 */`
183- Ensure all React dependencies and sub-dependencies are pinned to the same version
184- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
185266- Always run table creation before querying
2672683. **React Configuration:**
269- All React dependencies must be pinned to 18.2.0
270- Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
271- Rendering issues often come from mismatched React versions
2722734. **File Handling:**