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-remstack-app

v1.0.0

Published

CLI tool for creating RemStack Next.js apps

Downloads

5

Readme

Introduction

Welcome to the RemStack! A Full stack Next.js boilerplate preloaded with Prisma, Clerk, Tailwind, and TypeScript.

Getting Started

First, you'll want to create your application, and that's easy:

npx create-remstack-app <project-directory>

The create-remstack-app command will bootstrap your Next.js application. We use the app router of course and set you up with a Prisma schema template, Clerk Authorization Middleware, and some example files on how to integrate the technologies together.

At this point, you can spin up the development server with npm run dev and start checking things out. Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

You'll also notice a .env file in the root of your directory, it's there you'll want to add all your secrets and tokens for Clerk and Prisma. Once said and done it should look like the following:

NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_publishable_clerk_key
CLERK_SECRET_KEY=your_secret_key
NEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in
NEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up
NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/
NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/

DATABASE_URL=your_db_url

After Token Setup

Once you've added your database url to the .env file, you can deploy your DB Model (found in prisma/schema.prisma) with the command npx prisma db push

Once you've created your Clerk app and added your Clerk keys to the .env file, you can uncomment out the code found in src/middleware.ts and delete the doNothing() function. You'll also want to go into the src/app/layout.tsx file and wrap your html tag in the ClerkProvider component like so:

<ClerkProvider>
    <html lang='en'>
        <body className={openSans.className}>{children}</body>
    </html>
</ClerkProvider>

Additionally, if you want to see an example on how to use Clerk and Prisma together, check out the src/app/lib/initial-profile.tsx file.

And that's it, now get out there and get building!

Learn More

Below I have linked some helpful documentation on setting up a Clerk and Prisma app:

Clerk Initial Setup

Clerk + Next.js

Prisma Quickstart Guide