{"id":29395259,"url":"https://github.com/lmlk-seal/nodeopti","last_synced_at":"2026-01-20T17:03:30.947Z","repository":{"id":303468794,"uuid":"1015464037","full_name":"LMLK-seal/NodeOpti","owner":"LMLK-seal","description":"Intelligent dependency optimization and code refactoring for Node.js applications.","archived":false,"fork":false,"pushed_at":"2025-07-07T19:40:07.000Z","size":8687,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-07T21:09:28.990Z","etag":null,"topics":["code-refactoring","command-line","intelligent","javascript","nodejs","npm","npm-package"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LMLK-seal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-07T14:38:49.000Z","updated_at":"2025-07-07T19:40:11.000Z","dependencies_parsed_at":"2025-07-07T21:09:32.321Z","dependency_job_id":"d683b2c4-8bc7-4973-b962-97d0a310295b","html_url":"https://github.com/LMLK-seal/NodeOpti","commit_stats":null,"previous_names":["lmlk-seal/nodeopti"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/LMLK-seal/NodeOpti","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FNodeOpti","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FNodeOpti/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FNodeOpti/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FNodeOpti/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LMLK-seal","download_url":"https://codeload.github.com/LMLK-seal/NodeOpti/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LMLK-seal%2FNodeOpti/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264572307,"owners_count":23630226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-refactoring","command-line","intelligent","javascript","nodejs","npm","npm-package"],"created_at":"2025-07-10T11:27:28.021Z","updated_at":"2026-01-20T17:03:30.940Z","avatar_url":"https://github.com/LMLK-seal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NodeOpti\n\n[![NPM Version](https://img.shields.io/npm/v/nodeopti.svg)](https://www.npmjs.com/package/nodeopti)\n[![License](https://img.shields.io/npm/l/nodeopti.svg)](https://github.com/your-username/nodeopti/blob/main/LICENSE)\n[![Downloads](https://img.shields.io/npm/dt/nodeopti.svg)](https://www.npmjs.com/package/nodeopti)\n\n![NodeOpti](https://raw.githubusercontent.com/LMLK-seal/NodeOpti/refs/heads/main/NodeOpti_logo.jpg)\n\n**Intelligent dependency optimization and code refactoring for Node.js applications**\n\nNodeOpti is a comprehensive command-line tool that analyzes, optimizes, and refactors your Node.js projects. It automatically identifies unused dependencies, applies performance-focused code transformations, and provides detailed insights into your project's dependency graph.\n\n## Key Features\n\n- **Automated dependency cleanup** - Remove unused packages and optimize bundle size\n- **Intelligent code refactoring** - Apply performance-focused codemods to your source code\n- **Dependency visualization** - Interactive tree view with size and security annotations\n- **Development acceleration** - Mock heavy dependencies for faster local development\n- **Security analysis** - Identify and address known vulnerabilities\n\n## Installation\n\n```bash\nnpm install -g nodeopti\n```\n\n## Quick Start\n\n```bash\n# Analyze your project\nnodeopti analyze\n\n# Visualize dependencies\nnodeopti tree\n\n# Preview optimizations\nnodeopti optimize\n\n# Apply all optimizations\nnodeopti optimize --apply\n```\n\n## Commands\n\n### `nodeopti analyze`\nProvides a comprehensive project health summary including unused dependencies, security vulnerabilities, and optimization opportunities.\n\n### `nodeopti tree`\nRenders an interactive dependency tree with package sizes and security risk indicators.\n\n### `nodeopti optimize`\nIdentifies and applies code optimizations:\n- **Dry run** (default): Preview changes without modifying files\n- **Apply mode** (`--apply`): Automatically implement all optimizations\n\n### `nodeopti install`\nHigh-performance package installer built on the pnpm engine.\n\n```bash\n# Install all dependencies\nnodeopti install\n\n# Add new packages\nnodeopti install lodash express\n```\n\n## Code Transformations\n\nNodeOpti applies intelligent codemods to improve performance and reduce bundle size:\n\n### Lodash Optimizations\n```javascript\n// Before\nconst _ = require('lodash');\nif (_.isNil(value)) { ... }\n\n// After\nconst isNil = require('lodash/isNil');\nif (value == null) { ... }\n```\n\n### Date Handling\n```javascript\n// Before\nmoment().format('YYYY-MM-DD')\n\n// After\nnew Date().toISOString().split('T')[0]\n```\n\n## Development Features\n\n### Dependency Virtualization\nSpeed up local development by mocking heavy dependencies:\n\n**Configuration** (`package.json`):\n```json\n{\n  \"nodeOpti\": {\n    \"virtualize\": {\n      \"aws-sdk\": { \"mock\": \"./mocks/aws.mock.js\" }\n    }\n  }\n}\n```\n\nWhen you run `nodeopti install`, heavy packages are replaced with lightweight mocks, dramatically improving startup times.\n\n### Security \u0026 Performance\n- Built on the battle-tested pnpm engine\n- Disk-space efficient installations\n- Vulnerability scanning and reporting\n- Bundle size optimization\n\n## Requirements\n\n- Node.js 14.0.0 or higher\n- npm 6.0.0 or higher\n\n## Contributing\n\nWe welcome contributions! Please see our [Contributing Guide](CONTRIBUTING.md) for details.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/amazing-feature`)\n3. Commit your changes (`git commit -m 'Add amazing feature'`)\n4. Push to the branch (`git push origin feature/amazing-feature`)\n5. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Support\n\n- 📖 [Documentation](https://github.com/LMLK-Seal/nodeopti/wiki)\n- 🐛 [Issue Tracker](https://github.com/LMLK-Seal/nodeopti/issues)\n- 💬 [Discussions](https://github.com/LMLK-Seal/nodeopti/discussions)\n\n---\n\n**Made with ❤️ by the NodeOpti team**","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmlk-seal%2Fnodeopti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmlk-seal%2Fnodeopti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmlk-seal%2Fnodeopti/lists"}