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

v2.20240816.0

Published

An installer for Liveblocks projects, including various examples and a Next.js starter kit. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.

Downloads

2,056

Readme

create-liveblocks-app

The easiest way to get started with a Liveblocks starter kit or example.

Get started

You can create a new Liveblocks project using the following command:

npx create-liveblocks-app@latest

The initial prompt allows you to set up one of the following:

  1. Next.js Starter kit—Our official starter kit for Next.js
  2. An example from the Liveblocks repo—Any example from liveblocks/liveblocks

From there, follow the instructions to set up your app! You can also use the CLI to generate a liveblocks.config.(js|ts) config file.

Flags (optional)

If you wish, you can skip certain create-liveblocks-app prompts with the following flags. Please note that these are optional, and if no flags are used, you will be prompted about these options in the installer instead.

npx create-liveblocks-app@latest [options]

Options:

  --init
  Generate a liveblocks.config.(js|ts) file in the current directory

  --framework [`react`|`javascript`]
  The framework your config file uses. Option only for `--init`.
  e.g. `--framework react`

  --next
  Use the Next.js Starter Kit

  --example [example name]
  Use a Liveblocks example, the name corresponding to the example name in the repo
  e.g. `--example zustand-whiteboard` for https://github.com/liveblocks/liveblocks/tree/main/examples/zustand-whiteboard

  --name [repo name]
  The name of the project/directory
  e.g. `--name my-liveblocks-project`

  --package-manager [`npm`|`yarn`|`pnpm`]
  Select your package manager, default is `npm`
  e.g `--package-manager yarn`

  --auth [`demo`|`github`|`auth0`]
  Select your authentication method. Option only for Next.js Starter Kit.
  e.g. `--auth github`

  --install
  Install the project with the selected package manager

  --no-install
  Don't install the project

  --git
  Initialize git

  --no-git
  Don't initialize git

  --vercel
  Deploy on Vercel, and get Liveblocks API key

  --no-vercel
  Don't deploy on Vercel

  --api-key
  Get Liveblocks API key. Ignored if `--vercel` is used.

  --no-api-key
  Don't get Liveblocks API key. Ignored if `--vercel` is used.

  --open
  Open browser without asking permission, when deploying to Vercel or getting API key

  --upgrade [version]
  Upgrade all Liveblocks packages to a certain version. If no version passed, use `latest`
  e.g. `--upgrade` for latest, `--upgrade 2.0.0` for 2.0.0

  --help
  Find more info

Examples

Next.js Starter Kit with no install:

npx create-liveblocks-app@latest --next --no-install

Example from Liveblocks repo with directory/project name specified:

npx create-liveblocks-app@latest --example nextjs-live-avatars --name my-liveblocks-app

Next.js Starter Kit with every option:

npx create-liveblocks-app@latest --next --name my-project --auth github --package-manager npm --install --git  --vercel --open

Generate a Liveblocks config file:

npx create-liveblocks-app@latest --init