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

@termsurf/task-host

v0.0.3

Published

<br/> <br/> <br/> <br/> <br/> <br/> <br/>

Downloads

4

Readme

Summary

Task is a collections of common actions to perform in code. Here are some immediately helpful resources:

This is the library that powers task.surf, an emerging website with lots of digital tools to make it easy for one off manual tasks. Ideally we could run all the tasks like image processing, video processing, etc., directly in the browser through WASM, but unfortunately the technology is not there yet so we need to run server-side code against these robust CLI libraries.

The task JavaScript/TypeScript library has these features:

  • CLI
  • Programmatic Browser API (for where we can do browser tasks)
  • Programmatic Node.js API (for everything)

Installing the Library

Requirements on Mac:

brew cask install java
brew cask install mactex
brew install calibre
brew install --cask libreoffice
brew install imagemagick
brew install fontforge
brew install ffmpeg
brew install go
brew install unoconv
go install github.com/klauspost/asmfmt/cmd/asmfmt@ef134b9cec704e2b7b336fb02153b7d1a58247da
brew install qpdf
brew install mvn
brew install objconv
brew install wabt
brew install unar
brew install pyenv
brew install jupyter
pip install nbconvert
pip install docx2pdf

To use docx2pdf you need to have the Microsoft Word app installed on your machine as well.

Requirements for Windows:

choco install libreoffice-fresh
choco install imagemagick --version 7.0.10.19
choco install fontforge
choco install ffmpeg
choco install miktex
choco install nodejs

Requirements for Linux:

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install texlive-xetex
sudo apt-get install imagemagick
sudo apt-get install libreoffice
sudo apt-get install fontforge
sudo apt-get install inkscape
sudo apt-get install ffmpeg
sudo apt-get install ufraw
sudo apt-get install rar

Finally, with these dependencies installed, you can install the act:

npm install -g @termsurf/task

Docs on each individual possible API function are going to be found eventually at task.surf.

Creating Your Own Docker Image

You can link to the Docker image at ghcr.io/termsurf/task like this sample Dockerfile shows:

FROM --platform=linux/amd64 ghcr.io/termsurf/task:latest
RUN mkdir -p /home/app
WORKDIR /home/app
ENV PORT 3000
COPY *.yaml .
COPY *.json .
RUN pnpm install
COPY src/ src
EXPOSE ${PORT}
CMD [ "sh", "-c", "pnpm start"]

TODO

  • https://github.com/tensorflow/swift/blob/main/Installation.md
  • make a CLI command builder for the various delegations, so the commands can be printed in the UI based on their input.
  • https://github.com/jupyter/nbconvert

License

MIT