tanstack.com icon indicating copy to clipboard operation
tanstack.com copied to clipboard

Feature Request: We need llms-full.txt, llms.txt for better llm understanding

Open clar1k opened this issue 1 year ago • 11 comments

clar1k avatar May 05 '25 09:05 clar1k

I have noticed that https://tanstack.com/llms.txt is redirected to https://tanstack.com/llms.txt/latest and it returns a text/html response instead of a plain-text llms.txt. It's the same mechanism as https://tanstack.com/start being redirected to https://tanstack.com/start/latest.

akirak avatar Jun 05 '25 08:06 akirak

+1. for now, you can make LLMs docs of this github with this tool: https://www.gittodoc.com/tanstack/query

rrooddooxx avatar Jun 12 '25 21:06 rrooddooxx

Proposed solution: generate directly from the library config.

function convertToMarkdown(config, libraryName) {
    let markdown = `# ${libraryName} Documentation\n\n`;

    config.sections.forEach(section => {
        markdown += `## ${section.label}\n\n`;
        
        if (section.children && section.children.length > 0) {
            section.children.forEach(child => {
                markdown += `- [${child.label}](/${child.to}.md)\n`;
            });
            markdown += '\n';
        }
        
        if (section.frameworks) {
            section.frameworks.forEach(framework => {
                markdown += `### ${framework.label}\n\n`;
                
                if (framework.children && framework.children.length > 0) {
                    framework.children.forEach(child => {
                        markdown += `- [${child.label}](/${child.to}.md)\n`;
                    });
                    markdown += '\n';
                }
            });
        }
    });

    return markdown;
}

Attached an example of what https://github.com/TanStack/query/blob/main/docs/config.json would turn into

tanstack-query-docs.md

Crazytieguy avatar Jul 20 '25 22:07 Crazytieguy

at least for me https://tanstack.com/llms.txt now is straight up broken.

CaliLuke avatar Sep 13 '25 21:09 CaliLuke

here's a gist to the console log for https://tanstack.com/llms.txt :

https://gist.github.com/luke-stdev001/e7da3da19f56a99686dc994549630d7c

luke-stdev001 avatar Oct 29 '25 21:10 luke-stdev001

Hello, any updates on this?

InvictusNavarchus avatar Nov 02 '25 06:11 InvictusNavarchus

This would really be appreciated

MrHedgehogEsquire avatar Nov 13 '25 15:11 MrHedgehogEsquire

This is really needed.

arielweinberger avatar Dec 09 '25 03:12 arielweinberger

Maybe I’ll work on this tonight On Dec 8, 2025 at 8:12 PM -0700, Ariel Weinberger @.***>, wrote:

arielweinberger left a comment (TanStack/tanstack.com#398) This is really needed. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

tannerlinsley avatar Dec 09 '25 03:12 tannerlinsley

looking forward to using it

CaliLuke avatar Dec 10 '25 01:12 CaliLuke

This is really needed for feeding the LLM(s) which has cut-off knowledge back to 2024.

atiqrahmanx avatar Dec 14 '25 09:12 atiqrahmanx