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

mdx-editor-test

v0.0.25

Published

this is a test

Readme

VEDA MDX Editor

A proof-of-concept (POC) implementation for integrating MDXEditor with VEDA components, enabling rich content editing capabilities for VEDA datasets and maps. This implementation includes a custom editor interface that supports VEDA-specific components and preview functionality.

Screenshot

VEDA MDX Editor Screenshot

Screenshot showing the editor interface

Video Demo

VEDA MDX Editor Demo

Click the image above to watch the demo video

Overview

This fork implements a proof-of-concept (POC) for integrating MDXEditor with VEDA components, enabling rich content editing capabilities for VEDA datasets and maps. The implementation includes a custom editor interface that supports VEDA-specific components and preview functionality.

Architecture

The custom components are implemented based on this  architecture mentioned here https://mdxeditor.dev/editor/docs/jsx

MDX Editor's examples plugins were also helpful:
https://github.com/mdx-editor/editor/blob/main/src/plugins/codemirror/index.tsx

Core Components

  • MDXEditor.tsx: Main editor component that integrates with @mdxeditor/editor
  • MapEditor.tsx: Specialized editor for VEDA map components
  • MDXPreview.tsx: Preview component for rendered MDX content
  • MapPreview.tsx: Preview component for VEDA map components

Supporting Infrastructure

  • MapContext.tsx: Context provider for map-related state management
  • components.jsx: Custom component registry for VEDA components

Plugins

  • remark-scrollytelling.ts: Custom remark plugin for scrollytelling support
  • scrollytelling/: Directory containing scrollytelling-related components

Key Features

  • Rich Text Editing: Full MDX editing capabilities with VEDA-specific components
  • Map Component Integration: Support for VEDA map components with preview functionality
  • Custom Plugins: Integration of custom remark plugins for enhanced functionality
  • Preview System: Real-time preview of both MDX content and map components
  • Context Management: State management for map-related data and configurations

Implementation Status

  • Map Component: Fully functional with preview support
  • Scrollytelling: Currently not working (code left in place for future reference)
    • The scrollytelling plugin and components are included but not fully integrated
    • Future work will focus on completing this functionality
    • Was exploring making a custom MDX Editor plugin which has full control over how it produces output JSX because I was not able to get default nested componets to work properly to produce something like this
   <ScrollytellingBlock >
   <Chapter/>
   <Chapter/>
  <ScrollytellingBlock />
  • Ref: https://github.com/mdx-editor/editor/blob/main/src/plugins/jsx/LexicalMdxExpressionVisitor.ts

Technical Implementation

  • Uses @mdxeditor/editor as the base editor
  • Integrates with VEDA's existing component system
  • Implements custom preview components for VEDA-specific features
  • Maintains compatibility with existing VEDA data structures

Files Modified/Added

app/
├── components/
│   └── mdx-editor/
│       ├── components/
│       │   ├── MapPreview.tsx
│       │   ├── MDXPreview.tsx
│       │   ├── MapEditor.tsx
│       │   ├── MDXEditor.tsx
│       │   └── components.jsx
│       ├── utils/
│       │   └── MapContext.tsx
│       └── plugins/
│           ├── scrollytelling/
│           └── remark-scrollytelling.ts
├── editor/
│   └── page.tsx
├── package.json
└── tsconfig.json

Setup Instructions

  1. Clone the repository
  2. Install dependencies:
    yarn install
  3. Specify NEXT_PUBLIC_MAPBOX_TOKEN value in the .env file:
    NEXT_PUBLIC_MAPBOX_TOKEN=your_mapbox_token_here
  4. Run the development server:
    yarn dev
  5. Access the editor at http://localhost:3000/editor

Testing

  • Manual testing of editor functionality
  • Preview system validation
  • Map component integration testing
  • MDX rendering verification

STAC collection

  • Currently this dataset is hardcoded https://openveda.cloud/api/stac/collections/no2-monthly-diff, https://openveda.cloud/stac/collections/no2-monthly-diff/?.language=en

Future Improvements

  • Complete scrollytelling implementation
  • Add more VEDA component support
  • Enhance preview system
  • Implement additional custom plugins
  • Add unit tests
  • Improve error handling

Dependencies

  • @mdxeditor/editor
  • @teamimpact/veda-ui
  • @devseed-ui/theme-provider

mdx-editor-test