New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

kyblog

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kyblog

Universal JS SDK for Blogger (CommonJS, ESM, TypeScript, Browser)

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

kyBLOG

Universal JS SDK for Blogger Supports CommonJS, ESM, TypeScript, and Browser (UMD). Fetch posts, labels, images, and excerpts from any Blogger blog.

node output
Device List

Installation

npm install kyblog

usage example

Importing (TypeScript / Node ESM)
import { kyBLOG } from './dist/kyblog.esm.js'

const blog = new kyBLOG("https://tv48click.blogspot.com")
Basic Usage

Fetch the first 5 posts:

const posts = await blog.posts({ limit: 5 })
console.log(posts.posts)

Output structure:

[
  {
    id: string,
    title: string,
    url: string,
    published: string,
    updated: string,
    excerpt: string,
    content: string,
    images: string[],
    labels: string[]
  }
]
Fetch Posts by Label
const techPosts = await blog.posts({ limit: 5, label: "Technology" })
console.log(techPosts.posts)

This filters posts that have the Technology label.

Pagination for Large Blogs (1000+ Posts)

let allPosts: any[] = []
let start = 1
const batchSize = 50
let batch

do {
  batch = await blog.posts({ start, limit: batchSize })
  allPosts = allPosts.concat(batch.posts)
  start += batchSize
} while (batch.posts.length === batchSize)

console.log("Total posts fetched:", allPosts.length)
Access Post Images, Excerpts, and Labels
const firstPost = allPosts[0]

console.log("Title:", firstPost.title)
console.log("Excerpt:", firstPost.excerpt)
console.log("Images:", firstPost.images)   // Array of image URLs
console.log("Labels:", firstPost.labels)   // Array of labels
Fetch All Posts for Multiple Labels
const labels = ["Technology", "Science", "AI"]

for (const label of labels) {
  const posts = await blog.posts({ limit: 10, label })
  console.log(`Posts for ${label}:`, posts.posts)
}
TypeScript Support

Types are included in dist/types/index.d.ts:

import { kyBLOG } from './dist/kyblog.esm.js'

const blog: kyBLOG = new kyBLOG("https://tv48click.blogspot.com")

const posts = await blog.posts({ limit: 5 })
posts.posts.forEach(post => {
  console.log(post.title, post.labels, post.images)
})

Browser Example (UMD)

<script src="./dist/kyblog.umd.js"></script>
<script>
  const blog = new kyBLOG("https://tv48click.blogspot.com")

  blog.posts({ limit: 5, label: "Technology" }).then(data => {
    data.posts.forEach(post => {
      console.log(post.title)
      console.log("Excerpt:", post.excerpt)
      console.log("Images:", post.images)
      console.log("Labels:", post.labels)
    })
  })
</script>

blogger dashboard
Device List

Notes

Works with any Blogger URL.

Handles up to 1000+ posts with pagination.

Extracts images, labels, excerpts, and full content.

Ready for Node.js, TypeScript, and browser environments.

UMD build is minified with @rollup/plugin-terser.

Keywords

blogger

FAQs

Package last updated on 07 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts