{"id":50954740,"url":"https://github.com/dgr8akki/nextjs-llms-plugin","last_synced_at":"2026-06-18T05:02:16.591Z","repository":{"id":363433391,"uuid":"1263342553","full_name":"dgr8akki/nextjs-llms-plugin","owner":"dgr8akki","description":"Generate llms.txt and llms-full.txt for Next.js apps during build.","archived":false,"fork":false,"pushed_at":"2026-06-08T22:06:39.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T23:21:59.154Z","etag":null,"topics":["llms-txt","nextjs","npm-package","typescript","webpack"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dgr8akki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"Agents.md","dco":null,"cla":null}},"created_at":"2026-06-08T21:33:04.000Z","updated_at":"2026-06-08T22:06:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dgr8akki/nextjs-llms-plugin","commit_stats":null,"previous_names":["dgr8akki/nextjs-llms-plugin"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dgr8akki/nextjs-llms-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgr8akki%2Fnextjs-llms-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgr8akki%2Fnextjs-llms-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgr8akki%2Fnextjs-llms-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgr8akki%2Fnextjs-llms-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dgr8akki","download_url":"https://codeload.github.com/dgr8akki/nextjs-llms-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dgr8akki%2Fnextjs-llms-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34476728,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llms-txt","nextjs","npm-package","typescript","webpack"],"created_at":"2026-06-18T05:02:15.833Z","updated_at":"2026-06-18T05:02:16.578Z","avatar_url":"https://github.com/dgr8akki.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nextjs-llms-plugin\n\nGenerate `llms.txt` and `llms-full.txt` for a Next.js app during compilation.\n\n## Install\n\n```sh\nnpm install nextjs-llms-plugin\n```\n\n## Usage\n\n```js\n// next.config.js\nconst { withLLMsTxt } = require('nextjs-llms-plugin');\n\nmodule.exports = withLLMsTxt(\n  {\n    reactStrictMode: true,\n  },\n  {\n    title: 'Acme Docs',\n    description: 'Documentation and product pages for Acme.',\n    sectionMapping: {\n      '/docs': 'Documentation',\n      '/api': 'API Reference',\n    },\n    excludeRoutes: ['/admin/**'],\n  },\n);\n```\n\nThe plugin scans `app`, `src/app`, `pages`, and `src/pages`, then writes:\n\n- `public/llms.txt`\n- `public/llms-full.txt`\n\n## Options\n\n```ts\ninterface LLMsTxtOptions {\n  title?: string;\n  description?: string;\n  details?: string | string[];\n  excludeRoutes?: string[];\n  includeRoutes?: Array\u003c{\n    title: string;\n    url: string;\n    description?: string;\n    section?: string;\n    optional?: boolean;\n    content?: string;\n  }\u003e;\n  sectionMapping?: Record\u003cstring, string\u003e;\n  outputDir?: string;\n  projectDir?: string;\n  generateFull?: boolean;\n  filename?: string;\n  fullFilename?: string;\n}\n```\n\nStatic metadata is read from Markdown/MDX frontmatter and common App Router exports:\n\n```ts\nexport const metadata = {\n  title: 'Getting started',\n  description: 'Install and configure the project.',\n};\n```\n\n## Programmatic generation\n\n```ts\nimport { generateLLMsTxt } from 'nextjs-llms-plugin';\n\nawait generateLLMsTxt({\n  projectDir: process.cwd(),\n  title: 'Acme',\n  description: 'Acme public site.',\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgr8akki%2Fnextjs-llms-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgr8akki%2Fnextjs-llms-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgr8akki%2Fnextjs-llms-plugin/lists"}