@lynx-seo/engine 3.3.1 → 3.3.3
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 +63 -0
- package/dist/analytics/app-store-optimization-engine.d.ts +96 -0
- package/dist/analytics/behavioral-psychology-persuasion-engine.d.ts +48 -0
- package/dist/analytics/co-marketing-partner-scoring-engine.d.ts +58 -0
- package/dist/analytics/cold-email-outreach-engine.d.ts +58 -0
- package/dist/analytics/competitor-intelligence-radar-engine.d.ts +65 -0
- package/dist/analytics/customer-voice-research-voc-engine.d.ts +70 -0
- package/dist/analytics/directory-submissions-auditor-engine.d.ts +62 -0
- package/dist/analytics/earned-media-pr-pitch-engine.d.ts +56 -0
- package/dist/analytics/engineering-as-marketing-free-tool-engine.d.ts +67 -0
- package/dist/analytics/ethical-popup-overlay-engine.d.ts +59 -0
- package/dist/analytics/grand-slam-offer-engine.d.ts +68 -0
- package/dist/analytics/in-app-paywall-gate-engine.d.ts +69 -0
- package/dist/analytics/influencer-creator-campaign-engine.d.ts +67 -0
- package/dist/analytics/landing-page-hero-copy-engine.d.ts +49 -0
- package/dist/analytics/lead-capture-form-optimization-engine.d.ts +57 -0
- package/dist/analytics/lead-magnet-architecture-engine.d.ts +40 -0
- package/dist/analytics/product-hunt-launch-war-room-engine.d.ts +57 -0
- package/dist/analytics/recurring-marketing-loop-engine.d.ts +73 -0
- package/dist/analytics/revops-pipeline-scoring-engine.d.ts +58 -0
- package/dist/analytics/saas-pricing-packaging-engine.d.ts +55 -0
- package/dist/analytics/saas-value-metric-pricing-engine.d.ts +64 -0
- package/dist/analytics/server-side-tracking-capi-engine.d.ts +99 -0
- package/dist/analytics/signal-prospecting-qualification-engine.d.ts +54 -0
- package/dist/analytics/sms-marketing-compliance-engine.d.ts +62 -0
- package/dist/analytics/statistical-experiment-ab-testing-engine.d.ts +103 -0
- package/dist/analytics/subscription-churn-prevention-engine.d.ts +91 -0
- package/dist/analytics/user-onboarding-activation-engine.d.ts +68 -0
- package/dist/cro-landing-page-auditor.d.ts +3 -3
- package/dist/http-middleware.d.ts +121 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +4706 -22
- package/dist/index.mjs +4706 -22
- package/dist/matrix-engine.d.ts +3 -0
- package/dist/mcp-seo-server.js +7 -1
- package/dist/plugins/two-factor-auth/index.d.ts +3 -2
- package/dist/sample-dataset.d.ts +15 -0
- package/dist/types.d.ts +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,69 @@ High-Performance Universal Programmatic SEO & Structured Data Engine for Modern
|
|
|
23
23
|
|
|
24
24
|
---
|
|
25
25
|
|
|
26
|
+
## Quickstart: Offline Matrix Generation (No API Key Required)
|
|
27
|
+
|
|
28
|
+
You can explore programmatic matrix generation and templates immediately without an API key using `PseoMatrixEngine`:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { PseoMatrixEngine, samplePseoDataset } from "@lynxseo/engine";
|
|
32
|
+
|
|
33
|
+
// 📦 Zero network call, 100% in-memory calculation
|
|
34
|
+
const matrix = new PseoMatrixEngine();
|
|
35
|
+
const pages = matrix.generateLocalGeoMatrix(
|
|
36
|
+
"https://example.com",
|
|
37
|
+
samplePseoDataset.services,
|
|
38
|
+
samplePseoDataset.locations,
|
|
39
|
+
{ language: "fr", cleanDirectRoutes: true }
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
console.log(`Generated ${pages.length} programmatic pages instantly!`);
|
|
43
|
+
console.log(pages[0].urlPath); // -> "/pompe-a-chaleur/paris"
|
|
44
|
+
console.log(pages[0].canonicalUrl); // -> "https://example.com/pompe-a-chaleur/paris"
|
|
45
|
+
console.log(pages[0].title); // -> "Installation Pompe à Chaleur à Paris"
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Managed Cloud Engine (`LynxSeoEngine`)
|
|
51
|
+
|
|
52
|
+
`LynxSeoEngine` connects to the LynxSEO SaaS platform to provide live page resolution, unique URL catalog quotas, automated IndexNow/Google push, and real-time AI crawler analytics.
|
|
53
|
+
|
|
54
|
+
An active API key is mandatory for `LynxSeoEngine`:
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { LynxSeoEngine } from "@lynxseo/engine";
|
|
58
|
+
|
|
59
|
+
const engine = new LynxSeoEngine({
|
|
60
|
+
apiKey: process.env.LYNXSEO_API_KEY!, // e.g. "ba_live_..."
|
|
61
|
+
siteUrl: "https://example.com",
|
|
62
|
+
brandName: "Acme",
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
const page = await engine.resolve("/services/pompe-a-chaleur/france/paris");
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Authentication & API Keys (Commercial SaaS Model)
|
|
71
|
+
|
|
72
|
+
Like modern developer SDKs (Stripe, Sentry, Algolia), `@lynx-seo/engine` requires an API key for managed cloud features (`LynxSeoEngine`), while providing pure offline in-memory matrix generation via `PseoMatrixEngine`.
|
|
73
|
+
|
|
74
|
+
| Engine Class | API Key Requirement | Purpose |
|
|
75
|
+
| :--- | :--- | :--- |
|
|
76
|
+
| **`LynxSeoEngine`** | **Mandatory** (`LYNXSEO_API_KEY` or `{ apiKey }`) | Managed engine with page quotas, live IndexNow submission, analytics and AI crawler detection. |
|
|
77
|
+
| **`PseoMatrixEngine`** | **None** (100% offline) | Pure algorithmic RAM matrix generation, combinatorial route calculations, and local templates. |
|
|
78
|
+
|
|
79
|
+
### API Key Types & Testing
|
|
80
|
+
|
|
81
|
+
- **Production:** `ba_live_...`
|
|
82
|
+
- **Testing & CI:** `ba_test_...` (e.g., `ba_test_demo`, accepted for local integration tests without network calls)
|
|
83
|
+
- **Trial / Sandbox:** `ba_trial_...`
|
|
84
|
+
|
|
85
|
+
For complete details, see [AUTHENTICATION.md](./AUTHENTICATION.md).
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
26
89
|
## Installation
|
|
27
90
|
|
|
28
91
|
```bash
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* App Store Optimization (ASO) Engine
|
|
3
|
+
*
|
|
4
|
+
* Moteur d'audit et d'optimisation pour Apple App Store et Google Play Store :
|
|
5
|
+
* - Analyse des métadonnées strictes (limites de caractères, répétitions, mots interdits).
|
|
6
|
+
* - Évaluation du champ de mots-clés Apple (100 car, déduplication, absence d'espaces après virgules).
|
|
7
|
+
* - Densité sémantique pour Google Play (mots-clés dans Short Description & Long Description).
|
|
8
|
+
* - Calcul du score d'optimisation global ASO (0 à 100) et matrice d'opportunités de conversion.
|
|
9
|
+
*/
|
|
10
|
+
export type StorePlatform = 'apple' | 'google';
|
|
11
|
+
export interface AppleListingInput {
|
|
12
|
+
platform: 'apple';
|
|
13
|
+
title: string;
|
|
14
|
+
subtitle: string;
|
|
15
|
+
keywordsField: string;
|
|
16
|
+
promotionalText?: string;
|
|
17
|
+
description: string;
|
|
18
|
+
categoryPrimary?: string;
|
|
19
|
+
categorySecondary?: string;
|
|
20
|
+
ratingAverage?: number;
|
|
21
|
+
ratingCount?: number;
|
|
22
|
+
screenshotsCount?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface GooglePlayListingInput {
|
|
25
|
+
platform: 'google';
|
|
26
|
+
title: string;
|
|
27
|
+
shortDescription: string;
|
|
28
|
+
longDescription: string;
|
|
29
|
+
category?: string;
|
|
30
|
+
ratingAverage?: number;
|
|
31
|
+
ratingCount?: number;
|
|
32
|
+
screenshotsCount?: number;
|
|
33
|
+
}
|
|
34
|
+
export type StoreListingInput = AppleListingInput | GooglePlayListingInput;
|
|
35
|
+
export interface AsoIssue {
|
|
36
|
+
severity: 'critical' | 'warning' | 'info';
|
|
37
|
+
field: string;
|
|
38
|
+
message: string;
|
|
39
|
+
recommendation: string;
|
|
40
|
+
penaltyPoints: number;
|
|
41
|
+
}
|
|
42
|
+
export interface KeywordDensityItem {
|
|
43
|
+
keyword: string;
|
|
44
|
+
count: number;
|
|
45
|
+
densityPercent: number;
|
|
46
|
+
status: 'optimal' | 'under' | 'stuffing';
|
|
47
|
+
}
|
|
48
|
+
export interface AsoStoreListingAuditReport {
|
|
49
|
+
platform: StorePlatform;
|
|
50
|
+
overallScore: number;
|
|
51
|
+
ratingTier: 'Excellent' | 'Bon' | 'À améliorer' | 'Critique';
|
|
52
|
+
characterUtilization: {
|
|
53
|
+
title: {
|
|
54
|
+
used: number;
|
|
55
|
+
max: number;
|
|
56
|
+
ratioPercent: number;
|
|
57
|
+
};
|
|
58
|
+
secondaryField: {
|
|
59
|
+
name: string;
|
|
60
|
+
used: number;
|
|
61
|
+
max: number;
|
|
62
|
+
ratioPercent: number;
|
|
63
|
+
};
|
|
64
|
+
keywordsOrLong: {
|
|
65
|
+
name: string;
|
|
66
|
+
used: number;
|
|
67
|
+
max: number;
|
|
68
|
+
ratioPercent: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
policyViolations: string[];
|
|
72
|
+
issues: AsoIssue[];
|
|
73
|
+
topKeywords: KeywordDensityItem[];
|
|
74
|
+
conversionFactors: {
|
|
75
|
+
visualScore: number;
|
|
76
|
+
socialProofScore: number;
|
|
77
|
+
textualClarityScore: number;
|
|
78
|
+
};
|
|
79
|
+
actionPlan: Array<{
|
|
80
|
+
priority: number;
|
|
81
|
+
action: string;
|
|
82
|
+
expectedImpact: string;
|
|
83
|
+
}>;
|
|
84
|
+
}
|
|
85
|
+
export declare class AppStoreOptimizationEngine {
|
|
86
|
+
/**
|
|
87
|
+
* Analyse complète d'une fiche d'application (Apple ou Google)
|
|
88
|
+
*/
|
|
89
|
+
static auditListing(input: StoreListingInput): AsoStoreListingAuditReport;
|
|
90
|
+
private static auditAppleListing;
|
|
91
|
+
private static auditGooglePlayListing;
|
|
92
|
+
private static extractKeywordDensities;
|
|
93
|
+
private static tokenize;
|
|
94
|
+
private static getRatingTier;
|
|
95
|
+
private static buildActionPlan;
|
|
96
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Behavioral Psychology & Persuasion Engine
|
|
3
|
+
*
|
|
4
|
+
* Analyse et optimisation des leviers psychologiques et modèles mentaux décisionnels :
|
|
5
|
+
* - 10 principes de sciences comportementales (Ancrage, Aversion à la perte, Réciprocité, Hick, etc.)
|
|
6
|
+
* - Audit éthique anti-dark patterns (interdiction confirm-shaming, fausse rareté bannie FTC)
|
|
7
|
+
* - Matrice prescriptive d'optimisation Avant / Après avec impact attendu sur le taux de conversion.
|
|
8
|
+
*/
|
|
9
|
+
export type PsychologicalPrincipleId = "anchoring_decoy" | "loss_aversion" | "social_proof_specificity" | "commitment_foot_in_the_door" | "ethical_scarcity_urgency" | "endowed_progress" | "ikea_effect" | "default_effect" | "reciprocity" | "choice_architecture_hicks";
|
|
10
|
+
export interface PsychologicalPrincipleAudit {
|
|
11
|
+
id: PsychologicalPrincipleId;
|
|
12
|
+
name: string;
|
|
13
|
+
category: "cognitive_bias" | "social_influence" | "choice_architecture" | "motivation";
|
|
14
|
+
score: number;
|
|
15
|
+
status: "optimal" | "acceptable" | "underutilized" | "dark_pattern_detected";
|
|
16
|
+
explanation: string;
|
|
17
|
+
currentImplementation?: string;
|
|
18
|
+
prescriptiveOptimization: {
|
|
19
|
+
beforeCopy: string;
|
|
20
|
+
afterCopy: string;
|
|
21
|
+
expectedLiftPercent: number;
|
|
22
|
+
behavioralMechanism: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface BehavioralAuditInput {
|
|
26
|
+
pageType: "pricing" | "landing_page" | "checkout" | "onboarding" | "lead_magnet";
|
|
27
|
+
hasFakeCountdownUrgency?: boolean;
|
|
28
|
+
hasConfirmShaming?: boolean;
|
|
29
|
+
hasHiddenPrecheckedAddons?: boolean;
|
|
30
|
+
hasSpecificQuantifiedSocialProof?: boolean;
|
|
31
|
+
numberOfChoicesOffered?: number;
|
|
32
|
+
hasFreeUpfrontValue?: boolean;
|
|
33
|
+
hasProgressEndowment?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface BehavioralAuditReport {
|
|
36
|
+
overallPersuasionScore: number;
|
|
37
|
+
ethicalComplianceScore: number;
|
|
38
|
+
ftcComplianceWarning: boolean;
|
|
39
|
+
principlesAudited: PsychologicalPrincipleAudit[];
|
|
40
|
+
top3PriorityActionItems: string[];
|
|
41
|
+
summary: string;
|
|
42
|
+
}
|
|
43
|
+
export declare class BehavioralPsychologyPersuasionEngine {
|
|
44
|
+
/**
|
|
45
|
+
* Réalise un audit comportemental complet et formule des recommandations éthiques.
|
|
46
|
+
*/
|
|
47
|
+
static auditBehavioralPersuasion(input: BehavioralAuditInput): BehavioralAuditReport;
|
|
48
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Co-Marketing Partner Scoring & Campaign Blueprint Engine
|
|
3
|
+
*
|
|
4
|
+
* Moteur d'évaluation de partenariats croisés et de campagnes co-brandées :
|
|
5
|
+
* - Analyse du chevauchement d'audience (Audience Overlap & Workflow Adjacency).
|
|
6
|
+
* - Matrice de notation partenaire sur 5 dimensions (Fit, Reach, Réputation, Réciprocité, Facilité).
|
|
7
|
+
* - Qualification du Tier de partenariat (Tier 1 Stratégique -> Tier 3 Passif).
|
|
8
|
+
* - Générateur de blueprint de campagne conjointe (Webinar, Benchmark partagé, Bundle, Intégration).
|
|
9
|
+
* - Modélisation de l'impact SEO (autorité de domaine, acquisition de backlinks éditoriaux dofollow).
|
|
10
|
+
*/
|
|
11
|
+
export type WorkflowAdjacency = 'before' | 'after' | 'alongside' | 'competing_risk';
|
|
12
|
+
export interface PartnerProfileInput {
|
|
13
|
+
partnerName: string;
|
|
14
|
+
partnerWebsite: string;
|
|
15
|
+
partnerCategory: 'cms_ecommerce' | 'crm_automation' | 'analytics_bi' | 'dev_tools' | 'seo_content_agency';
|
|
16
|
+
workflowAdjacency: WorkflowAdjacency;
|
|
17
|
+
audienceFitScore: number;
|
|
18
|
+
audienceSizeScore: number;
|
|
19
|
+
brandAuthorityScore: number;
|
|
20
|
+
reciprocityScore: number;
|
|
21
|
+
executionEaseScore: number;
|
|
22
|
+
monthlyVisitsEstimate?: number;
|
|
23
|
+
}
|
|
24
|
+
export type PartnershipTier = 'Tier 1 Stratégique (Webinar & Intégration Native)' | 'Tier 2 Tactique (Livre Blanc & Co-citation)' | 'Tier 3 Passif (Listing App Store & Échange Social)' | 'Déconseillé (Conflit Concurrentiel ou Déséquilibre)';
|
|
25
|
+
export interface JointCampaignBlueprint {
|
|
26
|
+
campaignTitle: string;
|
|
27
|
+
campaignFormat: 'joint_benchmark_report' | 'co_branded_webinar' | 'integration_launch' | 'partner_bundle';
|
|
28
|
+
deliverables: string[];
|
|
29
|
+
fourWeekTimeline: {
|
|
30
|
+
week: number;
|
|
31
|
+
milestone: string;
|
|
32
|
+
}[];
|
|
33
|
+
expectedSeoImpact: {
|
|
34
|
+
estimatedDofollowBacklinks: number;
|
|
35
|
+
targetDomainAuthority: string;
|
|
36
|
+
monthlyReferralClicks: number;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface PartnerScoringResult {
|
|
40
|
+
partnerScore: number;
|
|
41
|
+
tier: PartnershipTier;
|
|
42
|
+
dimensionScoresPct: {
|
|
43
|
+
fit: number;
|
|
44
|
+
reach: number;
|
|
45
|
+
reputation: number;
|
|
46
|
+
reciprocity: number;
|
|
47
|
+
execution: number;
|
|
48
|
+
};
|
|
49
|
+
keyAdvantages: string[];
|
|
50
|
+
watchouts: string[];
|
|
51
|
+
recommendedCampaign: JointCampaignBlueprint;
|
|
52
|
+
}
|
|
53
|
+
export declare class CoMarketingPartnerScoringEngine {
|
|
54
|
+
/**
|
|
55
|
+
* Évalue le potentiel d'un partenaire et conçoit la campagne conjointe optimale
|
|
56
|
+
*/
|
|
57
|
+
static evaluatePartner(input: PartnerProfileInput): PartnerScoringResult;
|
|
58
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cold Email Outreach & Deliverability Audit Engine
|
|
3
|
+
*
|
|
4
|
+
* Moteur de rédaction et d'audit de séquences de prospection B2B par email :
|
|
5
|
+
* - Séquence multi-touch (Email 1: Signal & Observation, Email 2: Metric Bump, Email 3: Polite Break-up).
|
|
6
|
+
* - Concision stricte (< 75 mots sur l'email d'introduction).
|
|
7
|
+
* - Audit de délivrabilité (filtres anti-spam, ratio "Vous" vs "Je/Nous", absence de liens suspects).
|
|
8
|
+
* - Call-to-action à faible friction (Interest-based au lieu de Time-commitment).
|
|
9
|
+
*/
|
|
10
|
+
export type ProspectPersonaTier = 'c_suite' | 'head_director' | 'operational_lead';
|
|
11
|
+
export interface ColdEmailCampaignInput {
|
|
12
|
+
targetPersona: ProspectPersonaTier;
|
|
13
|
+
prospectFirstName?: string;
|
|
14
|
+
prospectCompany: string;
|
|
15
|
+
senderName: string;
|
|
16
|
+
senderCompany: string;
|
|
17
|
+
triggerObservation: string;
|
|
18
|
+
corePainPoint: string;
|
|
19
|
+
proofMetric: string;
|
|
20
|
+
ctaType: 'interest_based' | 'soft_feedback' | 'specific_benchmark';
|
|
21
|
+
}
|
|
22
|
+
export interface ColdEmailTouch {
|
|
23
|
+
touchNumber: number;
|
|
24
|
+
delayDays: number;
|
|
25
|
+
subjectLines: string[];
|
|
26
|
+
bodyText: string;
|
|
27
|
+
wordCount: number;
|
|
28
|
+
hasExternalLink: boolean;
|
|
29
|
+
ctaText: string;
|
|
30
|
+
}
|
|
31
|
+
export interface DeliverabilityAuditResult {
|
|
32
|
+
deliverabilityScore: number;
|
|
33
|
+
spamTriggerWordsDetected: string[];
|
|
34
|
+
youVsWeRatio: {
|
|
35
|
+
youCount: number;
|
|
36
|
+
weCount: number;
|
|
37
|
+
ratio: number;
|
|
38
|
+
status: 'Optimal (> 2:1)' | 'Équilibré' | 'Trop égocentrique (< 1:1)';
|
|
39
|
+
};
|
|
40
|
+
predictedOpenRatePct: number;
|
|
41
|
+
predictedReplyRatePct: number;
|
|
42
|
+
recommendations: string[];
|
|
43
|
+
}
|
|
44
|
+
export interface ColdEmailCampaignResult {
|
|
45
|
+
touches: ColdEmailTouch[];
|
|
46
|
+
audit: DeliverabilityAuditResult;
|
|
47
|
+
bestPracticesNotice: string;
|
|
48
|
+
}
|
|
49
|
+
export declare class ColdEmailOutreachEngine {
|
|
50
|
+
/**
|
|
51
|
+
* Génère une séquence 3-touch personnalisée et concise
|
|
52
|
+
*/
|
|
53
|
+
static generateSequence(input: ColdEmailCampaignInput): ColdEmailCampaignResult;
|
|
54
|
+
/**
|
|
55
|
+
* Analyse le texte pour repérer les déclencheurs de spam et le ratio Vous/Nous
|
|
56
|
+
*/
|
|
57
|
+
static auditDeliverability(fullText: string): DeliverabilityAuditResult;
|
|
58
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Competitor Intelligence Dossier & Vulnerability Radar Engine
|
|
3
|
+
*
|
|
4
|
+
* Analyse comparative multicritère de concurrents et détection d'angles morts :
|
|
5
|
+
* - Profilage 5 piliers (Pricing, Features, Modernité technique, Réputation/Churn, IA/AEO)
|
|
6
|
+
* - Matrice de vulnérabilités critiques exploitables
|
|
7
|
+
* - Générateur de stratégie de conquête & Blueprint de page comparative SEO
|
|
8
|
+
*
|
|
9
|
+
* Déterministe, sans dépendance externe.
|
|
10
|
+
*/
|
|
11
|
+
export interface CompetitorRadarProfileInput {
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
domain: string;
|
|
15
|
+
category: "direct_rival" | "legacy_incumbent" | "niche_challenger";
|
|
16
|
+
startingPriceMonthlyEur: number;
|
|
17
|
+
pricingModel: "freemium" | "tiered_self_serve" | "opaque_sales_only" | "per_seat_punitive";
|
|
18
|
+
strengths: string[];
|
|
19
|
+
weaknesses: string[];
|
|
20
|
+
commonChurnComplaints: string[];
|
|
21
|
+
hasAiSearchOptimization: boolean;
|
|
22
|
+
hasServerSideEdgeTracking: boolean;
|
|
23
|
+
hasOpenPricingForAiAgents: boolean;
|
|
24
|
+
}
|
|
25
|
+
export interface CompetitorEvaluationScores {
|
|
26
|
+
pricingAccessibilityScore: number;
|
|
27
|
+
featureModernityScore: number;
|
|
28
|
+
marketVulnerabilityScore: number;
|
|
29
|
+
aiReadinessScore: number;
|
|
30
|
+
overallThreatScore: number;
|
|
31
|
+
}
|
|
32
|
+
export interface ExploitableVulnerability {
|
|
33
|
+
competitorId: string;
|
|
34
|
+
competitorName: string;
|
|
35
|
+
angle: "pricing_discontent" | "missing_aeo" | "per_seat_trap" | "legacy_slowness" | "vendor_lock_in";
|
|
36
|
+
title: string;
|
|
37
|
+
description: string;
|
|
38
|
+
counterAttackStrategy: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ComparativeSeoPageBlueprint {
|
|
41
|
+
slug: string;
|
|
42
|
+
suggestedTitle: string;
|
|
43
|
+
metaDescription: string;
|
|
44
|
+
recommendedH1: string;
|
|
45
|
+
primaryValueHook: string;
|
|
46
|
+
comparisonPoints: Array<{
|
|
47
|
+
feature: string;
|
|
48
|
+
ourSolution: string;
|
|
49
|
+
competitorSolution: string;
|
|
50
|
+
ourAdvantage: string;
|
|
51
|
+
}>;
|
|
52
|
+
}
|
|
53
|
+
export interface CompetitorDossierReport {
|
|
54
|
+
competitors: Array<{
|
|
55
|
+
input: CompetitorRadarProfileInput;
|
|
56
|
+
scores: CompetitorEvaluationScores;
|
|
57
|
+
}>;
|
|
58
|
+
topVulnerabilities: ExploitableVulnerability[];
|
|
59
|
+
suggestedComparativePages: ComparativeSeoPageBlueprint[];
|
|
60
|
+
executiveSummary: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class CompetitorIntelligenceRadarEngine {
|
|
63
|
+
static evaluateCompetitor(comp: CompetitorRadarProfileInput): CompetitorEvaluationScores;
|
|
64
|
+
static analyzeLandscape(competitors: CompetitorRadarProfileInput[], ourBrandName?: string): CompetitorDossierReport;
|
|
65
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moteur d'Analyse Voice of Customer (VoC), JTBD & Product-Market Fit
|
|
3
|
+
*
|
|
4
|
+
* Inspiré du skill `customer-research` et des méthodes de recherche utilisateur qualitatives/quantitatives :
|
|
5
|
+
* - Jobs To Be Done (JTBD) tripartites : Fonctionnel (la tâche), Émotionnel (le ressenti), Social (le statut).
|
|
6
|
+
* - Identification des déclencheurs critiques (Triggers) et des blocages concurrentiels.
|
|
7
|
+
* - Répertoire des "Money Quotes" (verbatims bruts et expressions idiomatiques pour le copywriting).
|
|
8
|
+
* - Enquête Product-Market Fit de Sean Ellis (taux "Très déçu" avec seuil critique de 40%).
|
|
9
|
+
* - Matrice de confiance des insights (Validation croisée sources primaires vs secondaires).
|
|
10
|
+
*/
|
|
11
|
+
export type JtbdDimension = 'functional' | 'emotional' | 'social';
|
|
12
|
+
export interface CustomerVerbatim {
|
|
13
|
+
id: string;
|
|
14
|
+
source: 'interview' | 'support_ticket' | 'g2_review' | 'reddit_community' | 'survey';
|
|
15
|
+
verbatim: string;
|
|
16
|
+
speakerRole: string;
|
|
17
|
+
sentiment: 'frustrated' | 'relieved' | 'empowered' | 'confused';
|
|
18
|
+
extractedPain: string;
|
|
19
|
+
desiredOutcome: string;
|
|
20
|
+
isMoneyQuote: boolean;
|
|
21
|
+
confidence: 'high' | 'medium' | 'low';
|
|
22
|
+
}
|
|
23
|
+
export interface JtbdDefinition {
|
|
24
|
+
dimension: JtbdDimension;
|
|
25
|
+
statement: string;
|
|
26
|
+
priorityScore: number;
|
|
27
|
+
}
|
|
28
|
+
export interface PmfSurveySummary {
|
|
29
|
+
totalResponses: number;
|
|
30
|
+
veryDisappointedCount: number;
|
|
31
|
+
somewhatDisappointedCount: number;
|
|
32
|
+
notDisappointedCount: number;
|
|
33
|
+
}
|
|
34
|
+
export interface CustomerResearchInput {
|
|
35
|
+
targetIcp: string;
|
|
36
|
+
jtbdList: JtbdDefinition[];
|
|
37
|
+
verbatims: CustomerVerbatim[];
|
|
38
|
+
pmfSurvey?: PmfSurveySummary;
|
|
39
|
+
}
|
|
40
|
+
export interface CustomerResearchReport {
|
|
41
|
+
targetIcp: string;
|
|
42
|
+
totalVerbatimsAnalyzed: number;
|
|
43
|
+
moneyQuotes: CustomerVerbatim[];
|
|
44
|
+
primaryTriggers: string[];
|
|
45
|
+
topPainsRanked: {
|
|
46
|
+
pain: string;
|
|
47
|
+
count: number;
|
|
48
|
+
urgency: 'critical' | 'moderate';
|
|
49
|
+
}[];
|
|
50
|
+
jtbdSynthesis: {
|
|
51
|
+
functional: string[];
|
|
52
|
+
emotional: string[];
|
|
53
|
+
social: string[];
|
|
54
|
+
};
|
|
55
|
+
pmfScore?: {
|
|
56
|
+
veryDisappointedPct: number;
|
|
57
|
+
hasReachedPmf: boolean;
|
|
58
|
+
verdict: string;
|
|
59
|
+
};
|
|
60
|
+
copywritingLexicon: {
|
|
61
|
+
customerWords: string[];
|
|
62
|
+
internalJargonToAvoid: string[];
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export declare class CustomerVoiceResearchVocEngine {
|
|
66
|
+
/**
|
|
67
|
+
* Analyse et synthétise les données de recherche client (VoC & JTBD).
|
|
68
|
+
*/
|
|
69
|
+
static analyzeResearch(input: CustomerResearchInput): CustomerResearchReport;
|
|
70
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moteur d'audit et de stratégie de soumission aux répertoires (Directory Submissions)
|
|
3
|
+
* Inspiré de la compétence `directory-submissions`.
|
|
4
|
+
*
|
|
5
|
+
* Analyse les prérequis indispensables (Fondations avant Soumission),
|
|
6
|
+
* catégorise les répertoires par Tiers (Launch Flagship, SaaS Review, AI Directories, MCP/Agent Registries),
|
|
7
|
+
* calcule le score de préparation (Readiness Score 0-100%) et génère des variantes de positionnement.
|
|
8
|
+
*/
|
|
9
|
+
export type DirectoryTier = "tier1_flagship" | "tier2_saas_review" | "tier3_ai_directories" | "tier4_mcp_agent_registries" | "tier5_nocode_directories";
|
|
10
|
+
export interface DirectoryItem {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
tier: DirectoryTier;
|
|
14
|
+
domainRating: number;
|
|
15
|
+
backlinkType: "dofollow" | "nofollow" | "profile";
|
|
16
|
+
aiCitationWeight: "high" | "medium" | "low";
|
|
17
|
+
reviewRequirement: boolean;
|
|
18
|
+
typicalReviewTimeDays: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ReadinessChecklist {
|
|
21
|
+
hasPublicUrl: boolean;
|
|
22
|
+
hasPricingPage: boolean;
|
|
23
|
+
hasPrivacyAndTerms: boolean;
|
|
24
|
+
hasLogoAssets: boolean;
|
|
25
|
+
hasScreenshotsAndVideo: boolean;
|
|
26
|
+
hasSequentialHeadingsAndSchema: boolean;
|
|
27
|
+
hasAlternativeAndUseCasePages: boolean;
|
|
28
|
+
hasActiveBetaUsersCount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface DirectoryAuditorInput {
|
|
31
|
+
productName: string;
|
|
32
|
+
oneLinePitch: string;
|
|
33
|
+
primaryCategory: string;
|
|
34
|
+
targetAudience: "founders" | "marketers" | "developers" | "enterprises";
|
|
35
|
+
checklist: ReadinessChecklist;
|
|
36
|
+
selectedTiers?: DirectoryTier[];
|
|
37
|
+
}
|
|
38
|
+
export interface DirectoryPositioningVariant {
|
|
39
|
+
audience: string;
|
|
40
|
+
angle: string;
|
|
41
|
+
headline: string;
|
|
42
|
+
shortDescription: string;
|
|
43
|
+
longDescription: string;
|
|
44
|
+
}
|
|
45
|
+
export interface DirectoryAuditReport {
|
|
46
|
+
productName: string;
|
|
47
|
+
readinessScore: number;
|
|
48
|
+
isReadyForLaunch: boolean;
|
|
49
|
+
blockingMissingItems: string[];
|
|
50
|
+
recommendedDirectories: DirectoryItem[];
|
|
51
|
+
estimatedDrGain: {
|
|
52
|
+
min: number;
|
|
53
|
+
max: number;
|
|
54
|
+
};
|
|
55
|
+
aiCitationMultiplier: number;
|
|
56
|
+
positioningVariants: DirectoryPositioningVariant[];
|
|
57
|
+
recommendations: string[];
|
|
58
|
+
}
|
|
59
|
+
export declare const CATALOG_DIRECTORIES: DirectoryItem[];
|
|
60
|
+
export declare class DirectorySubmissionsAuditorEngine {
|
|
61
|
+
static audit(input: DirectoryAuditorInput): DirectoryAuditReport;
|
|
62
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Earned Media PR & Digital Newsjacking Engine
|
|
3
|
+
*
|
|
4
|
+
* Moteur de relations presse, d'angles narratifs et de réactivité journalistique (Newsjacking) :
|
|
5
|
+
* - Structuration d'angles narratifs d'autorité (Data Trend, David vs Goliath, Broken Status Quo).
|
|
6
|
+
* - Générateur de pitch journalistique ultra-court (< 150 mots, citation d'expert prête à publier).
|
|
7
|
+
* - Algorithme de scoring d'opportunité de Newsjacking réactif en temps réel.
|
|
8
|
+
* - Modélisation de la valeur publicitaire équivalente (AVE) et de l'index de citation IA.
|
|
9
|
+
*/
|
|
10
|
+
export type StoryAngleType = 'data_trend' | 'david_vs_goliath' | 'broken_system';
|
|
11
|
+
export interface PrPitchInput {
|
|
12
|
+
storyAngle: StoryAngleType;
|
|
13
|
+
productName: string;
|
|
14
|
+
spokespersonName: string;
|
|
15
|
+
spokespersonTitle: string;
|
|
16
|
+
hookMetric: string;
|
|
17
|
+
industryTrend: string;
|
|
18
|
+
proprietaryFinding: string;
|
|
19
|
+
expertQuote: string;
|
|
20
|
+
mediaTierTarget: 'tier_1_national' | 'tier_2_tech_specialized' | 'podcast_newsletter';
|
|
21
|
+
}
|
|
22
|
+
export interface GeneratedPitchResult {
|
|
23
|
+
emailSubjectLines: string[];
|
|
24
|
+
wordCount: number;
|
|
25
|
+
pitchBodyMarkdown: string;
|
|
26
|
+
suggestedFollowUpScheduleDays: number[];
|
|
27
|
+
embargoNotice?: string;
|
|
28
|
+
estimatedAveValueEur: number;
|
|
29
|
+
expectedBacklinkImpact: {
|
|
30
|
+
domainAuthorityUplift: string;
|
|
31
|
+
aiSearchCitationProbability: number;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export interface NewsjackingOpportunityInput {
|
|
35
|
+
trendingTopic: string;
|
|
36
|
+
breakingNewsHoursAgo: number;
|
|
37
|
+
brandRelevanceScore: number;
|
|
38
|
+
topicControversyLevel: 'low' | 'medium' | 'high';
|
|
39
|
+
}
|
|
40
|
+
export interface NewsjackingScoreResult {
|
|
41
|
+
opportunityScore: number;
|
|
42
|
+
urgencyLevel: 'Immédite (< 2h)' | 'Favorable (< 6h)' | 'Tardif (< 24h)' | 'Périmé (> 24h)';
|
|
43
|
+
recommendedAction: string;
|
|
44
|
+
riskAssessment: 'Sûr' | 'Surveillance requise' | 'Risque de bad buzz';
|
|
45
|
+
responseFramework: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class EarnedMediaPrPitchEngine {
|
|
48
|
+
/**
|
|
49
|
+
* Génère un pitch presse optimisé respectant le seuil de concision journalistique (< 150 mots)
|
|
50
|
+
*/
|
|
51
|
+
static generatePressPitch(input: PrPitchInput): GeneratedPitchResult;
|
|
52
|
+
/**
|
|
53
|
+
* Évalue le potentiel d'une opportunité de Newsjacking réactif
|
|
54
|
+
*/
|
|
55
|
+
static evaluateNewsjacking(input: NewsjackingOpportunityInput): NewsjackingScoreResult;
|
|
56
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file engineering-as-marketing-free-tool-engine.ts
|
|
3
|
+
* @description Moteur d'évaluation et de conception d'outils gratuits (Engineering-as-Marketing).
|
|
4
|
+
* Modélise la rentabilité (LTV, CAC évité, ROI 12 mois, Payback), le potentiel d'acquisition
|
|
5
|
+
* de backlinks passifs et génère le blueprint complet avec passerelle naturelle vers le produit payant.
|
|
6
|
+
* Inspiré de la skill free-tools et des benchmarks industriels (HubSpot, Shopify, Moz).
|
|
7
|
+
*/
|
|
8
|
+
export type FreeToolType = 'calculator' | 'grader_analyzer' | 'generator' | 'interactive_tester' | 'library';
|
|
9
|
+
export type FreeToolPrimaryGoal = 'lead_generation' | 'seo_backlinks' | 'product_education' | 'viral_brand';
|
|
10
|
+
export interface FreeToolEngineeringInput {
|
|
11
|
+
toolName: string;
|
|
12
|
+
toolType: FreeToolType;
|
|
13
|
+
coreProduct: string;
|
|
14
|
+
targetAudience: string;
|
|
15
|
+
primaryGoal: FreeToolPrimaryGoal;
|
|
16
|
+
estimatedMonthlyTraffic?: number;
|
|
17
|
+
leadCaptureRatePercent?: number;
|
|
18
|
+
leadToCustomerConversionRatePercent?: number;
|
|
19
|
+
customerLifetimeValueUsd?: number;
|
|
20
|
+
estimatedBuildCostHours?: number;
|
|
21
|
+
hourlyDevRateUsd?: number;
|
|
22
|
+
monthlyMaintenanceCostUsd?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface FreeToolFinancialModel {
|
|
25
|
+
estimatedMonthlyLeads: number;
|
|
26
|
+
estimatedMonthlyCustomers: number;
|
|
27
|
+
estimatedMonthlyRevenueUsd: number;
|
|
28
|
+
totalInitialBuildCostUsd: number;
|
|
29
|
+
monthlyNetProfitUsd: number;
|
|
30
|
+
paybackPeriodMonths: number;
|
|
31
|
+
annualRoiMultiplier: number;
|
|
32
|
+
}
|
|
33
|
+
export interface FreeToolSeoBacklinkScore {
|
|
34
|
+
citableAssetScore: number;
|
|
35
|
+
estimatedAnnualPassiveBacklinks: number;
|
|
36
|
+
estimatedLinkEquityValueUsd: number;
|
|
37
|
+
searchIntentKeywordTarget: string;
|
|
38
|
+
}
|
|
39
|
+
export interface FreeToolBlueprint {
|
|
40
|
+
naturalProductBridge: string;
|
|
41
|
+
recommendedH1: string;
|
|
42
|
+
metaDescription: string;
|
|
43
|
+
schemaOrgType: 'WebApplication' | 'SoftwareApplication';
|
|
44
|
+
inputFieldsRecommendation: string[];
|
|
45
|
+
outputDeliverablesRecommendation: string[];
|
|
46
|
+
}
|
|
47
|
+
export interface FreeToolBenchmarkMatch {
|
|
48
|
+
famousCase: string;
|
|
49
|
+
benchmarkStats: string;
|
|
50
|
+
keySuccessLesson: string;
|
|
51
|
+
}
|
|
52
|
+
export interface FreeToolEngineeringReport {
|
|
53
|
+
toolName: string;
|
|
54
|
+
toolType: FreeToolType;
|
|
55
|
+
primaryGoal: FreeToolPrimaryGoal;
|
|
56
|
+
financials: FreeToolFinancialModel;
|
|
57
|
+
seoBacklinkPotential: FreeToolSeoBacklinkScore;
|
|
58
|
+
blueprint: FreeToolBlueprint;
|
|
59
|
+
benchmark: FreeToolBenchmarkMatch;
|
|
60
|
+
executiveRecommendation: string;
|
|
61
|
+
}
|
|
62
|
+
export declare class EngineeringAsMarketingFreeToolEngine {
|
|
63
|
+
/**
|
|
64
|
+
* Évalue la rentabilité, le potentiel SEO et génère le blueprint complet d'un outil gratuit.
|
|
65
|
+
*/
|
|
66
|
+
static evaluate(input: FreeToolEngineeringInput): FreeToolEngineeringReport;
|
|
67
|
+
}
|