Beautiful, AI-native markdown IDE and LLM wiki
TypeScript 2nd-brainagent-skillsclaudecodexcompany-braindocsknowledge-knowledge-baseknowledge-managementllmllm-wikillm-wiki-karpathymarkdownmarkdown-editormdmdxnotespkmsecond-brainskills
import { getLLMText } from '@/lib/get-llm-text';
import { markdownResponse } from '@/lib/markdown-response';
import { source } from '@/lib/source';
export const revalidate = false;
export async function GET() {
const pages = source.getPages();
const scanned = await Promise.all(pages.map((page) => getLLMText(page)));
return markdownResponse(scanned.join('\n\n'));
}