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

joplin-plugin-readcube-papers

v1.1.0

Published

> 使用到的 API 接口说明见:[ReadCube Papers API](https://blog.hxgpark.com/posts/ReadCubePapersAPI/)

Downloads

5

Readme

ReadCube Papers

使用到的 API 接口说明见:ReadCube Papers API

ReadCube Papers is a reference manager: Official website.

This plugin supports:

  1. Sync your papers information to local database. [Almost real time syncing due to the websocket protocal].
  2. Render a paper info table after the note content for paper note. [Note created by the menu 'Tools -> Create notes for papers'].
  3. Direct link to the PDF file in the paper info table.
  4. Auto insert formatted references through tool button.
  5. Auto insert annotations through tool button with quick-jump-to-annotation-in-browser function.

WARNING: DO NOT delete the source_url attribute of notes. It helps to tell the renderer which notes should be rendered with a paper information table. The notes created for Papers have the source_url with the papers_ prefix.

Dialog UI code from joplin/plugin-bibtex.git

img

How to use:

  1. In the Joplin Settings -> Joplin Enhancement -> Set your cookie for Papers
  2. ~~Joplin Menubar -> Tools -> Sync files with Papers: It will create notes for your papers without the annotations~~
    1. Not needed anymore. Now it will fetch the papers and keep syncing based on websocket
  3. 'Tools -> Create notes for papers'. Only the notes created in this way can have a rendered paper information table

How to get cookies:

  1. Open your browser, go to your Papers Library
  2. Press F12 to open developer tools.
  3. Click any paper

Roadmap

Coming soon

  • [x] Colorful syntax support for quota in markdown [You need to install the Enhancement plugin and enable the 'Colorful Blockquote' feature]
    • [x] Allows > [color=red] xxxx so that the quota is rendered in different color (syntax from hackmd)
    • [x] Allows > [name=SeptemberHX] xxx so that the quota is rendered with a username to distinguish annotations from different users (syntax from hackmd)
    • [x] Render the annotations with the same colors in the Papers application
  • [ ] Insert paper figures directly into the note as attached resource files
    • papers published by specific publishers can be attached with all the figures as separate image files in ReadCuge Papers. We can allow users to download the figures and insert to the notes
    • However, only papers from some publishers can be provided with separate figure files. This feature cannot work for all papers.
  • [ ] Attach the text file that contains all the text in the paper pdf as attached resources in paper notes
    • It allows users to search both the notes and the papers

Won't do

  1. anything related to annotating the papers in Joplin
    1. for example: marginnote Like
    2. please make full use of each professional tools to do the right thing
  2. save pdf as attached resource files
    1. Joplin is pretty weak about the attachment management
    2. The size of the Joplin notebook will grow significantly with too many pdf files, which is painful for syncing between multiple devices (however, the text file is really small)
  3. anything related to the ReadCube Papers' dimension feature

Building the plugin

The plugin is built using Webpack, which creates the compiled code in /dist. A JPL archive will also be created at the root, which can use to distribute the plugin.

To build the plugin, simply run npm run dist.

The project is setup to use TypeScript, although you can change the configuration to use plain JavaScript.

Updating the plugin framework

To update the plugin framework, run npm run update.

In general this command tries to do the right thing - in particular it's going to merge the changes in package.json and .gitignore instead of overwriting. It will also leave "/src" as well as README.md untouched.

The file that may cause problem is "webpack.config.js" because it's going to be overwritten. For that reason, if you want to change it, consider creating a separate JavaScript file and include it in webpack.config.js. That way, when you update, you only have to restore the line that include your file.