Thanks for your interest in contributing! This guide will help you get started.
git clone https://github.com/continuedev/next-geo.git
cd next-geo
npm install| Command | Description |
|---|---|
npm test |
Run the test suite |
npm run build |
Build the package |
npm run tsc:check |
Type-check without emitting |
src/
index.ts # Public API — isLlmRequest, detectLlmSignal
detect.ts # LLM detection logic (Accept, User-Agent, .md suffix)
middleware.ts # Next.js middleware factory
handler.ts # Route handler factory (page.md lookup + auto-conversion)
config.ts # withGeo() Next.js config wrapper
llms-txt.ts # /llms.txt and /llms-full.txt handlers
discovery.ts # Link header utilities
html-to-markdown.ts # Turndown-based HTML → markdown converter
skill/
SKILL.md # Agent skill for setting up next-geo in a project
check/
geo.md # PR check for page.md consistency
- Fork and branch — Create a feature branch from
main. - Write tests — Add or update tests in
__tests__/for any behavior changes. - Follow conventions — Use Conventional Commits:
feat:for new features (triggers minor release)fix:for bug fixes (triggers patch release)docs:for documentation-only changestest:for test-only changesBREAKING CHANGE:in the commit body for breaking changes (triggers major release)
- Check your work:
npm run tsc:check npm test npm run build
- Open a PR against
mainwith a clear description of the change. - Ensure all checks pass (tests, type-check, build).
- A maintainer will review your PR — please be patient, we'll get to it.
Use the bug report template to file issues.