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

@framed-dev/react

v0.3.2

Published

React components for Framed feedback widget

Downloads

263

Readme

@framed/react

Collect visual feedback and export AI-ready prompts.

npm version License: MIT TypeScript

What it does

  • Visual selection — Click any element on your site to attach feedback
  • Screenshot capture — Capture and annotate screenshots
  • Task organization — Organize and prioritize feedback as tasks
  • AI export — Copy structured prompts for Bolt, Lovable, or Cursor

Quick Start

npm install @framed/react
// app/layout.tsx
import { FramedProvider, FeedbackWidget } from '@framed/react';

export default function Layout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en">
      <body>
        <FramedProvider
          config={{
            supabaseUrl: process.env.NEXT_PUBLIC_SUPABASE_URL!,
            supabaseKey: process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY!,
          }}
        >
          {children}
          <FeedbackWidget />
        </FramedProvider>
      </body>
    </html>
  );
}

Environment Variables

NEXT_PUBLIC_SUPABASE_URL=https://xxx.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJhbG...

Database Setup

Run this in your Supabase SQL editor:

create table framed_tasks (
  id uuid primary key default gen_random_uuid(),
  project_id text,
  type text not null,
  status text not null default 'open',
  element jsonb,
  page jsonb not null,
  feedback jsonb not null,
  task jsonb not null,
  attachments jsonb,
  meta jsonb not null,
  created_at timestamptz default now(),
  updated_at timestamptz default now()
);

alter table framed_tasks enable row level security;

create policy "Allow all for authenticated users" on framed_tasks
  for all using (auth.role() = 'authenticated');

Configuration

| Prop | Type | Required | Description | |------|------|----------|-------------| | supabaseUrl | string | Yes | Your Supabase project URL | | supabaseKey | string | Yes | Your Supabase anon key | | projectId | string | No | Group tasks by project | | theme | 'light' \| 'dark' | No | Widget theme (default: light) |

Hooks

import { useTasks } from '@framed/react';

function TaskList() {
  const { tasks, openTasks, markDone, copyPrompt } = useTasks();

  return (
    <div>
      <p>{openTasks.length} open tasks</p>
      <button onClick={() => copyPrompt()}>Copy AI Prompt</button>
    </div>
  );
}

Available hooks

  • useTasks() — Access tasks, mark done, copy AI prompt
  • useFramed() — Access full provider context

Export to AI Tools

  1. Collect feedback via widget
  2. Open drawer → click Copy AI Prompt
  3. Paste in Bolt, Lovable, or Cursor
  4. AI implements the changes

The prompt includes task details, element selectors, page context, and suggested changes — everything the AI needs to make the fix.

License

MIT

Links