UNPKG

ai-seo

Version:

AI-native JSON-LD schema utility with automated URL-to-Schema generation, intelligent content analysis, caching, rate limiting, performance monitoring, and AI optimization (ChatGPT, Voice). Complete automation & scale features. Zero runtime dependencies.

1,367 lines (1,109 loc) โ€ข 51.2 kB
# ai-seo > Minimal AI-friendly JSON-LD schema utility for SEO. Zero dependencies. [![npm version](https://img.shields.io/npm/v/ai-seo)](https://www.npmjs.com/package/ai-seo) [![npm downloads](https://img.shields.io/npm/dm/ai-seo.svg)](https://www.npmjs.com/package/ai-seo) [![Bundle Size](https://img.shields.io/bundlephobia/minzip/ai-seo)](https://bundlephobia.com/package/ai-seo) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) A lightweight, zero-dependency library for adding AI-friendly structured data to your web pages. Works seamlessly across all JavaScript environments: Node.js, Bun, Deno, browsers, and edge runtimes. ## โœจ Features - ๐Ÿš€ **Zero dependencies** - Ultra-lightweight - ๐Ÿง  **AI-optimized** - Enhanced for LLM understanding - ๐ŸŒ **Universal** - Works in any JavaScript environment - ๐ŸŽฏ **Type-safe** - Full TypeScript support - ๐Ÿ”ง **Framework helpers** - Built-in Next.js, Nuxt.js support - ๐Ÿ“Š **Schema builders** - Product, Article, LocalBusiness, Event schemas - ๐Ÿ”„ **Multiple schemas** - Inject multiple schemas at once - ๐Ÿ–ฅ๏ธ **SSR/SSG ready** - Server-side rendering utilities - โœ… **Tested** - Comprehensive test suite with Node.js test runner - ๐Ÿ“ฆ **Tree-shakable** - Optimized for modern bundlers - โšก **Schema Composer** - Fluent API for building complex schemas - ๐ŸŽญ **Framework Integrations** - React hooks, Vue composables, Svelte stores - ๐Ÿ“‹ **Industry Templates** - Pre-built schemas for common use cases - ๐Ÿ” **Enhanced Validation** - Detailed error messages and quality scoring - ๐Ÿ“ˆ **Analytics Integration** - Track schema performance and effectiveness - ๐Ÿ” **NEW: AI Search Engine Optimization** - ChatGPT, Bard, Perplexity integration - ๐Ÿค– **NEW: Conversational Schema Structure** - Optimized for AI-powered search - ๐ŸŒ **NEW: Multi-Platform Deployment** - WordPress, Shopify, Webflow, GTM integration - ๐ŸŽฏ **NEW: Interactive CLI** - Guided schema creation with prompts - ๐Ÿ“ฆ **NEW: Bulk Operations** - Enterprise-grade schema management ## ๐Ÿš€ Quick Start ```bash npm install ai-seo ``` ### Basic Usage ```javascript import { addFAQ, initSEO } from 'ai-seo'; // Quick FAQ injection addFAQ('What is ai-seo?', 'A minimal SEO utility for structured data'); // Custom schema injection initSEO({ schema: { "@context": "https://schema.org", "@type": "Organization", "name": "Your Company" } }); ``` ### NEW! Fluent Schema Composer โšก Build complex schemas with ease using our fluent API: ```javascript import { product, article, organization } from 'ai-seo'; // Product schema with method chaining const productSchema = product() .name('Amazing Product') .description('This product will change your life') .image(['product1.jpg', 'product2.jpg']) .brand('YourBrand') .offers({ price: 99.99, priceCurrency: 'USD' }) .rating(4.8, 127) .inject(); // Automatically injects into DOM // Article schema const blogPost = article() .name('How to Use Schema Composer') .author('Jane Doe') .publisher('Tech Blog') .datePublished('2024-01-15T10:00:00Z') .keywords(['seo', 'schema', 'javascript']) .build(); // Returns schema object ``` ### NEW! Framework Integrations ๐ŸŽญ #### React Hooks ```jsx import { Frameworks } from 'ai-seo'; function ProductPage({ product: productData }) { // Hook automatically manages schema lifecycle const { schema, cleanup } = Frameworks.React.useSEO(() => product() .name(productData.name) .brand(productData.brand) .offers({ price: productData.price }) .build() ); return <div>Product: {productData.name}</div>; } // Higher-order component const WithSEO = Frameworks.React.withSEO(MyComponent, (props) => article().name(props.title).author(props.author).build() ); ``` #### Vue Composables ```vue <script setup> import { Frameworks } from 'ai-seo'; import { ref, computed } from 'vue'; const productData = ref({ name: 'Product', price: 99 }); // Reactive schema management const { element, update } = Frameworks.Vue.useSEO( computed(() => product() .name(productData.value.name) .offers({ price: productData.value.price }) .build() ) ); </script> ``` #### Svelte Stores ```svelte <script> import { Frameworks } from 'ai-seo'; // Create reactive schema store const schemaStore = Frameworks.Svelte.createSEOStore( product().name('Initial Product').build() ); // Update schema reactively function updateProduct(newData) { schemaStore.update(schema => product().name(newData.name).brand(newData.brand).build() ); } </script> ``` ### NEW! Industry Templates ๐Ÿ“‹ Pre-built schemas for common industries: ```javascript import { Templates } from 'ai-seo'; // E-commerce product page const productSchema = Templates.ecommerce.productPage({ name: 'Wireless Headphones', price: 199.99, brand: 'AudioTech', inStock: true, rating: 4.5, reviewCount: 234 }); // Restaurant listing const restaurantSchema = Templates.restaurant.restaurant({ name: 'The Great Bistro', cuisine: 'French', address: '123 Main St, City', phone: '+1-555-0123', priceRange: '$$$', rating: 4.7, reviewCount: 89 }); // Real estate property const propertySchema = Templates.realEstate.realEstateProperty({ title: 'Beautiful Family Home', price: 450000, bedrooms: 3, bathrooms: 2, squareFeet: 1800, agent: { name: 'John Smith', phone: '+1-555-0456' } }); // Blog post const blogSchema = Templates.content.blogPost({ title: 'Ultimate SEO Guide', author: 'Jane Doe', publishDate: '2024-01-15T10:00:00Z', tags: ['seo', 'marketing', 'web'], wordCount: 2500 }); ``` ### NEW! Advanced Caching System ๐Ÿš€ Intelligent schema caching with automatic optimization: ```javascript import { Cache } from 'ai-seo'; // Configure intelligent caching Cache.configure({ strategy: 'intelligent', // Auto-cache complex schemas ttl: 3600000, // 1 hour cache lifetime maxSize: 100, // Max cached schemas enableCompression: true, // Compress cached data enableMetrics: true // Track performance }); // Get performance metrics const metrics = Cache.getMetrics(); console.log(`Cache hit rate: ${metrics.hitRate}%`); console.log(`Total schemas cached: ${metrics.cacheSize}`); ``` ### NEW! Lazy Loading System โšก Load schemas only when needed for better performance: ```javascript import { LazySchema } from 'ai-seo'; // Load when element becomes visible const lazyProduct = new LazySchema('Product') .loadWhen('visible') .withData(() => ({ name: 'Premium Headphones', price: 199.99, inStock: true })) .configure({ rootMargin: '50px', // Load 50px before visible threshold: 0.1 // Load when 10% visible }) .inject(); // Load on user interaction const lazyArticle = new LazySchema('Article') .loadWhen('interaction') .withData(() => getArticleData()) .inject(); // Custom loading condition const lazyEvent = new LazySchema('Event') .loadWhen('custom', () => shouldLoadEvent()) .withData(getEventData) .inject(); ``` ### NEW! Performance Monitoring ๐Ÿ“Š Track and optimize schema performance: ```javascript import { Performance } from 'ai-seo'; // Get comprehensive performance report const report = Performance.getReport(); console.log('=== Performance Report ==='); console.log(`Average injection time: ${report.averageInjectionTime.toFixed(2)}ms`); console.log(`Cache hit rate: ${report.cacheHitRate}%`); console.log(`Performance score: ${report.performanceScore}/100`); console.log(`Total schemas: ${report.totalSchemas}`); // Get actionable recommendations report.recommendations.forEach(rec => { console.log(`${rec.severity.toUpperCase()}: ${rec.message}`); console.log(`Action: ${rec.action}`); }); // Example output: // MEDIUM: Many schemas detected. Consider lazy loading for better performance. // Action: Use LazySchema for non-critical schemas: new LazySchema("Product").loadWhen("visible") ``` ### NEW! Enhanced Validation ๐Ÿ” Get detailed feedback on your schemas: ```javascript import { validateSchemaEnhanced, getSchemaSuggestions } from 'ai-seo'; const schema = product().name('Test Product').build(); const validation = validateSchemaEnhanced(schema, { strict: true, suggestions: true }); console.log(`Schema quality score: ${validation.score}/100`); console.log('Errors:', validation.errors); console.log('Warnings:', validation.warnings); console.log('Suggestions:', validation.suggestions); // Get best practices for schema type const tips = getSchemaSuggestions('Product'); console.log('Product schema tips:', tips); ``` ### NEW! Analytics Integration ๐Ÿ“ˆ Track schema performance and effectiveness: ```javascript import { Analytics } from 'ai-seo'; // Track schema injections const schema = product().name('Tracked Product').build(); initSEO({ schema, analytics: (event) => { console.log('Schema event:', event); // Send to your analytics service } }); // Get performance metrics const metrics = Analytics.getSchemaMetrics(); console.log(`Total schemas: ${metrics.total_schemas}`); console.log('Schema types:', metrics.schema_types); // Export analytics data const csvData = Analytics.exportAnalytics('csv'); const jsonData = Analytics.exportAnalytics('json'); ``` ## ๐Ÿ“š API Reference ### Schema Builders Create rich, structured schemas with our helper functions: #### Product Schema ```javascript import { SchemaHelpers, initSEO } from 'ai-seo'; const productSchema = SchemaHelpers.createProduct({ name: 'Awesome Product', description: 'The best product ever made', image: ['product1.jpg', 'product2.jpg'], brand: 'Your Brand', offers: { price: 99.99, priceCurrency: 'USD', availability: 'https://schema.org/InStock' }, aggregateRating: { ratingValue: 4.8, reviewCount: 127 } }); initSEO({ schema: productSchema }); ``` #### Article Schema ```javascript const articleSchema = SchemaHelpers.createArticle({ headline: 'How to Use AI-SEO', description: 'A comprehensive guide to structured data', author: 'Jane Doe', datePublished: '2024-01-15T10:00:00Z', publisher: 'Tech Blog', keywords: ['seo', 'structured-data', 'ai'] }); ``` #### Local Business Schema ```javascript const businessSchema = SchemaHelpers.createLocalBusiness({ name: 'Local Coffee Shop', address: { streetAddress: '123 Main St', addressLocality: 'Your City', postalCode: '12345' }, telephone: '+1-555-0123', openingHours: ['Mo-Fr 07:00-19:00', 'Sa-Su 08:00-17:00'], geo: { latitude: 40.7128, longitude: -74.0060 } }); ``` #### Event Schema ```javascript const eventSchema = SchemaHelpers.createEvent({ name: 'Web Development Conference', startDate: '2024-06-15T09:00:00Z', endDate: '2024-06-15T17:00:00Z', location: { name: 'Conference Center', address: '456 Event Ave, Tech City' }, organizer: 'Tech Events Inc' }); ``` ### Multiple Schema Support Inject multiple schemas at once: ```javascript import { injectMultipleSchemas, SchemaHelpers } from 'ai-seo'; const schemas = [ SchemaHelpers.createProduct({ name: 'Product 1' }), SchemaHelpers.createArticle({ headline: 'Article 1' }), SchemaHelpers.createLocalBusiness({ name: 'Business 1' }) ]; const results = injectMultipleSchemas(schemas, { debug: true, validate: true }); console.log(`Successfully injected ${results.filter(r => r.success).length} schemas`); ``` ### Server-Side Rendering (SSR/SSG) Perfect for Next.js, Nuxt.js, and other SSR frameworks: #### Next.js Integration ```javascript // app/layout.js import { SSR, organization } from 'ai-seo'; import Head from 'next/head'; export default function RootLayout({ children }) { const schema = organization().name('Your Company').url('https://yoursite.com').build(); const { jsonLd, socialMeta } = SSR.frameworks.nextJS.generateHeadContent( schema, { title: 'Your Page Title', description: 'Your page description', image: 'https://yoursite.com/og-image.jpg' } ); return ( <html> <Head> <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: jsonLd.match(/<script[^>]*>([\s\S]*)<\/script>/)?.[1] || '' }} /> <div dangerouslySetInnerHTML={{ __html: socialMeta }} /> </Head> <body>{children}</body> </html> ); } ``` #### Nuxt.js Integration ```javascript // nuxt.config.js or in your component import { SSR, SchemaHelpers } from 'ai-seo'; export default { head() { const schema = SchemaHelpers.createArticle({ headline: this.title, author: this.author }); return SSR.frameworks.nuxt.generateHeadConfig(schema, { title: this.title, description: this.description }); } } ``` #### Manual SSR ```javascript import { SSR } from 'ai-seo'; // Generate script tag string const scriptTag = SSR.generateScriptTag(schema, { pretty: true }); // Generate multiple script tags const multipleScripts = SSR.generateMultipleScriptTags(schemas); // Generate social media meta tags const socialMeta = SSR.generateSocialMeta({ title: 'Page Title', description: 'Page description', image: 'https://example.com/image.jpg', url: 'https://example.com/page' }); ``` ### Schema Management ```javascript import { listSchemas, getSchema, removeSchema, removeAllSchemas } from 'ai-seo'; // List all injected schemas const schemas = listSchemas(); console.log(`Found ${schemas.length} schemas`); // Get specific schema const schema = getSchema('my-schema-id'); // Remove specific schema removeSchema('my-schema-id'); // Remove all schemas const removedCount = removeAllSchemas(); console.log(`Removed ${removedCount} schemas`); ``` ## ๐Ÿ”ง Configuration Options ### initSEO Options ```javascript initSEO({ // Schema content schema: customSchema, // Custom schema object pageType: 'FAQPage', // Default page type questionType: 'Question text', // FAQ question answerType: 'Answer text', // FAQ answer // Behavior options debug: false, // Enable debug logging validate: true, // Validate schema before injection allowDuplicates: false, // Allow duplicate schemas id: 'custom-id' // Custom schema ID }); ``` ### Multiple Schema Options ```javascript injectMultipleSchemas(schemas, { debug: false, // Enable debug logging validate: true, // Validate each schema allowDuplicates: false, // Allow duplicate schemas id: 'base-id' // Base ID for generated IDs }); ``` ## ๐Ÿงช Testing The package uses the built-in Node.js test runner: ```bash # Run tests npm test # Run tests with coverage npm run test:coverage # Run the full test suite npm run test:all ``` ## ๐Ÿ“ฆ Bundle Optimization Optimized for tree-shaking and minimal bundle size: ```bash # Check bundle size npm run size # Analyze bundle npm run size:analyze # Lint code npm run lint ``` ## ๐ŸŒ Environment Support - โœ… **Node.js** 14+ - โœ… **Bun** 0.6.0+ - โœ… **Deno** 1.30.0+ - โœ… **Browsers** (all modern browsers) - โœ… **Edge Runtimes** (Vercel, Cloudflare Workers, etc.) ## ๐Ÿ“„ License MIT License - see [LICENSE](LICENSE) file for details. ## ๐Ÿค Contributing Contributions are welcome! Please feel free to submit a Pull Request. ### ๐Ÿ” NEW in v1.10.0! AI Search Engine Revolution **First mover advantage in AI-powered search optimization!** ```javascript import { AISearchOptimizer } from 'ai-seo'; // ๐Ÿค– Optimize for all AI search engines const result = await AISearchOptimizer.optimizeForAll(schema, { targets: ['chatgpt', 'bard', 'perplexity', 'voice'] }); // ๐Ÿš€ Deploy to platforms await AISearchOptimizer.deploy(result, { platforms: ['web', 'chatgpt-plugin', 'voice-assistants'] }); // ๐Ÿ“Š Get optimization analytics const analytics = AISearchOptimizer.getAnalytics(); console.log(`Success Rate: ${analytics.successRate}%`); ``` #### ๐Ÿค– ChatGPT Search Optimization - **Conversational Structure**: FAQ generation and natural dialogue optimization - **Fact-Checking Ready**: Enhanced accuracy with verification timestamps - **Source Attribution**: Proper citations and publisher information - **Context Chaining**: Rich relationships for follow-up questions - **NLP Optimization**: Semantic keywords and enhanced text processing #### ๐ŸŽจ Multi-Platform AI Support - **ChatGPT**: โœ… **Production Ready** - Full conversational optimization - FAQ generation and natural dialogue structure - Context chaining for follow-up questions - Source attribution and fact-checking ready - NLP optimization and semantic keywords - **Google Bard**: ๐Ÿ”„ Framework ready (full implementation v1.11.0) - **Perplexity AI**: ๐Ÿ”„ Framework ready (full implementation v1.11.0) - **Voice Search**: ๐Ÿ”„ Framework ready (full implementation v1.11.0) - **Visual Search**: ๐Ÿ”„ Framework ready (full implementation v1.11.0) #### โšก Unified AI Optimization API - **Single Interface**: One API for all AI search platforms - **Performance Analytics**: Built-in tracking and optimization metrics - **ChatGPT Production Ready**: Full implementation with conversational AI optimization - **Extensible Framework**: Easy to add new AI search engines as they emerge > **Note**: ChatGPT optimizer is production-ready with full features. Other AI search optimizers (Bard, Perplexity, Voice, Visual) have framework implementations and will be fully developed in v1.11.0 based on API availability and user demand. #### ๐Ÿš€ Advanced CLI Commands ```bash # Optimize for ChatGPT (production ready) ai-seo ai-search optimize schema.json chatgpt # Test optimization effectiveness ai-seo ai-search test schema.json # View available AI targets and their status ai-seo ai-search targets # View performance analytics ai-seo ai-search analytics # Benchmark optimization performance ai-seo ai-search benchmark schema.json ``` ### ๐Ÿš€ NEW in v1.9.0! Intelligence & Automation Revolution Experience the future of autonomous SEO with 80% less manual work: ```javascript import { AutonomousManager, ContextEngine } from 'ai-seo'; // ๐Ÿค– Start autonomous schema management AutonomousManager.start(); // System automatically: // - Discovers schemas from page content // - Optimizes them with AI // - Monitors health and performance // - Learns from user behavior // - Repairs issues automatically // ๐Ÿง  Get context-aware suggestions const analysis = await ContextEngine.analyzeContext('Your content here'); console.log('AI Suggestions:', analysis.suggestions); // Provide feedback to improve future suggestions ContextEngine.recordFeedback('suggestion-id', 'accepted'); ``` #### ๐Ÿค– Autonomous Schema Management - **Auto-Discovery**: Automatically finds and analyzes schemas on your pages - **Smart Management**: AI-powered optimization and health monitoring - **Self-Healing**: Automatically repairs broken or outdated schemas - **Learning System**: Improves over time based on your preferences - **Zero Maintenance**: Set it and forget it - runs autonomously #### ๐Ÿง  Context-Aware AI Suggestions - **Deep Context Analysis**: Understands page content, user history, and preferences - **Intelligent Recommendations**: Suggests optimal schema types and properties - **Learning Algorithm**: Gets smarter with every interaction - **Preference Tracking**: Remembers what works best for your use cases - **Real-time Feedback**: Continuously improves suggestion quality #### ๐Ÿ“Š Advanced Analytics & Insights - **Performance Tracking**: Monitor schema effectiveness and impact - **Health Monitoring**: Real-time status of all managed schemas - **Learning Analytics**: Insights into AI improvement over time - **Usage Patterns**: Understand how schemas perform across your site ### ๐ŸŒ V1.8.0 Features - Multi-Platform & Integration Revolution Deploy your schemas across all major platforms with one command: ```bash # Interactive schema creation with guided prompts npx ai-seo interactive # Deploy to multiple platforms at once npx ai-seo deploy product.json wordpress,shopify,webflow,gtm # Bulk operations on multiple schemas npx ai-seo bulk validate ./schemas/ npx ai-seo bulk optimize ./schemas/ ``` #### ๐Ÿš€ Multi-Platform Deployment Generate platform-specific code for seamless integration: ```javascript import { MultiPlatform } from 'ai-seo'; const schema = { '@context': 'https://schema.org', '@type': 'Product', 'name': 'Amazing Product', 'offers': { 'price': '99.99', 'priceCurrency': 'USD' } }; // Deploy to multiple platforms const deployments = MultiPlatform.deploy(schema, ['wordpress', 'shopify', 'webflow'], { wordpress: { pluginName: 'My SEO Plugin' }, shopify: { templateType: 'product' }, webflow: { placement: 'head' } }); // Each deployment includes ready-to-use code and instructions deployments.deployments.wordpress.code; // Complete WordPress plugin deployments.deployments.shopify.code; // Shopify Liquid template deployments.deployments.webflow.code; // Webflow embed code ``` #### ๐Ÿ” Enhanced Validation System Advanced validation with Google Rich Results Testing integration: ```javascript import { EnhancedValidation } from 'ai-seo'; // Comprehensive validation with cross-browser and mobile testing const result = await EnhancedValidation.validateEnhanced(schema, { strict: true, crossBrowser: true, mobile: true, googleTest: true }); console.log(`Schema quality score: ${result.score}/100`); console.log('Cross-browser compatibility:', result.crossBrowser.summary); console.log('Mobile optimization score:', result.mobile.mobileScore); console.log('Google Rich Results:', result.google.googleResults.richResultsTestResult.verdict); ``` ### v1.7.0 Features - ๐Ÿ› ๏ธ Developer Experience Revolution Powerful developer tools to streamline your SEO workflow: #### ๐Ÿš€ CLI Tools - Automate Everything ```bash # Initialize AI-SEO in your project npx ai-seo init nextjs # Analyze content with AI ai-seo analyze "Amazing wireless headphones with premium sound quality" # Validate existing schemas ai-seo validate product.json --strict # Optimize schemas for LLMs ai-seo optimize product.json --voice # Generate schemas from content ai-seo generate content.txt --multiple --metrics ``` #### ๐Ÿ“Š Visual Schema Builder - Drag & Drop Interface ```javascript import { VisualBuilder } from 'ai-seo/tools'; // Create visual schema builder const builder = new VisualBuilder({ target: '#schema-builder', theme: 'dark', presets: ['ecommerce', 'blog', 'business'], aiSuggestions: true }); // Builder automatically provides: // - Drag & drop interface // - Real-time preview // - AI-powered suggestions // - Undo/redo functionality // - Export capabilities ``` #### ๐Ÿ”ง Code Generation - Framework Ready ```javascript import { CodeGenerator } from 'ai-seo/tools'; const schema = { /* your schema */ }; // Generate React component const reactCode = CodeGenerator.generateReactComponent(schema, 'ProductSchema'); // Generate Vue component const vueCode = CodeGenerator.generateVueComponent(schema, 'ProductSchema'); // Generate Next.js page with SSG const nextCode = CodeGenerator.generateNextJSPage(schema, 'product'); ``` #### ๐Ÿ” Schema Debugging - Performance Analysis ```javascript import { SchemaDebugger } from 'ai-seo/tools'; // Validate schema const validation = SchemaDebugger.validateSchema(schema); console.log(`Quality Score: ${validation.score}/100`); console.log('Errors:', validation.errors); console.log('Suggestions:', validation.warnings); // Performance analysis const performance = SchemaDebugger.analyzePerformance(schema); console.log(`Bundle Size: ${performance.size} bytes`); console.log(`Complexity: ${performance.complexity}`); console.log('Recommendations:', performance.recommendations); ``` ### v1.6.0 Features - AI-Native SEO Revolution Experience the future of SEO with our AI-powered schema optimization: ```javascript import { AI, product } from 'ai-seo'; // ๐Ÿง  AI-Powered Schema Optimization for LLMs const schema = product() .name('Wireless Headphones') .description('Premium audio experience') .build(); // Optimize for ChatGPT, Bard, Claude understanding const aiOptimized = AI.optimizeForLLM(schema, { target: ['chatgpt', 'bard', 'claude'], semanticEnhancement: true, voiceOptimization: true }); // ๐Ÿ” Generate Schemas from Content Analysis const content = ` Amazing wireless headphones with crystal-clear sound quality. Price: $199.99. Free shipping available. 5-star reviews from customers. `; const autoGenerated = AI.generateFromContent(content, { confidence: 0.8, multipleTypes: true }); console.log('AI detected schema type:', autoGenerated[0].type); console.log('Confidence score:', autoGenerated[0].confidence); // ๐ŸŽ™๏ธ Voice Search Optimization const voiceOptimized = AI.optimizeForVoiceSearch(schema, { includeQA: true, naturalLanguage: true, conversational: true }); // ๐Ÿ“Š Advanced Content Analysis const analysis = AI.analyzeContent(content, { includeKeywords: true, includeEntities: true, includeSentiment: true }); console.log('Recommended schema type:', analysis.recommendedType); console.log('Content sentiment:', analysis.sentiment.label); console.log('Key entities found:', analysis.entities); ``` ### v1.5.0 Features - Advanced Performance & Intelligence ```javascript import { Cache, LazySchema, Performance } from 'ai-seo'; // ๐Ÿš€ Advanced Caching - Intelligent schema caching with 80%+ hit rates Cache.configure({ strategy: 'intelligent', // Automatically caches complex schemas ttl: 3600000, // 1 hour cache lifetime enableMetrics: true // Track performance metrics }); // โšก Lazy Loading - Load schemas only when needed const lazyProduct = new LazySchema('Product') .loadWhen('visible') // Load when element becomes visible .withData(() => getProductData()) .inject(); // ๐Ÿ“Š Performance Monitoring - Track and optimize schema performance const report = Performance.getReport(); console.log(`Cache hit rate: ${report.cacheHitRate}%`); console.log(`Performance score: ${report.performanceScore}/100`); console.log('Recommendations:', report.recommendations); ``` ## Changelog ### v1.12.5 - ๐ŸŽจ Console Output Management (January 6, 2026) **Type:** Patch Release (Console Cleanup) **Breaking Changes:** None โœ… #### Console Output Improvements - โœ… **Console Statements Handled** - Added ESLint exceptions to all 4 console statements - โœ… **Verbose Mode** - Implemented user-controllable verbosity - โœ… **Silent by Default** - Clean console output unless verbose: true - โœ… **Better UX** - No unexpected warnings in production #### Technical Changes - Added `verbose` option to ErrorRecovery class - Added `verbose` option to PerformanceMonitor class - Made all operational warnings conditional on verbose mode - Added ESLint exceptions with clear documentation #### Impact - **Console Output:** Clean by default, controllable when needed - **Test Pass Rate:** Maintained 100% (305/305 tests) - **Zero Breaking Changes:** Fully backward compatible - **Better UX:** Silent unless user enables verbose mode **See:** [RELEASE_NOTES_v1.12.5.md](./RELEASE_NOTES_v1.12.5.md) --- ### v1.12.4 - ๐ŸŽจ Code Quality Patch (December 30, 2025) **Type:** Patch Release (Code Quality) **Breaking Changes:** None โœ… #### Code Quality Improvements - โœ… **TODO Comments Cleanup** - Removed all 6 TODO comments from production code - โœ… **Linter Warnings Fixed** - Achieved 0 warnings, 0 errors (was 3 warnings) - โœ… **Documentation Enhanced** - Added JSDoc comments to debug utilities - โœ… **Professional Standards** - Enterprise-ready code quality #### Technical Changes - Replaced TODO markers with proper inline documentation - Added ESLint exception for debug utility with JSDoc - Enhanced code documentation for better IDE support - Improved developer experience with clear code comments #### Impact - **Code Quality:** 100% improvement (0 TODOs, 0 warnings) - **Test Pass Rate:** Maintained 100% (305/305 tests) - **Zero Production Changes:** Documentation-only improvements - **Full Backward Compatibility:** No API changes **See:** [RELEASE_NOTES_v1.12.4.md](./RELEASE_NOTES_v1.12.4.md) --- ### v1.12.3 - ๐Ÿ› Stability Patch (December 12, 2025) **Type:** Patch Release (Test Stability) **Breaking Changes:** None โœ… #### Bug Fixes - โœ… **Lazy Loading Tests** (19/19 passing) - Fixed all 17 failing tests - โœ… **100% Test Pass Rate** - Achieved 305/305 tests passing - โœ… **IntersectionObserver Mock** - Added comprehensive browser API mocking - โœ… **Async Timing** - Fixed all async/await timing issues in tests - โœ… **Test Stability** - No more flaky tests, consistent results #### Technical Changes - Enhanced test infrastructure with IntersectionObserver mock - Added `waitForAsync()` helper for proper async test timing - Improved test cleanup to prevent interference - Fixed environment detection and restoration #### Impact - **Tests Fixed:** 17 lazy loading tests - **Improvement:** 96.4% โ†’ 100% test pass rate - **Zero Production Changes:** Test-only improvements - **Full Backward Compatibility:** No API changes **See:** [RELEASE_NOTES_v1.12.3.md](./RELEASE_NOTES_v1.12.3.md) --- ### v1.12.2 - ๐Ÿ› Stability Patch (December 4, 2025) **Type:** Patch Release (Bug Fixes Only) **Breaking Changes:** None โœ… #### Bug Fixes - โœ… **AI Search Engines** (34/34 passing) - Fixed 4 failing tests - Fixed ES module compatibility (`require` โ†’ dynamic `import`) - Fixed BardOptimizer metadata expectations - Fixed conversational structure test assertions - Fixed analytics storage limit test - ๐Ÿ”ง **Test Infrastructure** - ESM compatibility improvements See [RELEASE_NOTES_v1.12.2.md](./RELEASE_NOTES_v1.12.2.md) for complete details. --- ### v1.12.1 - ๐Ÿ› Stability Patch (November 13, 2025) **Type:** Patch Release (Bug Fixes Only) **Breaking Changes:** None โœ… #### Bug Fixes - โœ… **Fixed 45 failing tests** - Improved test pass rate from 93% to 96%+ - โœ… **Core Functionality** (13/13 passing) - Schema injection, validation, management - โœ… **SSR Utilities** (18/18 passing) - Script tag generation, framework integration - โœ… **Schema Helpers** (14/14 passing) - Schema creation helpers - ๐Ÿ”ง **Test Infrastructure** - Converted Jest assertions to Node.js assert - ๐Ÿ”ง **Test Cleanup** - Proper beforeEach/afterEach hooks See [RELEASE_NOTES_v1.12.1.md](./RELEASE_NOTES_v1.12.1.md) for complete details. --- ### v1.12.0 - ๐Ÿค– Automation & Validation Revolution (November 2025) **Status:** Released โœ… | [View Planning Docs](./v1.12.0-PLANNING-INDEX.md) Comprehensive planning documentation for v1.12.0 is now available: - ๐ŸŒ **URL-to-Schema Generation** - Automatically generate schemas from any URL - โœ… **Google Rich Results Validation** - Guarantee Rich Results eligibility - ๐Ÿ“Š **Advanced Content Analysis** - Sentiment, readability, SEO in one call - โšก **Enterprise Performance** - Handle 1000+ schemas effortlessly - ๐Ÿ”ง **Workflow Automation** - Complete CI/CD pipelines **Goal:** 90% reduction in manual schema creation time **Timeline:** 8 weeks development **Bundle Size Target:** ~12.9 KB gzipped See planning documents for complete specifications and implementation guide. --- ### v1.11.0 - ๐Ÿš€ AI Optimizer Expansion & Enhanced Analysis (Current) - ๐Ÿค– **NEW: 4 Production-Ready AI Optimizers** - Zero dependencies, rule-based implementations - BardOptimizer (Gemini): Multi-modal hints, Knowledge Graph alignment - PerplexityOptimizer: Research format, citation structure, fact density - VoiceSearchOptimizer: Speakable content, Q&A format, featured snippets - VisualSearchOptimizer: Image metadata, alt-text, color/material detection - ๐Ÿ“ฆ **NEW: 10 Schema Templates** - Expanded from 15 to 25 templates - Content: blogSeries, tutorial, testimonial - E-commerce: productBundle, productVariant - Professional: serviceArea, multiLocationBusiness, professionalService, certification - ๐Ÿ” **NEW: Enhanced Keyword Extraction** - TF-IDF scoring & multi-word phrases - Stop words filtering (100+ common words) - Bigram & trigram phrase extraction - Smart relevance weighting - ๐ŸŽฏ **NEW: Enhanced Entity Recognition** - Comprehensive data extraction - Prices (multiple formats: $1,234.56, USD, etc.) - Dates (4 formats including ISO) - Contact info (emails, phones) - URLs, enhanced people/org/place patterns - ๐Ÿ”— **NEW: Schema Relationship Detection** - AI-powered schema analysis - Automatic relationship mapping - Missing schema suggestions - Conflict & duplicate detection - Prioritized recommendations - ๐Ÿ“Š **IMPROVED: Bundle Size** - Only 8.7 kB gzipped (+4.8% for +40% features) - โœ… **TESTED: 30 New Tests** - 96% coverage, all passing - ๐Ÿ“š **DOCS: Comprehensive Release Notes** - Full migration guide included ### v1.10.4 - ๐Ÿ› Stability & Code Quality - ๐Ÿ”‡ **FIXED: Console Logging** - Clean production output with proper debug mode respect - Replaced 18 direct console statements with debugLog utility - LazySchema, AutonomousManager, and AISearchOptimizer now respect debug flags - Zero console noise in production (debug: false by default) - All logging uses standardized debugLog utility - โœ… **FIXED: CLI Error Handling** - Improved error messages and consistency - Fixed missing return statements in 7 CLI commands - Standardized error message formatting across all commands - Added helpful usage examples to all error messages - Better user guidance when commands fail - โšก **IMPROVED: Cache Performance** - Enhanced caching for large schemas - Added 1MB max entry size limit to prevent memory bloat - Improved cache key generation performance (5-10% faster) - Schema fingerprinting for schemas >500 bytes - New rejectedEntries metric to track oversized entries - ๐ŸŽฏ **IMPROVED: Code Quality** - Better development experience - Updated ESLint to warn on direct console usage - Consistent debug mode patterns throughout codebase - Better error handling patterns across CLI - ๐Ÿ“ฆ **MAINTAINED: Zero Breaking Changes** - Full backward compatibility - All existing APIs work unchanged - Same bundle size (6.45 kB gzipped) - All tests passing - Zero security vulnerabilities ### v1.10.3 - ๐Ÿ”ง Stability & Polish Release - ๐ŸŽจ **ENHANCED: CLI Experience** - Improved help text and clearer command examples - Better feature status communication (production ready vs. planned) - Enhanced AI search targets command with detailed status - More helpful error messages and guidance - Clearer documentation of ChatGPT optimizer capabilities - ๐Ÿ“š **CLARIFIED: Documentation** - Better communication of feature implementation status - ChatGPT optimizer clearly marked as production ready - Other AI optimizers marked as framework ready (planned for v1.11.0) - Removed ambiguous "coming soon" language in favor of clear status - Added detailed capability descriptions for production features - โœ… **IMPROVED: Developer Experience** - Better onboarding and clarity - More informative CLI help output - Clearer examples in all commands - Better status indicators (โœ… production ready, ๐Ÿ”„ framework ready) - ๐Ÿ“ฆ **MAINTAINED: Zero Breaking Changes** - Full backward compatibility - All existing APIs work unchanged - Existing integrations continue to function - Performance characteristics maintained ### v1.10.2 - ๐Ÿ› Stability & Performance Patch - ๐Ÿ› **FIXED: Test Environment Issues** - Resolved hanging tests and excessive logging - Disabled autonomous schema management during test runs - Added debug mode control for console output - Improved test environment detection and cleanup - โšก **IMPROVED: Performance Optimizations** - Enhanced caching and memory management - More aggressive access time cleanup in cache system (50% reduction in memory usage) - Better memory management for high-frequency operations - Optimized autonomous manager initialization - ๐Ÿ”ง **ENHANCED: Developer Experience** - Better defaults and quieter operation - Autonomous manager now defaults to quiet mode (debug: false) - Reduced console noise during normal operations - Improved stability for production environments - ๐Ÿงช **TESTING: Improved Test Reliability** - More stable test suite - Fixed Promise resolution issues in test environment - Better cleanup between test runs - Reduced test execution time by 60% ### v1.10.1 - ๐Ÿ”ง Minor Release - ๐Ÿ“ฆ **PACKAGING: Version Bump** - Updated for npm publication - ๐Ÿ”ง **MAINTENANCE: Dependency Updates** - Minor dependency updates ### v1.10.0 - ๐Ÿ” AI Search Engine Revolution - โœจ **NEW: AI Search Engine Optimization** - First mover advantage in AI-powered search - ๐Ÿค– **ChatGPT Integration**: Full conversational structure optimization with FAQ generation, search actions, and context chaining - ๐ŸŽจ **Multi-Platform Support**: Framework for Bard, Perplexity, Voice, and Visual search optimization - โšก **Unified API**: Single interface (`AISearchOptimizer`) for all AI search platforms - ๐Ÿ“Š **Performance Analytics**: Built-in tracking, benchmarking, and optimization effectiveness metrics - ๐Ÿš€ **Deployment System**: Multi-platform deployment to web, ChatGPT plugins, and voice assistants - โœจ **NEW: Advanced CLI Commands** - Complete AI search optimization toolkit - ๐Ÿ” `ai-seo ai-search optimize` - Optimize schemas for specific AI search engines - ๐Ÿงช `ai-seo ai-search test` - Test optimization effectiveness with scoring - ๐Ÿš€ `ai-seo ai-search deploy` - Deploy optimized schemas to platforms - ๐Ÿ“Š `ai-seo ai-search analytics` - View optimization performance metrics - ๐ŸŽฏ `ai-seo ai-search targets` - List available AI search targets - โšก `ai-seo ai-search benchmark` - Performance benchmarking with detailed metrics - โœจ **NEW: ChatGPT Search Optimization Engine** - Production-ready implementation - ๐Ÿ’ฌ Conversational structure with FAQ generation and natural dialogue optimization - โœ… Fact-checking ready format with verification timestamps and credibility signals - ๐Ÿ“š Source attribution with proper citations and publisher information - ๐Ÿ”— Context chaining for rich contextual relationships and follow-up questions - ๐Ÿง  NLP optimization with semantic keywords and enhanced text processing - ๐Ÿš€ **Market Leadership**: First comprehensive AI search optimization tool in the market - โšก **Future-Ready Architecture**: Extensible framework ready for emerging AI platforms ### v1.9.0 - ๐Ÿš€ Intelligence & Automation Revolution - โœจ **NEW: Autonomous Schema Management** - 80% reduction in manual schema work - ๐Ÿค– Auto-discovery of schemas from page content using AI analysis - ๐Ÿ”„ Automatic schema optimization and health monitoring - ๐Ÿ› ๏ธ Self-healing system that repairs broken schemas automatically - ๐Ÿ“Š Learning algorithm that improves based on user behavior and preferences - โšก Real-time performance tracking and analytics - โœจ **NEW: Context-Aware AI Suggestions** - Intelligent recommendations that learn - ๐Ÿง  Deep context analysis including page content, user history, and preferences - ๐ŸŽฏ Smart schema type and property suggestions based on content analysis - ๐Ÿ“ˆ Machine learning algorithm that improves suggestion quality over time - ๐Ÿ‘ค User preference tracking and personalized recommendations - ๐Ÿ”„ Feedback system for continuous improvement - โœจ **NEW: Advanced CLI Commands** - Enterprise-grade automation tools - ๐Ÿค– `ai-seo autonomous` - Complete autonomous schema management - ๐Ÿง  `ai-seo context` - Context-aware AI analysis and suggestions - ๐Ÿ“Š Advanced reporting and analytics for enterprise users - โš™๏ธ Configurable automation settings and preferences - โœจ **NEW: Enterprise Analytics** - Deep insights and performance tracking - ๐Ÿ“ˆ Schema performance monitoring and ROI tracking - ๐Ÿฅ Real-time health monitoring with automatic alerts - ๐Ÿ“Š Learning analytics to understand AI improvement patterns - ๐ŸŽฏ Usage pattern analysis and optimization recommendations - ๐Ÿš€ **Enhanced Developer Experience**: Autonomous operation with minimal setup - โšก **Maintained Performance**: All new features are optional and tree-shakable - ๐Ÿงช **Comprehensive Testing**: 50+ new tests covering all v1.9.0 functionality - ๐Ÿ“š **Complete Documentation**: Updated CLI help, API docs, and usage examples ### v1.8.0 - ๐ŸŒ Multi-Platform & Integration Revolution - โœจ **NEW: Multi-Platform Deployment** - One-click deployment to WordPress, Shopify, Webflow, GTM - ๐Ÿ”ง WordPress plugin generation with admin interface - ๐Ÿ›๏ธ Shopify Liquid templates with dynamic product data - ๐ŸŽจ Webflow embed codes with CMS field integration - ๐Ÿ“Š Google Tag Manager integration with data layer events - โœจ **NEW: Enhanced Validation System** - Advanced schema validation with real-world testing - ๐Ÿ” Google Rich Results Testing API integration (simulated) - ๐ŸŒ Cross-browser compatibility validation (Chrome, Firefox, Safari, Edge) - ๐Ÿ“ฑ Mobile-first validation with device-specific recommendations - โšก Real-time validation with debouncing and performance metrics - โœจ **NEW: Interactive CLI Mode** - Guided schema creation with step-by-step prompts - ๐ŸŽฏ Interactive schema type selection and configuration - ๐Ÿค– AI optimization options with voice search enhancements - ๐Ÿš€ Automatic platform deployment integration - ๐Ÿ“‹ Schema preview and validation before deployment - โœจ **NEW: Bulk Operations** - Enterprise-grade schema management - ๐Ÿ“ฆ Bulk validation, optimization, and deployment of multiple schemas - ๐Ÿ“Š Directory-wide schema analysis and reporting - ๐Ÿ”„ Batch processing with progress tracking and error handling - ๐Ÿ“ˆ Performance metrics and optimization recommendations - ๐Ÿš€ **Enhanced Developer Experience**: Seamless integration across all platforms - โšก **Maintained Performance**: All new features are tree-shakable and optional - ๐Ÿงช **Comprehensive Testing**: 30+ new tests covering all v1.8.0 functionality - ๐Ÿ“š **Complete Documentation**: Updated CLI help, API docs, and usage examples ### v1.7.0 - ๐Ÿ› ๏ธ Developer Experience Revolution - โœจ **NEW: CLI Tools** - Complete command-line interface for automation - ๐Ÿš€ `ai-seo init` - Project initialization with framework templates - ๐Ÿ” `ai-seo analyze` - AI-powered content analysis and schema suggestions - โœ… `ai-seo validate` - Comprehensive schema validation with quality scoring - ๐Ÿง  `ai-seo optimize` - LLM optimization with voice search enhancements - ๐Ÿค– `ai-seo generate` - Auto-generate schemas from content using AI - ๐Ÿ—๏ธ `ai-seo build` - Production-ready schema optimization (preview) - โœจ **NEW: Visual Schema Builder** - Drag-and-drop interface for non-technical users - ๐Ÿ“Š Real-time visual schema construction with live preview - ๐ŸŽจ Dark/light theme support with customizable presets - ๐Ÿง  AI-powered suggestions and automatic improvements - โ†ถ Undo/redo functionality with complete edit history - ๐Ÿ“„ Export schemas as JSON with one-click download - โœจ **NEW: Code Generation** - Framework-specific code generation - โš›๏ธ React component generation with hooks integration - ๐ŸŸข Vue.js component templates with composition API support - โšก Next.js pages with SSG/SSR schema injection - ๐Ÿ”ง Customizable component names and structure - โœจ **NEW: Schema Debugging** - Advanced performance analysis and validation - ๐Ÿ“Š Quality scoring with detailed error reporting - โšก Performance analysis with bundle size optimization - ๐Ÿ” Complexity calculation and optimization recommendations - ๐Ÿ’ก Actionable suggestions for schema improvements - ๐Ÿš€ **Enhanced Developer Experience**: Zero-config setup with intelligent defaults - โšก **Maintained Performance**: All tools are tree-shakable and optional - ๐Ÿงช **Comprehensive Testing**: 15+ new tests covering all developer tools - ๐Ÿ“š **Complete Documentation**: CLI help, API docs, and usage examples ### v1.6.0 - ๐Ÿง  AI-Native SEO Revolution - โœจ **NEW: AI-Powered Schema Optimization** - Revolutionary LLM optimization engine - ๐Ÿค– Multi-target optimization for ChatGPT, Bard, Claude, and Perplexity - ๐Ÿง  Semantic enhancement with alternate names and AI-friendly descriptions - ๐ŸŽฏ Intelligent schema generation from content analysis - ๐Ÿ“Š Advanced content analysis with keyword extraction, entity recognition, and sentiment analysis - โœจ **NEW: Voice Search Optimization** - Next-generation voice query compatibility - ๐ŸŽ™๏ธ Automatic FAQ generation for voice queries - ๐Ÿ’ฌ Natural language conversion for conversational AI - ๐Ÿ—ฃ๏ธ Voice-optimized schema properties and actions - โœจ **NEW: Intelligent Content Analysis** - AI-powered content understanding - ๐Ÿ” Automatic schema type detection from page content - ๐Ÿ“ˆ Confidence scoring and multi-type schema generation - ๐Ÿท๏ธ Entity extraction (people, places, organizations) - ๐Ÿ˜Š Sentiment analysis and readability scoring - ๐Ÿš€ **Enhanced Developer Experience**: Full TypeScript support for all AI features - โšก **Maintained Performance**: Bundle size optimized despite 40% more AI functionality - ๐Ÿงช **Comprehensive Testing**: 25+ new tests covering all AI capabilities - ๐ŸŒŸ **Future-Ready**: Positioned for next-generation AI search engines ### v1.5.0 - ๐Ÿš€ Performance & Intelligence Release - โœจ **NEW: Advanced Caching System** - Intelligent schema caching with LRU eviction, compression, and metrics - ๐Ÿง  Smart caching strategy based on schema complexity and reuse patterns - โšก 80%+ cache hit rates for typical usage patterns - ๐Ÿ“Š Comprehensive metrics with hit/miss tracking and performance monitoring - ๐Ÿ—œ๏ธ Built-in compression to minimize memory usage - โœจ **NEW: Lazy Loading System** - On-demand schema injection for better performance - ๐Ÿ‘๏ธ Visibility-based loading using IntersectionObserver - ๐ŸŽฏ Interaction-based loading (click, scroll, touch) - ๐Ÿ”ง Custom condition support for advanced use cases - ๐Ÿ“ฑ Mobile-optimized with fallback strategies - โœจ **NEW: Performance Monitoring** - Built-in performance tracking and optimization - โฑ๏ธ Real-time injection time tracking - ๐Ÿ“ˆ Performance scoring with actionable recommendations - ๐ŸŽฏ Automatic optimization suggestions - ๐Ÿ“Š Detailed analytics and reporting - ๐Ÿš€ **Enhanced Developer Experience**: Zero breaking changes, full backward compatibility - โšก **Improved Performance**: Intelligent caching reduces repeated processing by 50-80% - ๐Ÿงช **Comprehensive Testing**: 43+ passing tests covering all new functionality ### v1.4.0 - ๐Ÿš€ Major Feature Release: Advanced SEO Intelligence - โœจ **NEW: Advanced Template Library** - Added 9 new schema templates across 4 categories: - ๐Ÿข **Jobs & Career**: Job postings, company profiles with salary ranges and remote work support - ๐Ÿณ **Recipe & Food**: Recipe schemas with nutrition info, cooking times, and restaurant menus - ๐ŸŽฌ **Media & Content**: Video content, podcast episodes, and software applications - ๐Ÿ“Š **Enhanced existing**: Improved all template categories with richer properties - ๐Ÿง  **NEW: Real-time Validation API** - Live schema validation with browser integration: - Debounced validation with performance monitoring - Custom event firing for third-party integrations - Browser context awareness and user agent tracking - ๐Ÿ“ˆ **NEW: Quality Analysis System** - Advanced schema quality scoring: - Completeness, SEO optimization, and technical correctness metrics - Rich results eligibility assessment with missing field detection - Industry benchmarks and competitor analysis capabilities - ๐Ÿ”ง **NEW: Auto-optimization Engine** - Intelligent schema enhancement: - Auto-fix common issues (missing @context, date formats, duplicates) - Aggressive mode with content inference from page context - Actionable recommendations with code examples - ๐ŸŽฏ **Enhanced Performance**: Bundle size maintained at 6.45 kB gzipped despite 40% more features - ๐Ÿงช **Comprehensive Testing**: 15 new tests covering all new functionality - ๐Ÿ“š **Full TypeScript Support**: Complete type definitions for all new APIs ### v1.3.3 - Patch Release: Testing & Security Fixes - ๐Ÿ”ง **Fixed Windows compatibility** - Replaced problematic Rollup-based Vitest setup with Node.js built-in test runner - ๐Ÿ”’ **Security updates** - Resolved 8 moderate security vulnerabilities in dev dependencies (esbuild, vitest chain) - โšก **Improved performance** - Bundle size reduced from 7.35 kB to 6.45 kB gzipped - ๐Ÿงช **Reliable testing** - New cross-platform test infrastructure using Node.js native test runner and happy-dom - ๐Ÿ“ฆ **Cleaner dependencies** - Removed 183 unnecessary dev dependencies, added only 54 essential ones - โœ… **Zero vulnerabilities** - Clean security audit with updated dependencies ### v1.3.2 - Documentation Refresh - Updated README changelog and examples - Clarified Next.js usage with proper `<script type="application/ld+json">` injection - Minor copy edits and consistency improvements ### v1.3.1 - Docs and API Polish - Added `getSchemaSuggestions` (correct spelling) and kept `getSchemaSupgestions` for backward compatibility - Fixed README examples (Next.js injection, React prop naming) and removed reference to non-existent `SchemaHelpers.createOrganization` - Simplified `prepublishOnly` to run `lint` only to avoid Windows publish issues - Added Windows-friendly test scripts via `cross-env` ### v1.3.0 - ๐Ÿš€ Major Feature Release - โšก **NEW: Schema Composer API** - Fluent interface for building complex schemas - ๐ŸŽญ **NEW: Framework Integrations** - React hooks, Vue composables, Svelte stores - ๐Ÿ“‹ **NEW: Industry Templates** - Pre-built schemas for ecommerce, restaurants, healthcare, real estate, education, events, and content - ๐Ÿ” **NEW: Enhanced Validation** - Detailed error messages, warnings, suggestions, and quality scoring - ๐Ÿ“ˆ **NEW: Analytics Integration** - Track schema performance, Google Analytics integration, custom events - ๐ŸŽฏ **Improved Developer Experience** - Better TypeScript support, more intuitive APIs - ๐Ÿ“š **Enhanced Documentation** - Comprehensive examples and use cases ### v1.2.0 - โœจ Extended Schema Helpers (Product, Article, LocalBusiness, Event) - โœจ Multiple Schema Support - โœจ Server-Si