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

@digitalafarin/cms-cli

v0.4.2

Published

Installer/wiring CLI for DigitalAfarin CMS in Django + Next.js projects

Downloads

938

Readme

@digitalafarin/cms-cli

Installer/wiring CLI for adding DigitalAfarin CMS to existing Django + Next.js projects.

Basic usage

npx @digitalafarin/cms-cli init

For split folders:

npx @digitalafarin/cms-cli init --backend backend --frontend frontend

The CLI:

  1. installs digitalafarin-cms[all] through pip;
  2. adds the CMS settings helper to Django;
  3. mounts /api/cms/v1/;
  4. runs Django migrations unless --skip-migrate is used;
  5. installs @digitalafarin/cms-next;
  6. creates .env.local defaults and a Next.js CMS client adapter.

It does not overwrite an existing Next.js route or page renderer.

Add the visual CMS Admin under /cms

To wire the backend/frontend and also scaffold the separate Next.js admin application:

npx @digitalafarin/cms-cli init \
  --backend backend \
  --frontend frontend \
  --with-admin \
  --admin-dir cms-admin \
  --admin-base-path /cms \
  --admin-api-url https://api.example.com/api/cms/v1 \
  --admin-port 3001

Or scaffold only the admin application:

npx @digitalafarin/cms-cli admin \
  --admin-dir cms-admin \
  --admin-base-path /cms \
  --admin-api-url https://api.example.com/api/cms/v1 \
  --admin-port 3001

The generated admin app is a standalone Next.js application. It can be reverse-proxied from the main website domain so editorial users visit https://example.com/cms/ without a separate CMS subdomain.

The generated cms-admin/deploy/nginx.cms.conf contains the Nginx location block.

Doctor

npx @digitalafarin/cms-cli doctor

doctor reports detected Django and Next.js application directories without modifying the project.

Useful flags

--backend DIR
--frontend DIR
--python CMD
--skip-install
--skip-migrate
--django-package SPEC
--next-package SPEC
--with-admin
--admin-package SPEC
--admin-dir DIR
--admin-base-path /cms
--admin-api-url URL
--admin-port 3001
--force-admin

Package override flags are useful when testing local release artifacts.

Local archives

npx ./digitalafarin-cms-cli-0.4.0.tgz init \
  --django-package ../digitalafarin_cms-0.4.0-py3-none-any.whl \
  --next-package ../digitalafarin-cms-next-0.4.0.tgz \
  --with-admin \
  --admin-package ../digitalafarin-cms-admin-0.4.0.tgz

The release CI installs packed SDK, CLI and Admin packages into a clean temporary consumer, executes the installed binaries and verifies that /cms scaffolding is complete.