Skip to content

m-seoMultiversal SEO Utility

Framework-agnostic SEO for every web app. Now with CMS integration, AI analysis & multi-language SDKs. Works with Next.js, React, Vue, WordPress, Django, Laravel, Rails, and more.

🚀 Quick Start

Installation

bash
npm install m-seo

Basic Usage

typescript
import { createSEO } from "m-seo";

const seo = createSEO({
  title: "My Awesome App",
  description: "Welcome to my site",
  image: "https://example.com/og.png",
  url: "https://example.com",
});

// Output as HTML string
console.log(seo.html);

// Output as JSON-LD
console.log(seo.jsonLd);

NEW: CMS Integration (v1.1.1)

typescript
import { CMSPlugins } from "m-seo";

// Connect to WordPress
const cms = new CMSPlugins({
  platform: "wordpress",
  baseUrl: "https://your-site.com",
  credentials: { username: "admin", password: "app-password" },
});

// Fetch content and generate SEO
const content = await cms.fetchContent({ id: "123" });
const seo = await cms.generateSeoData(config, content);

NEW: AI Content Analysis (v1.1.1)

typescript
import { AIContentAnalysis } from "m-seo";

// Analyze content for SEO optimization
const analysis = await AIContentAnalysis.analyzeContent(articleText, {
  provider: "openai",
  enableReadability: true,
  enableSentiment: true,
  enableKeywordAnalysis: true,
});

// Get SEO score, readability, keywords, and recommendations
console.log(analysis.scores.overall); // 0-100
console.log(analysis.recommendations); // AI-powered suggestions

Framework-Specific Examples

React

jsx
import { useSeo } from "m-seo/adapters/ReactSPAAdapter";

function HomePage() {
  useSeo({
    title: "Home",
    description: "Welcome",
  });
  return <h1>Home</h1>;
}

Express

js
const { ExpressAdapter } = require("m-seo/adapters/ExpressAdapter");

app.use(
  ExpressAdapter({
    defaults: { siteName: "My Site" },
  })
);

Next.js

jsx
import { createSEO } from 'm-seo';

export async function getServerSideProps() {
  const seo = createSEO({ ... });
  return { props: { seo } };
}

Static HTML

js
const { SeoEngine } = require('m-seo');
const seo = new SeoEngine({ ... });
document.head.innerHTML += seo.toHtmlString();

📚 Documentation

💡 Why m-seo?

One Package, All Frameworks Stop installing different SEO packages for each project. m-seo works everywhere.

Clean, Modular TypeScript Fully typed, tree-shakable, modern code. Great DX.

Production-Ready Battle-tested, optimized, and ready for real-world apps.

No Vendor Lock-In Framework-agnostic core means you're never locked to one ecosystem.

🏁 Next Steps

  1. Install and configure m-seo in your project
  2. Explore examples for your framework
  3. Read the API docs to unlock advanced features
  4. Check the FAQ for common questions

Released under the MIT License.