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 🙏

© 2026 – Pkg Stats / Ryan Hefner

laikacli

v0.2.0

Published

The Laika CMS command-line interface (`laikacli`, short alias `laika`): local dev storage server, config-to-typed-TypeScript codegen, and storage repository migrations.

Readme

laikacli

The Laika CMS command-line interface. One npm name, two bins for the same entry point:

  • laikacli — canonical; matches the package name, so npx laikacli / pnpm dlx laikacli just work.
  • laika — short alias once the package is installed.

Why not publish as laika? That npm name is taken by an unrelated (abandoned) package. Bin names, however, are per-package — so the short command is still ours.

Install

pnpm add -D laikacli   # or npm i -D / yarn add -D

Then:

laika create                      # wizard: starter, directory, title, CMS + its backends/widgets/locales
laika local serve                 # start the local-file JSON:API storage server
laika local generate              # config.yaml -> typed config.gen.ts (add --watch to keep it fresh)
laika local migrate -s ./a -d ./b # copy a storage repository to another backend
laika local list-backends         # show every registered storage backend

Or one-off without installing:

npx laikacli local serve
pnpm dlx laikacli local serve

Commands

All local-file dev tooling lives under the local namespace; the top level is reserved for future non-local commands.

| Command | What it does | | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | | create | Wizard that bootstraps a starter app and generates its src/cms.ts from your backend/widget/locale selection | | local serve | Local-file JSON:API storage server for dev workflows (--root, --port, --host, --default-extension (default: md), --auth-token) | | local generate | Generate a typed TypeScript module from the CMS config file (--cms, default Decap's config.yaml) | | local migrate | Copy every atom from one storage repository to another (fs, webdav, s3, github, gitlab, bitbucket, …) | | local list-backends | List every registered storage backend and its pinned package version |

Run laika local <command> --help for the full flag reference.

create — the wizard

laika create is the supported way to start a LaikaCMS app — always go through it rather than copying a starter folder. On a terminal it walks through every choice: the starter template, target directory, site title, package manager, and — because every starter boots the bare, non-laika Decap app (@laikacms/decap-cms/laika-app/bare) with nothing pre-registered — which CMS backends, widgets, and extra admin UI locales to install. The selection is written to the generated app's src/cms.ts; re-run the wizard or edit that file to change it later.

Each prompt can be pre-answered with a flag, which also makes the command scriptable:

laika create --directory ./my-blog --title "My Blog" \
  --backends laika --widgets string,datetime,richtext --locales nl,de
laika create --yes   # accept all defaults, no prompts (also the no-TTY behavior)

Which CMS

The admin UI is a plug-in choice, selected with --cms. Decap is the only one today, so the wizard skips the question and uses it — the same way it skips the starter question while one starter is enabled. Each CMS owns its own catalogs, so --backends, --widgets, and --locales are always read against the selected CMS, and laika local generate reads that CMS's config format.

Adding one means writing a sibling of src/cms/decap.ts that implements CmsAdapter (src/cms/types.ts) and listing it in src/cms/registry.ts; nothing outside that folder knows what a Decap import looks like. Note that a CMS backend (a content source the admin UI talks to) is a different axis from a storage backend (local migrate, local list-backends).

Programmatic API

Everything the CLI does is also exported from the package root (layerStorageServer, generateConfig, runMigrate, the storage driver registry, and the make*Command factories for embedding the subcommands in another Effect CLI):

import { layerStorageServer } from 'laikacli';

This package supersedes @laikacms/local, which is deprecated.