You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=react&page=20&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 16946 results for "react"(4237ms)
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **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 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194275- Always run table creation before querying
2762773. **React Configuration:**
278- All React dependencies must be pinned to 18.2.0
279- Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280- Rendering issues often come from mismatched React versions
2812824. **File Handling:**
189- **Imports:** Use `https://esm.sh` for npm and Deno dependencies to ensure compatibility on server and browser
190- **Storage Strategy:** Only use backend storage if explicitly required; prefer simple static client-side sites
191- **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 */`
192- Ensure all React dependencies and sub-dependencies are pinned to the same version
193- **Styling:** Default to using TailwindCSS via `<script src="https://cdn.twind.style" crossorigin></script>` unless otherwise specified
194275- Always run table creation before querying
2762773. **React Configuration:**
278- All React dependencies must be pinned to 18.2.0
279- Always include `@jsxImportSource https://esm.sh/react@18.2.0` at the top of React files
280- Rendering issues often come from mismatched React versions
2812824. **File Handling:**