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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@reactkits.dev/writer

v0.1.0

Published

Headless AI-powered writing assistant for React - works with Tailwind, Mantine, or any UI library

Readme

@reactkits.dev/writer

Headless AI-powered writing assistant for React. Works with Tailwind, Mantine, or any UI library.

Bundlephobia min Bundlephobia minzip

Features

  • Headless Architecture - Bring your own UI components
  • AI-Powered - Uses Chrome's built-in AI Writer/Rewriter APIs
  • BYOK Support - Bring Your Own Key with OpenAI or Gemini adapters
  • UI Presets - Ready-to-use presets for Tailwind and Mantine
  • Storybook-First - Comprehensive component documentation
  • TypeScript Ready - Full type definitions included

Installation

npm install @reactkits.dev/writer

Quick Start

Post Creator

import { createPostCreator, tailwindPreset } from '@reactkits.dev/writer/posts';
import { usePostEntries } from '@reactkits.dev/writer/hooks';

// Create PostCreator with Tailwind styling
const PostCreator = createPostCreator(tailwindPreset);

function App() {
  const { currentEntryId, handleNewEntry, loadEntries } = usePostEntries();

  return (
    <div>
      <button onClick={handleNewEntry}>New Post</button>
      <PostCreator
        currentEntryId={currentEntryId}
        onEntrySaved={loadEntries}
      />
    </div>
  );
}

Custom UI Components

import { createPostCreator } from '@reactkits.dev/writer/posts';
import { TextField, Button, Card, Chip } from '@mui/material';

// Pass your own components
const PostCreator = createPostCreator({
  Input: TextField,
  Button,
  Card,
  Badge: Chip,
});

AI Adapters

import { createAdapter, usePostCreator } from '@reactkits.dev/writer/hooks';

// Default (Chrome AI - free, on-device)
const chromeAdapter = createAdapter();

// OpenAI
const openaiAdapter = createAdapter({
  type: 'openai',
  apiKey: 'sk-...',
  model: 'gpt-4',
});

// Gemini
const geminiAdapter = createAdapter({
  type: 'gemini',
  apiKey: 'AIza...',
  model: 'gemini-1.5-flash',
});

Subpath Exports

// Main entry
import { PostCreator, usePostCreator } from '@reactkits.dev/writer';

// Post Creator specific
import { createPostCreator, tailwindPreset } from '@reactkits.dev/writer/posts';

// Article Editor specific
import { BlockNoteEditor, useDocuments } from '@reactkits.dev/writer/articles';

// Hooks and adapters
import { useWriter, useRewriter, createAdapter } from '@reactkits.dev/writer/hooks';

Available Hooks

| Hook | Description | |------|-------------| | usePostCreator | Complete post creation logic with AI generation | | usePostEntries | CRUD operations for post entries | | useDocuments | Document CRUD operations | | useWriter | Chrome AI Writer API integration | | useRewriter | Chrome AI Rewriter API integration | | useAI | Check Chrome AI availability | | useMarkdown | Markdown preview toggle | | useSettings | UI settings management |

Development

# Install dependencies
npm install

# Start Storybook
npm run storybook

# Start demo app
npm run dev:demo

# Build library
npm run build

Requirements

  • React 18+ or 19+
  • Chrome 131+ for built-in AI features (optional)

Optional Peer Dependencies

For the article editor with BlockNote:

npm install @blocknote/core @blocknote/react @blocknote/mantine @mantine/core @mantine/hooks

License

MIT License