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

jamyth-script

v2.4.2

Published

Cli for quickly setup react typescript webpack

Downloads

71

Readme

jamyth-script (v2)

A CLI tool for one-key setup TypeScript, React, Webpack Version 5.

Feature Includes:

  • Gracefully Upgraded to webpack 5
  • Create a complete customizable React Project with just a key.
  • Easy to switch between Npm and Yarn
  • Support Javascript and Typescript.
  • Support Scss
  • Save time configuring webpack settings.
  • Easy to change webpack.config.js when needed.
  • Path Alias support
  • Easy Command to generate component and module

Installation and Usage

The easiest way to use jamyth-script

yarn global add jamyth-script

After that, type the following to the console.

jamyth-script new my_awesome_project

Then the cli will automatically generate all the files needed.

File Structure will look like this

* my_awesome_project
|
+-- node_modules
+-- src
|   +-- asset
|   +-- component
|   +-- module
|   |   +-- main
|   |       +-- component
|   |       |   +-- Main.tsx
|   |       |   +-- index.scss
|   |       +-- index.ts
|   +-- util
|   |   +-- async.tsx
|   +-- index.tsx
|
+-- static
|   +-- index.html
|
+-- package.json
+-- tsconfig.json
+-- webpack.config.js
+-- yarn.lock

Generating Module / Component

In src folder, there will be two folder called component and module. To keep the structure organized. we do not suggest directly added folder and file.

P.S. jamyth-script will automatically detect the language of the project (js | ts) and generate a suitable module / component, so don't worry

Instead, we suggest you to do the following

// First cd to your project directory, or the follow commands cannot
// execute properly.

jamyth-script g module home --state|-s --asset|-a

// --asset -> will generate an asset folder in the module
// --state -> will generate a type.ts for the interface and more

================================================

jamyth-script g component logo --asset|-a

// --asset -> will generate an asset folder in the component

when the installation complete, simply cd the project folder and

yarn start

Code Splitting

To keep your webapp optimized, we provided a dynamic import solution for code splitting. You can apply this feature in two ways.

This functionality is inspired by React.lazy. But we also support Named Export as well as Default Export.

  1. Route Component -> Split by Page
  2. Module / Component -> Split whenever calling another module or component
// Logo.tsx
export const MyLogo = React.memo(() => <img src={mylogo}/>)

// Module.tsx
import { async } from 'util/async'

const myLogo = async(() => import('component/logo'), 'MyLogo')

export const Module = React.memo(() => {
    return (
        <main>
            <myLogo />
        </main>
    )
})

Start new project with flags

| Flags | Description | | ----------------- | --------------------------------------- | | --npm | use npm as package manager | | --js --javascript | create new project that uses javascript |

Commands

| Command | Description | Param Required | | ------------------------------------------------ | -------------------------- | -------------- | | new <project_name> | Generate a React Project | Yes | | g <module|component|module-component> < name > | Create module or component | Yes |

Todos

  • ~~npm support~~ -> v2.2.5
  • react-router
  • redux
  • ~~path alias~~ -> v1.2.23
  • ~~React.memo~~ -> v1.2.23
  • ~~Code Splitting~~ -> v1.3.0
  • ~~non-typescript~~ -> v2.2.5
  • ~~webpack 5~~ -> 2.3.0
  • and more ...

Known issues

  • path alias not working for js project

#Licenses MIT licensed. Copyright (c) Jamyth Luk 2020.