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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ctrader

v2.1.0

Published

Turn-based strategic trading game

Downloads

286

Readme

Overview

Sea Trader is a terminal-based trading simulation game set in the 19th-century Far East. As a maritime merchant, your goal is to amass a fortune of $25,000 within 100 days through strategic trading, careful navigation, and shrewd decision-making.

Quick Start

$ npx ctrader

Tested on: iTerm version 3.5.10 and Warp version 2024.11.21.

How to Play

On the start screen, you can toggle between "Regular" and "Extended" game modes by pressing the M key. Press Enter to begin your journey.

Game Modes

  • Regular: Default mode with a 100-day limit for your voyage.
  • Extended: Continue playing beyond 100 days, but incur score penalties for each extra day.

Available commands

  • Travel: Move between ports. Type the number next to your desired destination and press Enter to confirm. Each travel takes 3-10 days.
  • Buy/Sell: Purchase or sell goods from the local market. Type the initial of the good and how many tons you'd like to buy/sell, then press Enter to confirm.
  • Repair: Available only if your ship is damaged. Enter the amount of money you wish to invest in repairs and press Enter to confirm.
  • Retire: This option is available only after 100 days. End the game and display your score.

Scoring

Your score is influenced by the following factors:

  1. Total wealth accumulated.
  2. Condition and upgrades of your ship.
  3. Number of days taken to reach your goal (extra days incur penalties).

Gameplay Tips

  • Keep an eye on the price list. Prices are updated every 14 days.
  • Maintain your ship in good condition to avoid negatively impacting your final score.
  • Plan efficient routes to maximize trading time and opportunities.
  • Events are more likely to occur during the late stages of your voyage and as you get richer.

Feedback and Contributions

Your feedback is very appreciated! Please let me know if you want something new implemented or if you have an idea for improving the gameplay.
If you want to contribute code, please open an issue describing your change and let the community discuss your idea before implementing it. Thank you!

License

MIT