npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

blog-editor-cms

v1.0.9

Published

A comprehensive blog editor CMS package with JSON-server backend

Downloads

48

Readme

@xai/blog-editor A TypeScript-based blog editor package for React/Next.js applications with an embedded json-server backend. Installation Install the package via npm: npm install @xai/blog-editor

Setup

  1. Start the Backend Server The package includes a json-server backend to manage blog posts and images. After installing the package, start the server by running: npx @xai/blog-editor start-server

This will start json-server on http://localhost:3001. Ensure this server is running before using the BlogEditor or BlogList components. 2. Import and Use the Components BlogEditor The BlogEditor component allows users to create and save blog posts with rich text and images. import { BlogEditor } from '@xai/blog-editor';

function App() { const config = { allowedIPs: ['127.0.0.1'], // Replace with your IP restrictions savePath: 'blog-posts', // Not used with json-server imagePath: 'blog-images', // Not used with json-server }; const clientIP = '127.0.0.1'; // Replace with the user's IP

return ( ); }

export default App;

BlogList The BlogList component displays all blog posts and images, with options to remove them. import { BlogList } from '@xai/blog-editor';

function App() { return ( ); }

export default App;

Features

Create Posts: Use the BlogEditor to write and save blog posts with rich text and images. Fetch Posts and Images: The BlogList component fetches and displays all saved posts and images. Remove Posts and Images: Remove individual posts or images using buttons in the BlogList component. Embedded Backend: Uses json-server to manage data, so no external backend setup is required.

Notes

The backend data is stored in node_modules/@xai/blog-editor/dist/db.json. If you uninstall the package, this data will be lost. For production, consider replacing json-server with a proper backend (e.g., MongoDB for posts, AWS S3 for images).