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

vite-crazy-kickstart

v1.2.5

Published

A Vite template for React TypeScript projects with recoil, tailwindcss, aceternity configured

Downloads

19

Readme

Vite Crazy Kickstart

Vite Crazy Kickstart is a fast, feature-rich starter template for building modern React applications with TypeScript. It comes pre-configured with the following technologies:

  • Vite for fast development and hot module replacement (HMR).
  • React for building user interfaces.
  • TypeScript for static typing and enhanced developer tooling.
  • Recoil for state management.
  • TailwindCSS for utility-first, responsive styling.
  • Aceternity UI for UI components.

Features

  • Vite for blazing fast development: Instant server start and fast HMR powered by Vite.
  • Recoil for global state management: Easy-to-use state management for your React app, perfect for both small and large-scale applications.
  • TailwindCSS for utility-first styling: Pre-configured TailwindCSS for building responsive layouts quickly.
  • Aceternity UI: Pre-built UI components to help you kickstart your project with a professional look.

Preview

Here's what the template looks like out of the box:

Installation

You can easily create a new project using this template with the following command:

npx vite-crazy-kickstart@latest 

This will set up the template in a new folder called my-new-project. You can then navigate into your project directory and start the development server.

cd my-new-project
npm install  # Install dependencies
npm run dev  # Start development server

For pnpm or yarn users, you can use your preferred package manager instead of npm.

Build for Production

To create a production build of your project, run:

npm run build

This will output your built files into a dist folder, ready for deployment.

Folder Structure

Here’s a quick overview of the important folders in this template:

my-new-project/
├── public/              # Static assets like images, favicons, etc.
├── src/
│   ├── assets/          # Logos, images, and static assets
│   ├── components/      # Reusable components (includes UI components)
│   ├── lib/             # reusable function's and method's
│   ├── recoil/          # Recoil atoms and selectors
│   ├── index.css/       # Global CSS (including Tailwind imports)
│   ├── AppRoutes.tsx/   # declaring App routes
│   ├── App.tsx          # Main application component
│   └── main.tsx         # Entry point for React
└── index.html           # Main HTML file

Vite Configuration

Vite’s configuration is minimal but flexible. Here’s the vite.config.ts that comes with this template:

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react()],
  resolve: {
    alias: {
      '@': '/src',  // Allows importing from 'src' directory using '@'
    },
  },
});

Technologies Used

Vite

Vite is a next-generation frontend tool that focuses on speed and performance. It provides instant server start and fast hot module replacement (HMR), making the development experience smooth.

React

React is a JavaScript library for building user interfaces, focusing on declarative, component-driven development. It's perfect for building interactive and dynamic web applications.

TypeScript

TypeScript provides optional static typing to JavaScript, allowing developers to catch errors early and enjoy enhanced editor tooling like autocompletion, refactoring, and more.

Recoil

Recoil is a state management library for React, providing powerful, flexible tools for managing both local and global state.

TailwindCSS

TailwindCSS is a utility-first CSS framework that makes styling fast and efficient. It allows you to build responsive, mobile-first designs directly in your JSX files.

Aceternity UI

Aceternity UI provides a set of clean, customizable UI components for quickly building modern web applications. This template includes its preconfigured components to give your project a polished look right from the start.

Getting Started

Once you've installed the template, you can start adding your components and business logic. Here are a few steps to help you get started:

  1. Create Components: Start building your components in the src/components/ directory.
  2. Manage State: Use Recoil for state management. Define your atoms and selectors in the src/recoil/ directory.
  3. Style with TailwindCSS: Write your styles using Tailwind classes right in your JSX files.
  4. Add Assets: Put images, logos, and other static files in the src/assets/ folder.

License

This template is open-source and available under the MIT License.


Links: