1.2.3 • Published 7 years ago

hellobot v1.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Hellobot

A friendly javascript pre-rendering engine - BETA (UNSTABLE)

npm install hellobot

Introduction

Pre-render your javascript pages on the fly for improved SEO.

Usage

This module contains 2 main entry points, the converter and the client...

The Converter

The converter is responsible for converting and responding with pre-renderdered HTML based on a url passed as a parameter.

var Hellobot = require('hellobot').server;
var hellobot = new Hellobot();

hellobot.req({ location: 'https://www.example.com/blog' })

The Client

If required, the client requests HTML from the converter, supplying a request endpoint.

const app = require('koa')();

var Hellobot = require('hellobot').client;
var hellobot = new Hellobot({ 
	converter: 'https://my-rest-endpoint.com/render',
});
app.use(hellobot.koa());

// Express coming soon

Caching the results

Supply an initialized redis client to persist HTML to cache for blazing fast loadspeed.

var redis = { ...my-redis-instance };

var Hellobot = require('hellobot').server;
var hellobot = new Hellobot({ 
	client: redis 
});

hellobot.req({ location: 'https://www.example.com/blog' })
1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.30

9 years ago

1.0.29

9 years ago

1.0.28

9 years ago

1.0.27

9 years ago

1.0.26

9 years ago

1.0.25

9 years ago

1.0.24

9 years ago

1.0.23

9 years ago

1.0.22

9 years ago

1.0.21

9 years ago

1.0.20

9 years ago

1.0.19

9 years ago

1.0.18

9 years ago

1.0.17

9 years ago

1.0.16

9 years ago

1.0.15

9 years ago

1.0.14

9 years ago

1.0.13

9 years ago

1.0.12

9 years ago

1.0.11

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago