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

okcli-app-templates

v0.0.1

Published

node + typescript + commander + clack + tsup , create framework templates

Downloads

26

Readme

okcli-app-templates

Sipmle project to get all the frontend framwork templates in one diretory

why: I use it for testing

commands

  • fresh
npx okcli-app-templates fresh

Creates the templates using the framework's cli scripts.

⚠️ This command can take a while since Nextjs has 4 possible folder structures and doesn't inject thepackage.json dependancies until it has installed everything. the node_modules directories are removed after the install

options

  .option("-fw, --frameworks <frameworks...>", "frameworks to  scaffold")
  .option("-r, --react <react_frameworks...>", "react frameworks to  scaffold")
  .option("-d, --dir <dir>", "path to add to")

ex:

npx okcli-app-templates fresh --frameworks react --react nextjs vite-react-spa rakkas --dir src/test-apps

This vcan be used to narrow down the projects to be scaffolded , providing none will get everything

  • clone
  npx okcli-app-templates clone

This will do a git clone from the repository

https://github.com/tigawanna/framework-templates.git

scripts used

export const next_apps_script = [
    "npx --yes create-next-app app-dir-with-src --typescript --tailwind --eslint --app --src-dir --import-alias '@/' --use-pnpm",
    "npx --yes create-next-app app-dir-no-src --typescript --tailwind --eslint --app --src-dir false --import-alias '@/' --use-pnpm",
    "npx --yes  create-next-app pages-dir-with-src --typescript --tailwind --eslint --app false --src-dir --import-alias '@/' --use-pnpm",
    "npx --yes create-next-app pages-dir-no-src --typescript --tailwind --eslint --app false --src-dir false --import-alias '@/' --use-pnpm",
]
export const rakkas_apps_script = [
    "npx --yes create-rakkas-app@latest rakkas-app -y",
]
export const vite_app_script = [
    "npm create --yes vite@latest my-react-app -- --template react-ts",
]

export const framework_enums = ["react"] as const;
export const react_framework_enums = ["nextjs", "rakkas", "vite-react-spa"] as const;