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

impossible-solitaire

v0.0.3

Published

Impossible Solitaire is a terminal based version of the classic card game (and Windows 3.x app). Made with Impossible.js.

Downloads

18

Readme

Impossible Solitaire

Impossible Solitaire is a terminal based version of the classic card game (and Windows 3.x app). Made with Impossible.js.

Installing

Open terminal and run npm install -g impossible-solitaire.

Playing

Just type solitaire.

This is a mouse based game.

Drag-and-Drop, Click and Double Click all work where appropriate.

Game options include choosing a scoring method (Standard, Vegas or None), the card draw mode (one card or three cards) and whether or not to keep cumulative score.

Game comes with 5 color themes. Log feature allows any move in the game to be undone.

Game board is always centered and is also responsive, so it can be played on anything from a classic 24x80 terminal window to a full screen MacBook one.

All data persist when app is terminated.

Upon winning, the cards will do their thing 😉.

App is meant to explore the limits of Impossible as an app framework and the Impossible Collection as a component library. Some implementation details and features may stray away from "the recommended best practices" just to prove a point. Totally worth it.

Developing

Clone the repo and cd into the repo directory.

Run npm install.

Setup

Start the development server: npm start.

This does the following:

  • It starts watching source files to generate two app versions: one for node and one for web.
  • It starts a dev server on port 8080.

The web version of the app is accessible via http://localhost:8080/www/.

The node version of the app is accessible via node dist.

An executable version of the app is in the bin directory.

Edit files in src directory to modify app.

Building

Build production bundles using npm run build.

This will generate three apps:

  1. a production version of the web bundle accessible via http://localhost:8080/www/
  2. a production version of the node app accessible via node dist
  3. an executable version of the app accessible via bin/{package-name}.js where name is the package name from package.json.

Publishing

To NPM

README-NPM.md (if exist) will be used as README file for NPM replacing the repo README. A stub is at this repo's root.

Only files in the bin directory will be published to the npm registry. dependencies and devDependencies will be removed from the published package.

Note: if publishing fails, run node scripts/postpack to revert.

To the Web

All required files are in the www directory. Can be used with static hosting services such as Netlify and GitHub pages.

Authors

(c) Ron Ilan

License

NOT LICENSED

Fabriqué au Canada : Made in Canada 🇨🇦