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 🙏

© 2026 – Pkg Stats / Ryan Hefner

togen

v1.0.0

Published

A command-line tool to generate your own token sale

Readme

togen : Token and Token Sale Generator CLI (Beta)

The togen Token Sale Generator CLI is an commandline tool to configure, generate, compile and deploy tokensale smart-contract infrastructures.

Modules

Configure Contracts

Choose which contracts you will be assembling, compiling and deploying. Answer the different questions to configure tokensale parameters (number of tokens, cap, etc.)

Display Contract Configuration

Quickly visualize which contracts are included and their configuration

Assemble Contracts

Instantly generate solidity code corresponding your tokensale configuration. You need to finish configuration before proceeding to build your contracts.

Compile Contracts (under development)

Compile the contracts into bytecode.

Deploy Contracts (under development)

Deploy contracts via your own client or simply use Infura to seamlessly deploy contracts to the network of your choice

Requirements

  • OSX or Linux (Windows support planned)
  • Node (version 8.7.0 required for the testing environment)

Install

An early version of the module has been published via npm. It is however an early release and we recommend using the development version of the CLI to be able to benefit from the latest changes.

To install the npm published version:

npm install -g togen

To install the developer version with the latest changes:

  • Clone the package
git clone https://github.com/ProofSuite/TokenSaleGeneratorCLI
  • Install the package globally
cd TokenSaleGeneratorCLI
npm install -g .

Usage

Create your togen folder (creates a local directory with the required smart-contracts dependencies and settings files).

togen init --name togen-folder
cd togen-folder

List of the togen sub-commands:

Initialize a togen directory

togen init [--name <name>]

  • --name: Enter togen folder name (optional)

Open an interactive togen session

togen console

Configure contract parameters:

togen configure [ --show |--edit | --interactive ] [ --file <file> | --default ]

  • --show: Show configuration (from current project, file or default configuration)
  • --edit: Edit configuration. If the file option is used, the file configuration will replace the project configuration
  • --interactive: Edit configuration interactively

Assemble contract templates

togen assemble [--file <filepath>] [--contracts <names>] [--output <path>] [ --print ]

  • --file: Assemble contract from file configuration (if the file is not provided, the configuration will be current project configuration)
  • --contracts: Only assemble the provided contracts (the settings file is still required)
  • --output: Outputs the resulting solidity code to the given path

Compile one or several smart contracts

compile [--file filepath] [--contract <names>] [--output <path>] [--bytecode | --interface]

  • --file: Compiles contract from file configuration (if the file is not provided, the configuration will be the current project configuration)
  • --contracts: Only compiles the provided contracts (the settings file is still required)
  • --output: Outputs the resulting compile information to the given path
  • --bytecode: Print contracts bytecode
  • --interface: Print contracts interface

Examples

Show current configuration

togen configure --show

Show file configuration

togen configure --show --file <path/to/file.json>

Show the default configuration

togen configure --show --default

Edit your configuration interactively

togen configure --edit

Edit your configuration with a settings file

togen configure --edit --file <path/to/file.json>

Open interactive togen console

togen console

Assemble contracts (local configuration)

togen assemble

Assemble contracts from a specific configuration file

togen assemble --file <path/to/settings.json>

Assemble a specific contract within your configuration (local configuration)

togen assemble --contracts Presale

Compile local configuration/contracts

togen compile

Assemble and compile from a specific configuration file

togen assemble --file <path/to/settings.json>

Current Features

The togen token/tokensale generator CLI project is still in its infancy. Here are the current features for both tokensale and token contracts:

Tokens:

  • Token Name
  • Token Symbol
  • Token Decimals
  • Token Standard (ERC20, MINIME. The next step is to included ERC223 + Open Zeppelin additional personalization)
  • Allow transfers or not
  • Allow locking transfers or not

Tokensale:

  • Token Price
  • Minimum Investment
  • Tokensale Wallet
  • Tokensale starting/ending date
  • Tokensale Cap
  • Token Balance/Supply proxy
  • etc.

Contributing

The togen project is fully open-sourced and we welcome any contributions, even the smallest