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

coffeeshell

v2.1.1

Published

A CLI app for ordering coffee from the terminal, using Node.js, Supabase and Stripe.

Downloads

5

Readme

CoffeeShell - CLI Coffee Ordering App

CoffeeShell is a command-line interface (CLI) application that allows users to order coffee directly from the terminal. The app integrates Supabase for user authentication and Stripe for payment processing. This project serves as a template for creating CLI applications with user authentication and payment functionalities.

Features

  • User Authentication: Users can create accounts and log in using Supabase Auth.
  • Coffee Ordering: Customize your coffee order with options for sugar, milk, and whipped cream.
  • Payment Integration: Generate a Stripe payment link and complete transactions securely.
  • Order Management: Save orders to a Supabase database for tracking and analytics.

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed on your machine.
  • A Supabase account with a project set up.
  • A Stripe account for payment processing.

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/coffeeshell.git
    cd coffeeshell
    Install dependencies:
npm install

Set up environment variables:

Create a .env file in the root directory and populate it with your Supabase and Stripe credentials.

SUPABASE_URL=https://your_supabase_url.supabase.co SUPABASE_ANON_KEY=your_supabase_anon_key STRIPE_SECRET_KEY=your_stripe_secret_key Build the project:

Although this project does not require a specific build process, you can define one in the build script if needed.

npm run build

Usage

Run the application:

To start the application and interact with it via the terminal, execute:

node ./src/orderCoffee.js

Create an account or log in:

Follow the on-screen prompts to either create a new account or log in with existing credentials.

Order coffee:

Customize your coffee order by selecting options for coffee type, sugar, milk, and whipped cream.

Complete payment:

After confirming your order, a Stripe payment link will be generated. Use this link to complete the payment.

coffeeshell/
├── bin/
│ └── coffeeshell.js # Entry point for the CLI command
├── src/
│ └── orderCoffee.js # Main application logic
├── .env.template # Template for environment variables
├── .gitignore # Git ignore configuration
├── .npmignore # npm ignore configuration
└── package.json # Project metadata and scripts

Customization

Add New Features: Modify orderCoffee.js to implement additional features such as new coffee options or a loyalty program. Integrate Other APIs: Extend functionality by integrating other APIs or services (e.g., notifications or delivery tracking). Contributing

If you want to contribute to this project, please follow these steps:

Fork the repository. Create a new branch (git checkout -b feature-branch). Make your changes and commit them (git commit -m 'Add new feature'). Push to the branch (git push origin feature-branch). Open a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any inquiries, please contact José Campillo. """