1.0.11 • Published 2 years ago

openblogjs v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Javascript library for OpenBlog

OpenBlog logo

openblogjs is a javascript library to integrate your OpenBlog anywhere in your app. You need an account from openblog.app to use this library.

Getting started

  1. First Create a catch-all page where you want your blog to be rendered in your app.

Example with NextJS :

    /pages/blog/[handle].js
  1. Fetch the page content from OpenBlog
const openBlog = new OpenBlog("YOUR_BLOG_ID", "CURRENT_PATH");
const content = await openblog.getPage(PAGE_HANDLE);

The content var will contain the HTML/CSS you can inject anywhere you want on your page to display your content.

You can also use this library for woth Client side rendering and Server side rendering

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago