1.2.3 • Published 6 years ago

hellobot v1.2.3

Weekly downloads
1
License
MIT
Repository
github
Last release
6 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

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago