node-seo
node-seo is a connect middleware that can generate, cache and serve HTML snapshots of single page web apps for search bots. Uses PhantomJS for generating snapshots.
Installation
via npm:
$ npm install seo
Configuration
node-seo can be used as a middleware for connect/express, like this:
var express = ;var seo = ;var app = ; app; app;
In this case, node-seo will use seo-routes.js
to check whether it should
create a snapshot for the current path. This file should export a function that
returns a boolean. The first parameter is the current request:
module { if requestpath === '/' return true; return false;}
Todo
- Ability to pre-render (initial rendering can take some time and we don't want to affect our search engine ranking by slow rendering times)