You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=38&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 19304 results for "api"(1086ms)
50<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>TalentFlow AI</title>
51<style>
52@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&family=Inter:wght@400;500;700&display=swap');
53@keyframes spin { to { transform: rotate(360deg); } }
54@keyframes slide-in-bounce { 0% { opacity: 0; transform: translateY(30px) scale(0.95); } 60% { opacity: 1; transform: translateY(-10px) scale(1.05); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
181<script>
182(function() {
183const API_URL = '${sourceUrl}';
184const STORE_KEYS = { jobs: 'talentflow_jobs_v1', candidates: 'talentflow_candidates_v1', theme: 'talentflow_theme_v1' };
185let jobOpenings = [], candidates = [], activeJobId = 'job_sourced', conversationHistory = [];
343renderChatLog(); input.value = '';
344try {
345const res = await fetch(\`\${API_URL}?action=chat\`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ messages: conversationHistory.slice(0, -1), candidates, jobOpenings }) });
346const data = await res.json();
347if (!res.ok || data.error) throw new Error(data.error || 'Server error');
408if (!confirm(\`Run AI screening for \${candidate.name} against the "\${job.title}" role?\`)) return;
409try {
410const res = await fetch(\`\${API_URL}?action=screenCandidate\`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ resumeText: candidate.resumeText, jobDescription: job.descriptionText }) });
411const data = await res.json();
412if (!res.ok) throw new Error(data.error);
450if (!jobDesc) return;
451try {
452const res = await fetch(\`\${API_URL}?action=analyzeJobDescription\`, { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ jobDescription: jobDesc }) });
453const data = await res.json();
454if(!res.ok) throw new Error(data.error);
12// =============================================================================
1314// API endpoint for manual data submission
15app.post("/api/add", async (c) => {
16try {
17const body = await c.req.json();
4849// Test endpoint to verify Notion connection
50app.get("/api/test", async (c) => {
51try {
52const appData = {
6667// Get current configuration for debugging
68app.get("/api/config", (c) => {
69return c.json({
70databaseId: NOTION_CONFIG.DATABASE_ID,
231232try {
233const response = await fetch('/api/add', {
234method: 'POST',
235headers: {