You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=63&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 19714 results for "api"(1488ms)
1@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
23:root {
1516export interface AppConfig {
17anthropicApiKey: string;
18mcpServers: MCPServerConfig[];
19selectedModel: string;
40export default function App() {
41const [config, setConfig] = useState<AppConfig>({
42anthropicApiKey: "",
43mcpServers: [],
44selectedModel: "claude-3-5-sonnet-20241022",
55// Load config from localStorage on mount
56useEffect(() => {
57const savedApiKey = localStorage.getItem("anthropic_api_key");
58const savedMcpServers = localStorage.getItem("mcp_servers");
59const savedMessages = localStorage.getItem("chat_messages");
64let mcpServers = savedMcpServers ? JSON.parse(savedMcpServers) : DEFAULT_MCP_SERVERS;
65setConfig({
66anthropicApiKey: savedApiKey || "",
67mcpServers: mcpServers,
68selectedModel: savedModel || "claude-3-5-sonnet-20241022",
81}
8283// Show settings if no API key is configured
84if (!savedApiKey) {
85setShowSettings(true);
86}
89// Save config to localStorage when it changes
90useEffect(() => {
91if (config.anthropicApiKey) {
92localStorage.setItem("anthropic_api_key", config.anthropicApiKey);
93}
94localStorage.setItem("mcp_servers", config.mcpServers?.length ? JSON.stringify(config.mcpServers) : "");