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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@curvenote/editor

v0.17.6

Published

[![@curvenote/editor on npm](https://img.shields.io/npm/v/@curvenote/editor.svg)](https://www.npmjs.com/package/@curvenote/editor) [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/curvenote/editor/blob/main/LICENSE) !

Downloads

186

Readme

@curvenote/editor

@curvenote/editor on npm MIT License CI demo

An interactive scientific editor built with ProseMirror, React and Redux - by Curvenote.

@curvenote/editor in curvenote.com

Why

We think that creating beautiful reactive documents and explorable explanations should be easy. Writing technical documents is hard enough already, and choosing to make that writing interactive is beyond the reach or time-commitment of most communicators.

We aim to lower the barriers to writing computational narratives. Today, narrative is often moved out of computational notebooks into static document creation tools (Microsoft Word, Google Docs, LaTeX, Slides/PPT).

We think this is for two reasons:

  1. The need for more expressive components, formatting or referencing.
    • CommonMark markdown does not support, for example, citations, cross-references, and even simple formatting like callouts (see various alternatives below).
  2. To enable collaborators and reviewers who don't use these tools (e.g. when writing and reviewing papers & reports, slide decks, etc.)
    • Writing often requires collaborators that may not be comfortable with some combination of the tools required for computational narratives (e.g. git, md, notebooks, javascript, etc.).

Goals

@curvenote/editor aims to bridge the gap between expressiveness and writing accessibility by developing a rich, WYSIWYG, collaborative editor with a focus on interactivity that integrates with LaTeX, various flavours of Markdown, and the Jupyter and Sphinx ecosystems.

Overlap with Curvenote

@curvenote/editor is the editor that is used in Curvenote, which is a scientific writing platform that connects to Jupyter.

Architecture

  • Basic prosemirror, wrapped in a React component with some middleware in Redux.
  • Chosen to have many "blocks" of the editor on a page at once. See the UI in Curvenote as to what we are supporting - inspired in part by Jupyter.
    • If you only need one editor on the page, the weird part will be integrating with Redux, and some unnecessary indexing. However, this is probably important anyways if you have comments or other places in the DOM that are instances of the editor.
  • Typescript and fully typed.
  • Styling of editor components with material-ui
  • Reactivity powered by @curvenote/components and @curvenote/runtime, which are web components.
  • Real-time collaboration is possible through middleware integrations. See prosemirror-collab.
    • We will (eventually) improve support for cursors and highlights. See Roadmap.
  • See demo/index.tsx for an example setup.

Getting Started

git clone [email protected]:curvenote/editor.git
cd editor
npm install
npm run start

See the demo folder from more details on how to get started.