You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=api&page=13&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 17496 results for "api"(2734ms)
1718export default function Settings({ config, onUpdateConfig, onClose }: SettingsProps) {
19const [apiKey, setApiKey] = useState(config.anthropicApiKey);
20const [mcpServers, setMcpServers] = useState<MCPServer[]>(config.mcpServers);
21const [selectedModel, setSelectedModel] = useState(config.selectedModel);
36const handleSave = () => {
37onUpdateConfig({
38anthropicApiKey: apiKey,
39mcpServers: mcpServers,
40selectedModel: selectedModel,
8182try {
83const response = await fetch('/api/test-mcp', {
84method: 'POST',
85headers: {
154</div>
155156{/* API Key Section */}
157<div className="form-group">
158<label className="form-label">Anthropic API Key</label>
159<input
160type="password"
161value={apiKey}
162onChange={(e) => setApiKey(e.target.value)}
163placeholder="sk-ant-..."
164className="form-input"
165/>
166<div className="text-sm text-gray-600 mt-1">
167Get your API key from{" "}
168<a
169href="https://console.anthropic.com/"
1011// Test MCP server endpoint
12app.post("/api/test-mcp", async c => {
13try {
14const { url, authorization_token } = await c.req.json();