@lynxflow/seo-engine 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # 🦁 @lynxflow/seo-engine — Guide Complet & Documentation Développeur
1
+ # 🦁 @lynxflow/seo-engine — LynxSEO (Lynxio) Master Guide & Documentation
2
2
 
3
- > **Le Moteur Universel de SEO Programmatique (pSEO), Optimisation Moteurs IA (AEO/GEO), Indexation Instantanée & Analytics Embarqués.**
3
+ > **Le Moteur Universel LynxSEO / Lynxio de SEO Programmatique (pSEO), Optimisation Moteurs IA (AEO/GEO), Indexation Instantanée, Crawleur Technique & Analytics Embarqués.**
4
4
 
5
- `@lynxflow/seo-engine` est un SDK TypeScript haute performance conçu pour générer, servir et indexer des millions de landing pages dynamiques, des avis 4.9/5★ Schema.org et des réponses directes pour les intelligences artificielles (ChatGPT Search, Perplexity, Google AI Overviews) en **moins de 0.05 milliseconde** avec **0% de charge sur votre base de données SQL**.
5
+ `@lynxflow/seo-engine` est le SDK officiel de **LynxSEO (Lynxio)** conçu pour générer, servir et indexer des millions de landing pages dynamiques, des avis 4.9/5★ Schema.org et des réponses directes pour les intelligences artificielles (ChatGPT Search, Perplexity, Google AI Overviews) en **moins de 0.05 milliseconde** avec **0% de charge sur votre base de données SQL**.
6
6
 
7
7
  ---
8
8
 
@@ -12,7 +12,7 @@
12
12
  3. [🏛️ Les 8 Matrices Programmatiques & Multiplicateurs](#3--les-8-matrices-programmatiques--multiplicateurs)
13
13
  4. [🚀 Tutoriel d'Intégration Pas-à-Pas (Next.js 15/16 & React 19)](#4--tutoriel-dintégration-pas-à-pas-nextjs-1516--react-19)
14
14
  5. [🔌 Intégration sur Autres Frameworks (WordPress, Shopify, Cloudflare, Laravel, Astro)](#5--intégration-sur-autres-frameworks)
15
- 6. [🧰 Les 7 Modules Embarqués du SDK (Analytics, SERP, Backlinks, IA, IndexNow)](#6--les-7-modules-embarqués-du-sdk)
15
+ 6. [🧰 Les Modules Embarqués du SDK (Crawler, Analytics, SERP, Backlinks, IA, IndexNow)](#6--les-modules-embarqués-du-sdk)
16
16
  7. [🌍 Internationalisation & Zéro Contenu Dupliqué (10 Langues & Hreflang)](#7--internationalisation--zéro-contenu-dupliqué)
17
17
  8. [📘 Référence Complète des Types TypeScript](#8--référence-complète-des-types-typescript)
18
18
 
@@ -24,19 +24,19 @@
24
24
  * ⚡ **Résolution Ultra-Rapide (< 0.05ms) :** Les pages et métadonnées sont résolues en mémoire vive sans requête SQL bloquante.
25
25
  * 🤖 **Conçu pour le Search IA (AEO / GEO) :** Génère des blocs de synthèse directe optimisés pour être cités en source n°1 par **ChatGPT Search**, **Perplexity** et **Google AI Overviews**.
26
26
  * 🛡️ **Fonctionne à 100% en Local / Sans Dépendance API Bloquante :** La validation cryptographique HMAC de votre clé d'API s'exécute directement sur votre serveur pour garantir un affichage instantané même en cas de panne réseau.
27
- * 📈 **Suite Complète Embarquée :** Accédez directement à vos analytics de trafic, votre détection de bots IA, vos positions de mots-clés Google et vos backlinks sans quitter votre application.
27
+ * 📈 **Suite Complète Embarquée :** Accédez directement à votre crawleur technique Seonaut/CrawlSEO, vos analytics de trafic, votre détection de bots IA, vos positions de mots-clés Google et vos backlinks sans quitter votre application.
28
28
 
29
29
  ---
30
30
 
31
31
  ## 2. 🔑 L'API Key Better Auth, Sécurité & Quotas
32
32
 
33
33
  ### Étape 1 : Obtenir votre Clé d'API
34
- Rendez-vous dans votre cockpit LynxFlow dans **Paramètres ➔ Clés d'API & Sécurité** et générez votre clé (`ba_key_...` ou `lynx_api_...`).
34
+ Rendez-vous dans votre cockpit **LynxSEO (Lynxio)** dans **Paramètres ➔ Clés d'API & Sécurité** et générez votre clé (`ba_key_...` ou `lynx_api_...`).
35
35
 
36
36
  ### Étape 2 : Configuration dans votre fichier `.env` ou `.env.local`
37
37
  ```bash
38
- # 🔑 Clé d'API Better Auth
39
- LYNXFLOW_API_KEY=ba_key_growth_tenant_acme_a8f93e
38
+ # 🔑 Clé d'API LynxSEO / Lynxio (Générée via Better Auth)
39
+ LYNXSEO_API_KEY=ba_key_growth_tenant_acme_a8f93e
40
40
 
41
41
  # 🌐 Domaine de votre site web
42
42
  NEXT_PUBLIC_SITE_URL=https://mon-entreprise.com
@@ -98,7 +98,7 @@ bun add @lynxflow/seo-engine
98
98
  import { createLynxSeoEngine } from "@lynxflow/seo-engine";
99
99
 
100
100
  export const seoEngine = createLynxSeoEngine({
101
- apiKey: process.env.LYNXFLOW_API_KEY!,
101
+ apiKey: process.env.LYNXSEO_API_KEY!,
102
102
  domain: process.env.NEXT_PUBLIC_SITE_URL || "https://mon-entreprise.com",
103
103
  brandName: "Acme Corp",
104
104
  defaultLocale: "fr",
@@ -1,10 +1,10 @@
1
1
  <?php
2
2
  /**
3
- * Plugin Name: LynxFlow SEO Engine (Moteur Programmatique & Blog Autonome)
4
- * Plugin URI: https://lynxintel.io/seo
5
- * Description: Moteur pSEO, AEO et Blog 100% autonome pour WordPress. Connexion en 1 clic via Better Auth. Génère et sert instantanément les 8 Matrices Programmatiques chez vous (< 0.05ms) avec sitemap XML automatique et 0% de charge sur votre base MySQL.
6
- * Version: 2.2.0
7
- * Author: LynxFlow Technologies
3
+ * Plugin Name: LynxSEO (Lynxio) Engine Moteur Programmatique & Blog Autonome
4
+ * Plugin URI: https://lynxio.io
5
+ * Description: Moteur pSEO, AEO et Blog 100% autonome pour WordPress par LynxSEO (Lynxio). Connexion en 1 clic via Better Auth. Génère et sert instantanément les 8 Matrices Programmatiques chez vous (< 0.05ms) avec sitemap XML automatique et 0% de charge sur votre base MySQL.
6
+ * Version: 2.3.0
7
+ * Author: LynxSEO / Lynxio Technologies
8
8
  * License: Proprietary
9
9
  */
10
10
 
package/dist/engine.d.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /**
2
+ * 🦁 LynxSEO Engine (Lynxio) — Universal Programmatic SEO & AI Search Engine SDK
3
+ */
1
4
  /**
2
5
  * ⚡ LynxSEO High-Speed Universal Dynamic Page Engine (Internationalized)
3
6
  *
package/dist/index.js CHANGED
@@ -72,7 +72,7 @@ class ApiKeyGuardian {
72
72
  maxDomains: 1,
73
73
  monthlyCreditBudget: 500,
74
74
  tokenManager: new TokenQuotaManager("starter"),
75
- errorMessage: "Missing API Key. Please set LYNXFLOW_API_KEY or pass apiKey in config."
75
+ errorMessage: "Missing API Key. Please set LYNXSEO_API_KEY (or LYNXIO_API_KEY) or pass apiKey in config."
76
76
  };
77
77
  }
78
78
  const cleanKey = apiKey.trim();
@@ -1307,7 +1307,7 @@ class LynxSeoEngine {
1307
1307
  ...config
1308
1308
  };
1309
1309
  this.servicesMap = new Map((config.services || []).map((s) => [s.slug, s]));
1310
- const rawKey = config.apiKey || config.licenseKey || "";
1310
+ const rawKey = config.apiKey || config.licenseKey || typeof process !== "undefined" && process.env && (process.env.LYNXSEO_API_KEY || process.env.LYNXIO_API_KEY || process.env.LYNXFLOW_API_KEY) || "";
1311
1311
  this.authStatus = ApiKeyGuardian.validate(rawKey, config.domain);
1312
1312
  this.analytics = new LynxAnalyticsClient(rawKey);
1313
1313
  this.serp = new SerpClient(rawKey);
package/dist/index.mjs CHANGED
@@ -72,7 +72,7 @@ class ApiKeyGuardian {
72
72
  maxDomains: 1,
73
73
  monthlyCreditBudget: 500,
74
74
  tokenManager: new TokenQuotaManager("starter"),
75
- errorMessage: "Missing API Key. Please set LYNXFLOW_API_KEY or pass apiKey in config."
75
+ errorMessage: "Missing API Key. Please set LYNXSEO_API_KEY (or LYNXIO_API_KEY) or pass apiKey in config."
76
76
  };
77
77
  }
78
78
  const cleanKey = apiKey.trim();
@@ -1307,7 +1307,7 @@ class LynxSeoEngine {
1307
1307
  ...config
1308
1308
  };
1309
1309
  this.servicesMap = new Map((config.services || []).map((s) => [s.slug, s]));
1310
- const rawKey = config.apiKey || config.licenseKey || "";
1310
+ const rawKey = config.apiKey || config.licenseKey || typeof process !== "undefined" && process.env && (process.env.LYNXSEO_API_KEY || process.env.LYNXIO_API_KEY || process.env.LYNXFLOW_API_KEY) || "";
1311
1311
  this.authStatus = ApiKeyGuardian.validate(rawKey, config.domain);
1312
1312
  this.analytics = new LynxAnalyticsClient(rawKey);
1313
1313
  this.serp = new SerpClient(rawKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynxflow/seo-engine",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Proprietary High-Performance pSEO & AI Search Engine SDK by LynxFlow",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/src/auth-key.ts CHANGED
@@ -57,7 +57,7 @@ export class ApiKeyGuardian {
57
57
  maxDomains: 1,
58
58
  monthlyCreditBudget: 500,
59
59
  tokenManager: new TokenQuotaManager("starter"),
60
- errorMessage: "Missing API Key. Please set LYNXFLOW_API_KEY or pass apiKey in config.",
60
+ errorMessage: "Missing API Key. Please set LYNXSEO_API_KEY (or LYNXIO_API_KEY) or pass apiKey in config.",
61
61
  };
62
62
  }
63
63
 
package/src/engine.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * 🦁 LynxSEO Engine (Lynxio) — Universal Programmatic SEO & AI Search Engine SDK
3
+ */
4
+
5
+ declare const process: any;
6
+
1
7
  /**
2
8
  * ⚡ LynxSEO High-Speed Universal Dynamic Page Engine (Internationalized)
3
9
  *
@@ -53,7 +59,11 @@ export class LynxSeoEngine {
53
59
  ...config,
54
60
  };
55
61
  this.servicesMap = new Map((config.services || []).map((s) => [s.slug, s]));
56
- const rawKey = config.apiKey || config.licenseKey || "";
62
+ const rawKey =
63
+ config.apiKey ||
64
+ config.licenseKey ||
65
+ (typeof process !== "undefined" && process.env && (process.env.LYNXSEO_API_KEY || process.env.LYNXIO_API_KEY || process.env.LYNXFLOW_API_KEY)) ||
66
+ "";
57
67
  this.authStatus = ApiKeyGuardian.validate(rawKey, config.domain);
58
68
 
59
69
  this.analytics = new LynxAnalyticsClient(rawKey);