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

simple-home-page

v1.1.5

Published

Create simple home pages fast

Downloads

11

Readme

simple-home-page

Create simple home pages fast 🚀

Installation

simple-home-page is a CLI tool that you can use to create a simple home page fast, so that you can focus on what matters: building a product that people want.

To install this tool, run the following:

$ npm i -g simple-home-page

Creating your simple home page

To create your home page, run the following (replaing <appName> with your desired app/folder name, like my-app)

$ simple-home-page init <appName>

This will create a Next.js application, in which you can cd into to install the dependencies and begin adjusting your home page.

$ cd <appName>
$ npm i

Open the application in your favorite IDE and search the code for TODO references, so that you can begin replacing certain placeholders with values that make sense for your project.

If you like, extend the existing HTML/CSS if you want a more feature-rich home page. This home page also serves as a starting point if you want to build your website with Next.js!

How does lead generation work?

The generated home page contains an optional feature of collecting e-mail leads (which would be e-mailed to your specified e-mail address), if you would like to collect leads for your product when your home page is deployed to production.

.env.local is an auto-generated file in your application that contains 3 environment variables that are used for lead generation:

SENDGRID_API_KEY
EMAIL_TO_ADDRESS
EMAIL_FROM_ADDRESS

You can retrieve your SENDBIRD_API_KEY when creating a SendGrid account. EMAIL_TO_ADDRESS and EMAIL_FROM_ADDRESS can be the same e-mail address - these are necessary to generate and send an e-mail to your EMAIL_TO_ADDRESS when someone adds their email on your home page.

If you don't want to use the built-in lead generation feature, simply delete <LeadGen /> from page.tsx and ignore this section.

How do I run my application?

When testing your application changes, you can use the following commands to run the project:

  1. Running application in development mode
$ npm run dev
  1. Running application in production mode
$ npm run build
$ npm run start

The application will be available at http://localhost:3000

Deployment

Unfortunately, there is no CLI command to deploy your application (yet) - you have to do it manually.

In order to deploy your home page, you need the following:

  1. Push your new home page project to your GitHub account
  2. Create a Vercel account (for project deployment & management)
  3. (OPTIONAL) Create a SendGrid account

Once you have handled the above and retrieved your SendGrid API Key, you can deploy your application on Vercel, while setting your SENDGRID_API_KEY, EMAIL_TO_ADDRESS, and EMAIL_FROM_ADDRESS environment variables in the process.

For a video demo of how to deploy your application to Vercel, see below:

https://github.com/jpbullalayao/simple-home-page/assets/3538024/7fc07a2e-c872-4b0c-8873-a0e4e8fc8110

And that's all that you need in order to deploy your simple home page! Now go focus on building your product 🚀

Contact & Support

If you'd like to contact me for any questions, issues, or if you'd just like to chat, you can tweet me @professorragna or e-mail me at [email protected]

Please tweet me or e-mail me if you actually download and use this tool, I'd love to know who has used it! :)

Also, if this package brought you any value, or if you enjoy the projects I'm working on, please feel free to buy me a coffee 😄. Thank you!