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

localflare-server

v0.1.2

Published

Dashboard API server for Localflare

Downloads

602

Readme

localflare-server

Dashboard API server for Localflare. Provides a Hono-based REST API for interacting with Cloudflare Worker bindings.

npm version License: MIT

Overview

This package provides the API server that powers the Localflare dashboard:

  • REST API - Full CRUD operations for all Cloudflare bindings
  • Hono Framework - Fast, lightweight HTTP server
  • Real-time Updates - WebSocket support for live data streaming

Installation

npm install localflare-server
# or
pnpm add localflare-server

Usage

import { createDashboardServer } from 'localflare-server';
import { LocalFlareCore } from 'localflare-core';

const core = new LocalFlareCore({ configPath: './wrangler.toml' });
await core.start();

const server = createDashboardServer({
  core,
  port: 8788
});

await server.start();

API Endpoints

D1 Database

  • GET /api/d1 - List all D1 databases
  • GET /api/d1/:name/tables - List tables in a database
  • POST /api/d1/:name/query - Execute SQL query

KV Namespace

  • GET /api/kv - List all KV namespaces
  • GET /api/kv/:name/keys - List keys in a namespace
  • GET /api/kv/:name/:key - Get a value
  • PUT /api/kv/:name/:key - Set a value
  • DELETE /api/kv/:name/:key - Delete a key

R2 Bucket

  • GET /api/r2 - List all R2 buckets
  • GET /api/r2/:name/objects - List objects in a bucket
  • GET /api/r2/:name/:key - Get an object
  • PUT /api/r2/:name/:key - Upload an object
  • DELETE /api/r2/:name/:key - Delete an object

Queues

  • GET /api/queues - List all queues
  • POST /api/queues/:name/send - Send a message to a queue

Durable Objects

  • GET /api/do - List Durable Object namespaces
  • GET /api/do/:namespace/instances - List instances

Related Packages

| Package | Description | |---------|-------------| | localflare | CLI tool (main package) | | localflare-core | Miniflare wrapper and config parser | | localflare-dashboard | React dashboard UI |

License

MIT