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

devassist-frontend-web-temp

v1.0.3

Published

A template project generator for React and Next.js

Downloads

2

Readme

Project Template Generator

This npm package helps you quickly set up a new project with predefined templates for React or Next.js, with Tailwind configuration for styling, options to use TypeScript, and include i18next for internationalization.

IMPORTANT

This package is created for practice, as well for saving time on initial project setup. Package is currently in BETA and will be regulary updated in the future. All advices on how to improve it are warmly welcomed. Should you encounter any issues or have a request for a new feature, please open an issue on Github repository

Installation

Before using this package, make sure you have Node.js and npm installed on your machine.

  1. Install the package
npx devassist-frontend-web-temp
  1. Set project name
  2. Choose preferred framework (React or Next.js)
  3. Choose preferred language (JavaScript or Typescript)
  4. Choose whether you want to use internationalization (i18next)
  5. Run the development server
npm run dev

Features

  • Framework Selection: Choose between React or Next.js (app router).
  • Language Selection: Choose between JavaScript or TypeScript.
  • Internationalization: Optionally include i18next for multi-language support.
  • Project structure setup: Each template includes predefined and scalable project structure.

Project structure

When you generate a new project using this template generator, the project structure is organized to promote scalability and maintainability. Below is an overview of the directory structure for both Next.js and React projects.

React Project Structure

--- /node_modules # Node.js packages --- /public # Static files served by Next.js (images, fonts, etc.) ----- /locales # Translation files (only in templates with translation) --- /src ------ /assets # Static files like images, fonts, and other media that are used in the project ------ /lib # Utility functions, services, custom hooks, etc. ---------- /services # API calls, business logic ---------- /store # Redux or other state management setup ---------- /types # custom type definitions and interfaces (only in typescript templates) ---------- /utils # General utility functions used accross the project ------ /pages # Contains React components that represent different routes in your application ------ /ui # UI components and containers ---------- /components # Reusable UI components ---------- /containers # Feature-specific UI containers ------ App.jsx (or .tsx) # Root component that wraps the entire application, setting up context providers and global styles ------ i18n.js (or .ts) # Internationalization configuration (only in templates with translation) ------ index.css # Global CSS styles applied across the entire application. ------ main.jsx # entry point of the React application where the root component (App.jsx) is rendered to the DOM. ------ vite-env.d.ts # File that ensures TypeScript types are correctly applied to React-specific features and configurations. (only in typescript templates) --- .gitignore # Specifies which files and directories should be ignored by Git --- eslintrc.json # ESLint configuration file --- index.html # Main HTML template for the React application, providing the base structure and the root element where the React app is rendered. --- package.json # Project metadata and dependencies --- postcss.config.mjs # Postcss configuration file --- README.md # Automaticly generated instructions for React projects --- tailwind.config.js # Tailwind configuration file --- tsconfig.app.json # Specifies TypeScript compiler options for the application code, including settings for module resolution and strict type checking. (only in typescript templates) --- tsconfig.json # TypeScript compiler options configuration (only in typescript templates) --- tsconfig.node.json # Configuration for TypeScript compiler options specifically for Node.js-related code, such as server-side logic and scripts. (only in typescript templates) --- vite.config.js (or .ts) # Vite configuration file

Next.js Project Structure

--- /node_modules # Node.js packages --- /public # Static files served by Next.js (images, fonts, etc.) --- /src ------ /app # Next.js pages (routes) ------ /lib # Utility functions, services, custom hooks, etc. ----------/i18n # Internationalization configuration and translation files (only in templates with translation) ----------/services # API calls, business logic ----------/store # Redux or other state management setup ----------/types # custom type definitions and interfaces (only in typescript templates) ----------/utils # General utility functions used accross the project ------ /ui # UI components and containers ----------/components # Reusable UI components ----------/containers # Feature-specific UI containers ------ middleware.js (or .ts) # middleware setup (only in templates with translation) --- eslintrc.json # ESLint configuration file --- .gitignore # Specifies which files and directories should be ignored by Git --- next-env.d.ts # File that ensures TypeScript types are correctly applied to Next.js-specific features and configurations. (only in typescript templates) --- jsconfig.json # JS configuration file for Next.js projects --- next.config.mjs # Next.js configuration file --- package.json # Project metadata and dependencies --- postcss.config.mjs # Postcss configuration file --- README.md # Automaticly generated instructions for Next.js projects --- tailwind.config.js (or .ts) # Tailwind configuration file --- tsconfig.json # TypeScript compiler options configuration (only in typescript templates)

Contributions

Contributions are welcome! Please open an issue or submit a pull request on the GitHub repository.

Like my work?

Found this package helpful? Buy me a coffee