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

yatta

v0.15.6

Published

NPM for your papers: a cli tool that manages your references

Downloads

16

Readme

yatta for arXiv and google-scholar

Yatta is like PIP or NPM for your papers. It is a cli tool that manages your paper bibliography data and PDFs. Think of PIP for your papers, and 100x better. :rocket::beer:Share Me on HackerNews!:fire::star:

  • Do you ever wonder what is the right way to search arXiv?
  • Have you ever wanted to save paper PDFs in your work folder?
  • Have you ever had duplicates of the same PDF in different project folders?
  • Have you ever wanted to share a list of readings with someone, except that your own PDFs all have personal notes and highlights?

yatta is the tool that solves all of these problems for you. It is a package manager for links and papers. It saves a index of bibliography data in a yatta.yml file in your work folder, so that if you want to share those papers, you can just send someone the index, and have them do yatta download.

We solve some of the annoying problems, so that you don't have to. Plus yatta is open source, so you can help shape the direction it goes!

yatta-demo.v0.11.2

Usage

First run npm install -g yatta. If you don't have node on your computer, first install it from here. Alternatively you can use brew install node on a mac. Then, go to a folder where you want to save your readings:

mkdir my_awesome_deep_learning_project
cd my_awesome_deep_learning_project
yatta init

Now yatta should create a yatta.yml file for you. This is going to be the index file for yatta.

To search and download papers, do

yatta search --source arxiv "Generative Adversarial Imitation Learning"

and it gives the following result: [placeholder image]

We support the FULL arxiv search query syntax!

for example for the following query, you get:

yatta search au:bellemare ti:compress and controll

Settings

you can run

yatta set dir <name of your target dir>  # this sets where you are going to save the pdf files.
yatta set search.source <google-scholar or arxiv>  # this sets the search engine to unse
yatta set search.limit <an integer>  # this sets the number of return entries to show. Pagination support will come later.
yatta set search.open <true or false>  # this sets the behavior after download: open the pdf up or not?

How to find help:

There are two ways to get help:

  1. take a look at the help page of the command. You can do this by putting in:

    yatta --help
    # or
    yatta <command> --help

    ./figures/help.png

  2. Alternatively, a quick look at the source would also be helpful: ./src/yatta.js.

To Develop

  • Use dev:install to install
  • Use build to update the local develop binary. You do NOT need to reinstall!
  • Use dev:update is deprecated.

Plans

Design

  • yatta search

    do NOT save index. index should be volatile.

    save file content sginature + bib information instead.

  • yatta sync no.

Issues

  • [ ] fix create alias step
  • [ ] yatta index: indeces files under rc.lib directory and save as ~/Dropbox/machine learning/library - [ ] library/index.yml: index of signatures and file paths - [ ] library/bib.yml: index of available yml files linked to the signatures
  • [ ] save bib info inside those PDF
  • [ ] save aliases under yatta.dir
  • [ ] save file signature

Todo:

  • [x] use rc.lib_dir instead
  • [x] save file under ~/Dropbox/machine learning/papers
  • [x] save setting under ~/.yattarc.yml

Done

  • [x] make a list of problems

2018-02-22

default behavior:

  1. first run, setup ~/.yatta.yml and ~/.yatta folder. folder contains all , papers, searches, authors etc.
  2. save papers under papers, alias in searches folder.
  3. when searching under project folder, save alias/symbolic link under project folder. Problem, dropbox does not sync this.

Trade-offs:

  • alias in project folder: dropbox does not sync. Pro: all papers safe in global folder.
  • alias in global, save file in project directory: global is basically useless as archive now. Pro: could easily modify files and view them on dropbox. Easy to delete files assuming papers not found (through global alias) can be safely deleted.
  • files in global, index in project, alias for convenience
    • mobile:
      • can view and edit files, can't see context. context is just bunch of dead links
      • can browse local context inside _papers, otherwise no. yatta shadow creates this _papers folder from global, index etc.
    • organizing files:
      • in finder, drag and drop alias. yatta sync indeces local files. Yaml index of location of files. This is useful for escherpad app too.

Editing happens equally frequently from iPads and desktop.


2018-02-01

stuff to think about:

  • managing papers is about organizing them. Make it easy to:
    • search for papers
    • organize papers into folders?
    • remove useless papers? I think if you do search well, everything else won't matter that much. So we could forget about managing as long it is easy for other devices to view the papers. limiter: don't think of managing papers. Just put them under a folder for now. But make is easy to search under current scope.

TODOs

  • Alternative is to use arXiv as the ultimate index. No need to save index. Just move the papers around.
  • use node-exiftool to insert meta data into the PDF after download.
  • save bib data together with the file? delete file, move file, link file, copy file, show what folder file is in
  • save link to PDF in a global folder
  • has a command line tool that converts link to a hard link (alternatively just use hard link)

stuff that actually need to be implemented:

  • file.getBib() need to be possible. Need a way to identify a single entry in the bib index (or 50 copies).
  • yatta index to generate a index of PDFs in current folder, or to generate the complete bibs.
  • yatta bib -f blah-some-paper.pdf finds a few suggestions for the bibliography entry for this paper.
  1. [ ] Work through the UX, make sure things make sense.
  2. [ ] save a copy of PDF and yatta.yml index under your home directory ~/.yatta.
  3. [ ] sym-link or hard-link files from ~/.yatta/papers/ to your current directory.
  4. [ ] Add search from ~/.yatta/yatta.ml to the results of yatta search.
  5. [ ] list pdfs in local directory
  6. [ ] list pdfs in current index
  7. [ ] add support for multiple options in current folder:
    • download appropriate bib info for local file (arxiv id; pdf title; )
    • save linked yatta bib in global bib
    • open (from index, from local)
    • edit bib
    • edit filename
    • delete bib
  8. [ ] add history to search terms (shall this be a zsh integration?)