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

@content-workers/plugin-demo-tasks

v1.0.1

Published

Demo plugin for Content Workers - Task management with backend API and admin UI

Readme

Demo Tasks Plugin

A demonstration plugin for Content Workers that showcases how to create plugins with both backend API endpoints and admin UI extensions.

Features

Backend API

  • Task Management: Full CRUD operations for tasks
  • Filtering & Pagination: Query tasks by status, priority, assignee
  • Statistics: Get task statistics and analytics
  • RESTful API: Clean REST endpoints following Content Workers conventions

Admin UI Extensions

  • Sidebar Navigation: Adds "Tasks" section to admin sidebar
  • Task List View: Browse and manage tasks in the admin panel
  • Create/Edit Forms: User-friendly forms for task management
  • Settings Panel: Plugin configuration in admin settings

API Endpoints

All endpoints are prefixed with /api/v1/plugins/demo-tasks:

  • GET /tasks - List tasks with filtering and pagination
  • GET /tasks/:id - Get specific task
  • POST /tasks - Create new task
  • PUT /tasks/:id - Update task
  • DELETE /tasks/:id - Delete task
  • GET /stats - Get task statistics

Installation

  1. Install the plugin package:
npm install @content-workers/plugin-demo-tasks
  1. Add to your Content Workers configuration:
import DemoTasksPlugin from "@content-workers/plugin-demo-tasks";

export default defineConfig((env) => ({
  // ... other config
  plugins: [
    DemoTasksPlugin({
      enableNotifications: true,
      defaultPriority: "medium",
      maxTasksPerUser: 100
    }),
    // ... other plugins
  ],
}));

Configuration Options

interface PluginOptions {
  enableNotifications?: boolean;  // Enable task notifications
  defaultPriority?: TaskPriority; // Default priority for new tasks
  maxTasksPerUser?: number;       // Maximum tasks per user
}

Task Schema

interface Task {
  id: string;
  title: string;
  description?: string;
  priority: "low" | "medium" | "high" | "urgent";
  status: "pending" | "in_progress" | "completed" | "cancelled";
  dueDate?: string;
  assignedTo?: string;
  tags: string[];
  createdAt: string;
  updatedAt: string;
}

Usage Examples

Create a Task

curl -X POST http://localhost:6543/api/v1/plugins/demo-tasks/tasks \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Implement new feature",
    "description": "Add user authentication",
    "priority": "high",
    "status": "pending",
    "assignedTo": "developer",
    "tags": ["feature", "auth"]
  }'

Get Tasks with Filtering

curl "http://localhost:6543/api/v1/plugins/demo-tasks/tasks?status=pending&priority=high&page=1&limit=10"

Get Task Statistics

curl http://localhost:6543/api/v1/plugins/demo-tasks/stats

Development

This plugin demonstrates:

  1. Plugin SDK Usage: Using the new plugin builder API
  2. Backend Routes: Adding custom API endpoints
  3. Admin Integration: Extending the admin panel with custom UI
  4. Type Safety: Full TypeScript support with Zod validation
  5. Service Architecture: Clean separation of concerns

Plugin Architecture

src/
├── constants.ts      # Plugin constants and enums
├── types.ts         # TypeScript types and Zod schemas
├── services/        # Business logic services
│   └── task-service.ts
├── routes/          # API route handlers
│   └── task-routes.ts
├── plugin.ts        # Main plugin definition
└── index.ts         # Export entry point

License

MIT