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

onekey

v1.1.10

Published

one key install apps

Downloads

4

Readme

OneKey - one key install apps & system settings

Install the applications and system settings needed for a new system with one click, get the system into working condition quickly.

Feature

  • Configuration file encryption
  • Support macos system dmg pkg zip file type
  • Support installation of app purchased from the Mac App Store
  • Support for installing Homebrew app
  • Support activate app or sync app config

Quickly

Install the app using a script that automatically installs Node.js.

/bin/bash -c "$(curl -fsSL https://onekey.dev/install)" [filePath] [password]

Installation

npm install -g onekey

Command line flags

npx -y onekey [filePath] [password] [tools]
  • filePath: configuration file address, support local file or remote url or Github gist.
  • password: secret key, if the configuration file is encrypted, it needs to be decrypted using the secret key.
  • tools: encrypt & decrypt tools, encrypt algorithm: aes-256-cbc. Online Tools
    • use -e to encrypt configuration files.
    • use -d to decrypt configuration files.

Usage

Normal

onekey <local file>.pack
onekey <https:// url>.pack
onekey <github username>/<gist name>.pack

Recommended

Use the npx command to omit the installation step.

npx -y onekey <local file>.pack
npx -y onekey <https:// url>.pack
npx -y onekey <github username>/<gist name>.pack

Advanced

Using an encrypted configuration file secures the data, but you must enter the correct secret key when using it.

npx -y onekey <local file>.pack <password>
npx -y onekey <https:// url>.pack <password>
npx -y onekey <github username>/<gist name>.pack <password>

Use encrypt & decrypt tools

npx -y onekey <local file>.pack <password> -e # encrypt local file
npx -y onekey <https:// url>.pack <password> -e # encrypt remote file
npx -y onekey <github username>/<gist name>.pack <password> -e # encrypt gist file
#==> hash code

npx -y onekey <local file>.pack <password> -d # decrypt local file
npx -y onekey <https:// url>.pack <password> -d # decrypt remote file
npx -y onekey <github username>/<gist name>.pack <password> -d # decrypt gist file
#==> yaml code

Configuration file content

The contents of the configuration file use YAML syntax, and the file extension must be .pack.

Note ⚠️

The name field identifies the application and is used to determine if the application is installed, so please use the correct application name.

Syntax

- type: # operation type, app or command type
  name: # application name, only works if type is app
  alias: # application alias, for applications with non-English name, not required
  downloadUrl: # application install link, in the case of mac os, you can also specify the link for the intel and arm versions separately
  action: # action after application downloaded
    - install # install action for installing app, required
    - - active # active action for activate app or sync app config, not required
  description: # command description, only works if type is command
  cmd: # command to be executed, can be one or more command, only works if type is command

Example

- type: app
  name: Notion
  downloadUrl:
    - - intel
      - 'https://desktop-release.notion-static.com/Notion-2.0.23.dmg'
    - - arm
      - 'https://desktop-release.notion-static.com/Notion-2.1.0-arm64.dmg'
  action:
    - install
- type: app
  name: Spectacle
  downloadUrl: 'https://cdn.javis.cloud/apps/Spectacle%2B1.2.zip'
  action:
    - install
- type: app
  name: ColorSlurp
  downloadUrl: 'https://apps.apple.com/cn/app/id1287239339'
  action:
    - install
- type: command
  description: Turn dock auto hide on
  cmd: defaults write com.apple.dock autohide -bool true
- type: command
  description: Remove dock show delay
  cmd:
    - defaults write com.apple.dock autohide-delay -float 0
    - defaults write com.apple.dock autohide-time-modifier -float 0

Read more.

License

MIT.

References and ideas

  • https://github.com/labianchin/dotfiles
  • https://macos-defaults.com/
  • https://github.com/apptools-lab/AppToolkit