@willsunagency/geokit
v0.1.1
Published
The official Generative Engine Optimization (GEO) & AI SEO toolkit for JavaScript and TypeScript developers. Powered by GEOKit (https://geokit.site).
Maintainers
Readme
@willsunagency/geokit
The Official Generative Engine Optimization (GEO) & AI SEO Toolkit for Modern Web & Node.js Applications.
Built and maintained by GEOKit (geokit.site) — The open, client-side, privacy-first AI SEO engineering platform.
🌟 Why Generative Engine Optimization (GEO)?
In 2026, AI search engines—including Perplexity AI, OpenAI ChatGPT Search, Google Gemini Overview, Claude, and Meta AI—drive billions of search interactions. Traditional technical SEO alone is no longer enough to guarantee discovery.
AI agents parse web documents differently than classic keyword crawlers:
- They require structured context files like standard
llms.txtandllms-full.txt. - They rely on semantic JSON-LD schema graphs to resolve entity identities.
- They prioritize high citation authority, direct factual density, and clear markdown hierarchies.
@willsunagency/geokit gives JavaScript and Node.js developers programmatic access to validate, generate, and optimize their websites for Generative Engine discovery.
🛠️ Free Online Interactive Tools
Prefer a no-code visual interface? Use our free, 100% client-side web tools directly on GEOKit.site:
- llms.txt Generator & Validator — Generate standardized
llms.txtandllms-full.txtfiles compliant with modern AI crawler specifications. - AI Robots.txt Generator — Granularly configure robots directives for PerplexityBot, GPTBot, ClaudeBot, Google-Extended, and 30+ AI engines.
- JSON-LD Schema Markup Generator — Visual builder for TechArticle, SoftwareApplication, Organization, and FAQPage schemas.
- GEO Readiness Checklist — Complete interactive 20-point audit for generative search readiness.
- AI Citation Score Calculator — Measure factual density and algorithmic quotation probability.
- AI Search Engine Grader — Real-time crawler diagnostic and latency evaluation.
- Full GEO Documentation — Deep-dive architectural guides and optimization case studies.
📦 Installation
# Install via npm
npm install @willsunagency/geokit
# Install via pnpm
pnpm add @willsunagency/geokit
# Install via yarn
yarn add @willsunagency/geokit🚀 Quick Start
1. Generate an llms.txt File
import { generateLlmsTxt } from '@willsunagency/geokit';
const config = {
title: "My SaaS Platform",
summary: "Next-generation analytics powered by edge computing.",
sections: [
{
title: "Core Documentation",
items: [
{ title: "API Reference", url: "https://mysite.com/docs/api", notes: "REST and GraphQL endpoints" },
{ title: "Architecture", url: "https://mysite.com/docs/arch", notes: "System topology" }
]
},
{
title: "Optional Resources",
items: [
{ title: "Changelog", url: "https://mysite.com/changelog" }
]
}
]
};
const output = generateLlmsTxt(config);
console.log(output);2. Build Granular AI Robots Directives
import { generateAiRobotsTxt } from '@willsunagency/geokit';
const robotsTxt = generateAiRobotsTxt({
allowSearchBots: true, // Allow GPTBot, PerplexityBot
blockTrainingBots: true, // Block CommonCrawl, CCBot
sitemapUrl: 'https://mysite.com/sitemap.xml',
llmsTxtUrl: 'https://mysite.com/llms.txt'
});
console.log(robotsTxt);3. Calculate Content AI Citation Probability
import { calculateCitationScore } from '@willsunagency/geokit';
const sampleArticle = `
Generative Engine Optimization (GEO) improves content visibility across LLM-powered search engines.
Key pillars include factual verification, clear markdown hierarchy, and rich JSON-LD markup.
`;
const analysis = calculateCitationScore(sampleArticle);
console.log(`Citation Score: ${analysis.score}/100`);
console.log(`Recommendations:`, analysis.suggestions);🔗 Ecosystem & Links
- Official Web Platform: https://geokit.site
- Official Documentation: https://geokit.site/docs
- CLI Utility: geokit-cli on npm | geokit-cli on PyPI
- Python Toolkit: geokit-tools on PyPI
- License: MIT
