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

@mdworld/homeremote-dockerlist

v1.9.0

Published

Show a list of docker containers and start or stop them

Downloads

10

Readme

homeremote-stream-player

Show a list of docker containers and start or stop them

See https://github.com/mdvanes/homeremote/issues/9

How this project was set up

  • nvm use 15
  • copied package.json from other client package in the monorepo
  • yarn lerna add rescript -D --scope=@mdworld/homeremote-dockerlist
  • add bsconfig.json following https://rescript-lang.org/docs/manual/latest/installation#integrate-into-an-existing-js-project
  • add "re:build": "rescript", "re:start": "rescript build -w" to package.json/scripts
  • create a file /packages/dockerlist-client/src/Test.res with the button example from https://rescript-lang.org/try
  • in /packages/dockerlist-client run yarn re:build
  • now get an error that is probably caused because rescript-react is not yet installed, see https://rescript-lang.org/docs/react/latest/introduction
  • compilation indeed does work, when Test.res only contains Js.log("Hello, World!")
  • Add rescript-react: yarn lerna add @rescript/react --scope=@mdworld/homeremote-dockerlist
  • Add { "reason": { "react-jsx": 3 }, "bs-dependencies": ["@rescript/react"] } in bsconfig.json
  • in /packages/dockerlist-client run yarn re:build
  • Add fetch to endpoint: yarn lerna add bs-fetch --scope=@mdworld/homeremote-dockerlist and add to bsconfig.json: "bs-dependencies": ["bs-fetch"]

Running

  • dev: run in root: yarn start and it will start storybook, mock api, and yarn re:start (in this dir)

TODO

  • For now XHR works in Rescript, but Fetch only works in Reason files. Mainly decoding the JSON fails, even with "@glennsl/bs-json"
  • Material UI bindings seem very unstable: https://jsiebern.github.io/bs-material-ui Adding it breaks the build sometimes
  • Clean up old Elm deps from package.json
  • Builders (like webpack) are discouraged: https://rescript-lang.org/docs/manual/latest/interop-with-js-build-systems
  • Snowpack build to dist dir like in https://github.com/jihchi/rescript-react-realworld-example-app/blob/main/package.json https://www.snowpack.dev/
  • Storybook like in https://raw.githubusercontent.com/elfsternberg/doc-rescript-with-storybook/main/src/stories/02_Noncard.stories.mdx