1.0.11 • Published 9 months ago

openblogjs v1.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months 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

9 months ago

1.0.10

9 months ago

1.0.9

9 months ago

1.0.8

9 months ago

1.0.7

9 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago