Home
Softono

Koa Seo

Open source JavaScript
35
Stars
3
Forks
0
Issues
1
Watchers
8 years
Last Commit

 About Koa Seo

koa SEO middleware

Platforms

Web Self-hosted

Languages

JavaScript

Links

Need Help Installing Koa Seo?

We provide expert installation service for this software. Our team will install, configure, and secure Koa Seo on your server. plans start at just $30.

Npm Package Build Status Npm Downloads Dependency Status

koa-seo

SEO middleware for koa base on chrome-render, a substitute for prerender.

Modern web app use technique like react.js vue.js which render html in browser, this lead to search engine can't crawl your page content.

This project want to solve this kind of problem in a general-purpose way, it detect request is from search engine crawler then use headless chrome to render out your modern web page and return to crawler.

Here is koa-seo's architecture diagram: koa-seo arch

Use

npm i koa-seo

then use it:

const Koa = require('koa');
const seoMiddleware = require('koa-seo');
const app = new Koa();

app.use(seoMiddleware({
    render: {
        // use `window.isPageReady=1` to notify chrome-render page has ready
        useReady: true,
    }
}));

app.listen(3000);

you can download and run this complete demo

Options

For more flexible use case see koa-chrome-render.

Friends