{
 "kind": "tool",
 "slug": "codemirror",
 "path": "tools/codemirror/",
 "name": "CodeMirror",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Markdown, editors and content",
   "tools/content-editors/"
  ]
 ],
 "lead": "Extensible code editor for the browser with rich language support.",
 "chips": [
  {
   "label": "Markdown, editors and content",
   "path": "tools/content-editors/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @codemirror/view"
 },
 "links": [],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": ""
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Not checked yet",
   "status": "unknown",
   "sub": null,
   "note": "",
   "src": ""
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "44 projects",
   "status": "info",
   "sub": "#19 of 149 in its category",
   "note": "Dependency in 44 public GitHub projects set up for AI coding agents that we scanned (0.7%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What CodeMirror does",
   "parts": [
    {
     "t": "prose",
     "text": "Extensible code editor for the browser with rich language support."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "CodeMirror popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "70",
       "of": "/ 100",
       "l": "Gid Score, #370 overall"
      },
      {
       "n": "26.4M",
       "l": "downloads a week, npm"
      },
      {
       "n": "44",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How CodeMirror is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "CodeMirror is a dependency in 44 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.9% of the 4,867 JavaScript/TypeScript ones), #19 of 149 in markdown, editors and content.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 160; those are left out of every share on this page.",
      "The most used alternative in our scan is Tiptap (92 projects).",
      "Projects that use it most often also use Tailwind Merge (59.1%), clsx (59.1%), Class Variance Authority (54.5%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "27 projects, 0.8%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "18 projects, 0.6%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "16 projects, 0.7%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "5 projects, 1.5%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "5 projects, 1.1%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 59.1% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 59.1% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 54.5% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 40.9% of its projects",
       "v": "UIW CodeMirror",
       "path": "tools/uiw/"
      },
      {
       "l": "In 52.3% of its projects",
       "v": "Playwright (JavaScript)",
       "path": "tools/playwright-test/"
      },
      {
       "l": "In 70.5% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 70.5% of its projects",
       "v": "Tailwind CSS",
       "path": "tools/tailwindcss/"
      },
      {
       "l": "In 38.6% of its projects",
       "v": "AI SDK",
       "path": "tools/ai/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about CodeMirror",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "More in Markdown, editors and content",
       "path": "tools/content-editors/",
       "items": [
        {
         "text": "react-markdown",
         "path": "tools/react-markdown/"
        },
        {
         "text": "remark-gfm",
         "path": "tools/remark-gfm/"
        },
        {
         "text": "Marked",
         "path": "tools/marked/"
        },
        {
         "text": "Jinja2",
         "path": "tools/jinja2/"
        },
        {
         "text": "gray-matter",
         "path": "tools/gray-matter/"
        },
        {
         "text": "Shiki",
         "path": "tools/shiki/"
        },
        {
         "text": "highlight.js",
         "path": "tools/highlight-js/"
        },
        {
         "text": "markdown-it",
         "path": "tools/markdown-it/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "CodeMirror",
       "me": true,
       "facts": [
        "MIT",
        "Gid 70",
        "26.4M/wk"
       ]
      },
      {
       "name": "Tiptap",
       "why": "Headless Vue/React rich text editor framework with customizable extensions.",
       "path": "tools/tiptap/",
       "facts": [
        "MIT",
        "Gid 79",
        "33.3M/wk"
       ]
      },
      {
       "name": "Monaco Editor",
       "why": "Browser-based code editor powering VS Code with syntax highlighting and language support.",
       "path": "tools/monaco-editor/",
       "facts": [
        "MIT",
        "Gid 75",
        "14.4M/wk"
       ]
      }
     ],
     "more": "Compare CodeMirror with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @codemirror/view"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for CodeMirror yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @codemirror/view"
  ],
  [
   "Category",
   "Markdown, editors and content"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Gid Score",
   "70.4"
  ],
  [
   "Rank in category",
   "#19 of 149"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": null
}