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

kedy

v1.0.2

Published

React Native project automation CLI - Create screens, components, analyze projects, fix imports, find unused files and more!

Readme

Kedy CLI 🚀

React Native project automation CLI - Create screens, components, analyze projects, fix imports, find unused files and more!

📦 Installation

npm install -g kedy

Or use with npx:

npx kedy <command>

🎯 Features

🏗️ Project Setup

  • kedy init:config - Initialize project configuration and templates

📱 Screen & Component Management

  • kedy make:screen <name> - Create a new screen with proper folder structure
  • kedy make:component <name> - Create a new component with proper folder structure
  • kedy delete:screen <name> - Delete a screen and its files
  • kedy delete:component <name> - Delete a component and its files

🔍 Code Analysis

  • kedy analyze:project - Comprehensive project analysis
  • kedy find:unused - Find unused files in your project
  • kedy fix:imports - Find and fix unused imports

🚀 Quick Start

1. Initialize Configuration

kedy init:config

This creates kedy.config.js and template files in your project root.

2. Create Screens

# Simple screen
kedy make:screen Home

# Nested screen (both syntaxes work)
kedy make:screen main:dashboard
kedy make:screen "main:dashboard"

3. Create Components

# Simple component
kedy make:component Button

# Nested component (both syntaxes work)
kedy make:component ui/Modal
kedy make:component "ui:Modal"

4. Analyze Your Project

# Full analysis
kedy analyze:project --all

# Generate HTML report
kedy analyze:project --all --html

# Generate JSON report
kedy analyze:project --all --json

📋 Commands

kedy init:config

Initialize project configuration and create template files.

kedy make:screen <name>

Create a new screen with the following structure:

src/screens/
├── Home/
│   ├── HomeScreen.jsx
│   ├── Home.Styles.js
│   └── index.js

Options:

  • Use folder:name or folder/name syntax for nested folders (e.g., main:dashboard or main/dashboard)

kedy make:component <name>

Create a new component with the following structure:

src/components/
├── Button/
│   ├── Button.jsx
│   ├── Button.Styles.js
│   └── index.js

Options:

  • Use folder:name or folder/name syntax for nested folders (e.g., ui:Modal or ui/Modal)

kedy delete:screen <name>

Delete a screen and all its associated files.

Options:

  • --backup - Create backup before deletion
  • --pattern - Use pattern matching (e.g., "Test*")

kedy delete:component <name>

Delete a component and all its associated files.

Options:

  • --backup - Create backup before deletion
  • --pattern - Use pattern matching (e.g., "Test*")

kedy find:unused

Find unused files in your project.

Options:

  • --delete - Delete unused files automatically

kedy fix:imports

Find and fix unused imports in your project.

Options:

  • --auto-fix - Automatically remove unused imports

kedy analyze:project

Comprehensive project analysis including:

  • Project overview and file distribution
  • Code quality metrics
  • Architecture analysis
  • Testing analysis
  • Security analysis

Options:

  • --all - Run all analysis types
  • --detailed - Show detailed information
  • --html - Generate HTML report
  • --json - Generate JSON report
  • --architecture - Architecture analysis only
  • --testing - Testing analysis only
  • --security - Security analysis only

⚙️ Configuration

The kedy.config.js file allows you to customize:

module.exports = {
  paths: {
    screens: "src/screens",
    components: "src/components",
  },
  defaults: {
    withStyle: true,
    withIndex: true,
    withTest: false,
    withStory: false,
  },
  namingConvention: {
    component: (name) => `${name}`,
    screen: (name) => `${name}Screen`,
    style: (name) => `${name}.Styles`,
    test: (name) => `${name}.test`,
    story: (name) => `${name}.stories`,
  },
  templates: {
    component: "kedy-templates/component.template",
    screen: "kedy-templates/screen.template",
    style: "kedy-templates/style.template",
    test: "kedy-templates/test.template",
    story: "kedy-templates/story.template",
  },
  importAnalysis: {
    fileExtensions: [".tsx", ".ts", ".jsx", ".js"],
    scanFolders: ["src"],
    autoFix: false,
    detailedReport: true,
    excludeFiles: ["node_modules", "dist", "build"],
  },
};

📁 Project Structure

Kedy CLI creates and maintains the following structure:

src/
├── screens/
│   ├── Home/
│   │   ├── HomeScreen.jsx
│   │   ├── Home.Styles.js
│   │   └── index.js
│   └── Main/
│       └── Dashboard/
│           ├── DashboardScreen.jsx
│           ├── Dashboard.Styles.js
│           └── index.js
├── components/
│   ├── Button/
│   │   ├── Button.jsx
│   │   ├── Button.Styles.js
│   │   └── index.js
│   └── Ui/
│       └── Modal/
│           ├── Modal.jsx
│           ├── Modal.Styles.js
│           └── index.js
├── hooks/
└── utils/

🎨 Templates

Kedy CLI uses customizable templates. You can modify the template files in the kedy-templates/ folder:

  • component.template - Component template
  • screen.template - Screen template
  • style.template - Style file template
  • test.template - Test file template
  • story.template - Storybook template

🔧 Requirements

  • Node.js >= 14.0.0
  • React Native project

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📞 Support

🚀 Roadmap

  • [ ] Move/Rename commands
  • [ ] Batch operations
  • [ ] Test generation
  • [ ] Storybook integration
  • [ ] Performance analysis (v2.0)
  • [ ] React Native specific analysis (v2.0)

Made with ❤️ by Can Gürel