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

kalo-cli

v0.3.0

Published

Générateur de code structuré et uniforme pour Django et Wagtail

Downloads

16

Readme

Kalo CLI - Django/Wagtail Generator

This is a command-line interface tool for generating Django and Wagtail components using Plop.js.

Features

  • Generate Django models, views, forms, APIs, and more
  • Generate Wagtail pages, snippets, blocks, and other components
  • Smart file appending to avoid duplicate classes
  • Configuration loading from kalo.config.json
  • Project root detection
  • Searchable prompts for selecting existing apps

Utilities

The project includes several utility modules:

Analysis Utilities (src/utils/analysis.ts)

  • Functions to analyze Python files and extract class definitions
  • Used to prevent duplicate class generation

Code Manipulation Utilities (src/utils/code-manipulation.ts)

  • Functions to inject markers in code for AI-assisted generation
  • Apply generated code with imports, replacements, and code injection

Configuration Utilities (src/utils/config.ts)

  • Load configuration from kalo.config.json or kalo.config.js
  • Support for AI providers, temperature settings, and verbosity levels

File System Utilities (src/utils/filesystem.ts)

  • Find project root directory
  • Resolve application paths
  • Get list of existing Django applications
  • Get files and directories within an application

Naming Conventions (src/utils/naming-conventions.ts)

  • Validation functions for model names, app names, and page names
  • Field validation utilities

Plop Actions (src/utils/plop-actions.ts)

  • createAppendActions: Creates pairs of actions to ensure files exist and append content
  • Prevents duplicate class generation by checking existing classes

Search Utilities (src/utils/search.ts)

  • Fuzzy searching for autocomplete prompts
  • Filter choices based on user input

String Formatting (src/utils/index.ts)

  • Format strings to slugs, snake_case, or PascalCase

Usage

bun run plop # List all available generators
bun run plop model # Generate a new Django model
bun run plop view # Generate a new Django view
bun run plop wagtail-page # Generate a new Wagtail page

Generators

The project includes generators for:

  • Django apps
  • Django models
  • Django views
  • Django forms
  • Django APIs
  • Django QuerySets
  • Wagtail pages
  • Wagtail snippets
  • Wagtail blocks
  • Wagtail streamfields
  • Wagtail forms
  • Wagtail tags
  • Wagtail groups
  • Wagtail hooks
  • Wagtail locales
  • Wagtail admin
  • Wagtail commands
  • Wagtail templates
  • Wagtail API v2

Configuration

Create a kalo.config.json file in your project root:

{
  "aiProvider": "openai",
  "temperature": 0.7,
  "verbosity": "standard",
  "appDir": "src"
}

Integration Notes

  • The createAppendActions utility is now used in ALL generators (model, view, api, form, queryset, wagtail-admin, wagtail-api-v2, wagtail-block, wagtail-command, wagtail-form, wagtail-hook, wagtail-page, wagtail-snippet, wagtail-streamfield, wagtail-tag, wagtail-template) to append to existing files instead of overwriting them
  • The plopfile.ts now loads configuration and sets up project root detection
  • Multiple generators now use searchable prompts for app selection (api, form, queryset, wagtail-admin, wagtail-api-v2, wagtail-block, wagtail-command, wagtail-form, wagtail-hook, wagtail-snippet, wagtail-streamfield, wagtail-tag, wagtail-template)
  • File system utilities are used throughout for path resolution and app detection