ham7a311

Context Meter

AI chats

About

A visual meter showing how full an AI model's context window is, broken into segments for instructions, files, conversation and tool results, with warnings near the limit and a one-click compact action to summarize the conversation.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Context Meter to your project and fits it to your theme.

Code

How Context Meter is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import ContextMeter from "@/components/ui/context-meter";

export default function Demo() {
  return (
    <div className="flex min-h-full w-full items-center justify-center p-6 bg-[#efede8] text-[#1b1a17]">
      <ContextMeter theme="paper" />
    </div>
  );
}

More by ham7a311

View all
  • Wave Mesh

    Wave Mesh

    216
  • Route Globe

    Route Globe

    171
  • Glass Tiles

    Glass Tiles

    159
  • Orbit Ring Stats

    Orbit Ring Stats

    71
  • Glyph Swell

    Glyph Swell

    66
  • Fan Deck Card

    Fan Deck Card

    54
  • Ask Bar

    Ask Bar

    52
  • Glass Ribbons

    Glass Ribbons

    46

More in AI chats

View all
  • AI Actions

    AI Actions

    361
  • Aquarium Prompt

    Aquarium Prompt

    168
  • AI Artifact

    AI Artifact

    17
  • AI Suggestions

    AI Suggestions

    22
  • AI Orb

    AI Orb

    216
  • Agent Chat

    Agent Chat

    21
  • Color Picker

    Color Picker

    229
  • AI Task List

    AI Task List

    198