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

create-new-startup

v1.3.3

Published

A React Framework for Startup Founders

Downloads

57

Readme

Follow on Twitter
Join Reddit Community

A React framework for startup founders to test ideas super fast while writing reusable code for their next pivot.

Get Started Immediately

npx create-new-startup YourStartupName

Example

npx create-new-startup PivotJs

Target User

  • Your #1 goal is to acquire Paying Customers. You care little about SSR, CSR or RSC lol.
  • You aim to write code you can share across projects.
  • You've learnt that adding more features won't bring in users. Talking to customers and analytics will.
  • You're an indie-hacker who can learn/knows Express, React and Redux.
Table of Contents

Framework Features
Style Guide
Redux Cheatsheet
RtkQuery Cheatsheet

Framework Features

  • Frontend

    • Redux State Management with custom code completion in VScode
    • RTKQuery API code generators and end-point injectors
    • Customizable webpack.config
    • Built-in analytics to detect user activity
  • Backend

    • Express backend
    • Optional MongoDB bindings
    • Plugin ecosystem
    • Server-side rendering

Style Guide

Disclaimer:

You MUST follow a design pattern to make your code reusable. Don't worry about OOP or functional programming. This guide defines a Directory Structure for reusable components.

Goal:

We aim to ensure entire routes can be reused. Routes are pages.

Every page shares a folder with its components, RTKQuery API calls and Redux states.

Frontend Directory Tree

  • Pages
    • ChosenNamePage Folder ie. "HomePage, LandingPage..."
      • ChosenName.jsx - UI logic and declare nested routes(if needed)
      • Components - Stuff like sidebars, navs, forms...
      • SubPages Folder
        • Write code for nested routes BUT maintain state in ChosenNameReducer.js and define endpoints in ChosenNameEndpoints.js defined below.
      • Redux Folder
        • ChosenNameReducer.js - Redux state management
        • ChosenNameEndpoints.js - RTKQuery API calls
  • Redux Folder
    • ReduxStore.js - configure Redux store.
    • ReduxApi.js - ONLY place you write createAPI. Endpoints should be empty
  • App.js
    • Main routes ie. "home...landing...store...etc" defined here
  • index.js
    • Redux Provider and CSS variables MUST be defined here

Backend Directory Tree

  • WIP

Redux Cheatsheet

  • Redux is mostly boiler plate. This framework offers code code completion in VScode.
  1. pvtSlice - Generates a Redux slice and and its exports
  2. pvtBool - Generates a Boolean initial state variable and true/false reducers
  3. pvtList - Generates a List initial state variable and add/remove reducers
  4. pvtVar - Generates a general initial state variable. Default is string but can be anything you want
  5. pvtAl - Generates a functional component with imports for basic analytics

RTKQuery Cheatsheet

  1. pvtApi - Generates an API slice and exports. Only need to run once in a project.

  2. pvtInject - Generates an Endpoint Injector for ReduxApi.js

  3. pvtPost - Generates a POST mutation and its exports.

  4. pvtGet - Generates a GET query and its exports.

Milestones

  1. Test on Windows and Mac.
  2. Get Listed on Styled-Components website
  3. Get listed by the React dev team as a production-grade framework.

Author

Murage Kibicho
Branford College
New Haven, Connecticut

Follow on Twitter
Join Reddit Community