Socket
Book a DemoInstallSign in
Socket

blopilot

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blopilot

Blopilot blog component

0.2.5
latest
Source
npmnpm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Angular

npm install blopilot
// main.ts
import 'blopilot/dist/webcomponent.js'

// app.module.ts
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'

@NgModule({
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
<!-- any.component.html -->
<blo-pilot id="my-blog-123"></blo-pilot>
<article-preview
  blogId="my-blog-123"
  title="Article Title"
  imageUrl="https://example.com/image.jpg"
  [contentOnly]="false"
></article-preview>

Vue (Vue 3)

npm install blopilot
// main.ts
import { createApp } from 'vue'
import 'blopilot/dist/webcomponent.js'
import App from './App.vue'

const app = createApp(App)
app.config.compilerOptions.isCustomElement = (tag) =>
  ['blopilot', 'article-preview'].includes(tag)
app.mount('#app')
<!-- App.vue -->
<template>
  <blo-pilot id="my-blog-123" />
  <article-preview
    blogId="my-blog-123"
    title="My Article"
    imageUrl="https://example.com/image.jpg"
  />
</template>

React

npm install blopilot
// e.g., src/main.tsx or src/index.tsx
import 'blopilot/dist/webcomponent.js'

export default function App() {
  return (
    <div>
      <blo-pilot id="my-blog-123" />
      <article-preview
        blogId="my-blog-123"
        title="My Article"
        imageUrl="https://example.com/image.jpg"
      />
    </div>
  )
}

Vanilla JS/TS (Node bundler)

npm install blopilot
import 'blopilot/dist/webcomponent.js'

const blog = document.createElement('blo-pilot')
blog.id = 'my-blog-123'

const preview = document.createElement('article-preview')
preview.setAttribute('blogId', 'my-blog-123')
preview.setAttribute('title', 'My Article')
preview.setAttribute('imageUrl', 'https://example.com/image.jpg')

document.body.append(blog, preview)

Plain HTML (no Node)

<!DOCTYPE html>
<html>
  <head>
    <!-- Use a CDN or host these files yourself -->
    <script src="https://unpkg.com/blopilot/dist/webcomponent.js"></script>
    <link
      rel="stylesheet"
      href="https://unpkg.com/blopilot/dist/webcomponent.css"
    />
  </head>
  <body>
    <blo-pilot id="my-blog-123"></blo-pilot>
    <article-preview
      blogId="my-blog-123"
      title="Article Title"
      imageUrl="https://example.com/image.jpg"
    ></article-preview>
  </body>
</html>

Build webcomponent

npm install
npm run build:webcomponent

The distributable files will be generated under dist/.

Keywords

blopilot

FAQs

Package last updated on 12 Aug 2025

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.