Skip to content
CAI
Software that uses CAICheck a score

ViniMTrevisan/Kybernus-CLI

39.2

Weak · 9 November 2026

17.5k

lines of production code

TypeScript

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Kybernus is an open-source CLI tool that scaffolds and manages full-stack application templates across multiple technology stacks, including Node.js, Java Spring, Python, and Next.js. It provides production-ready boilerplates with integrated features such as JWT authentication, Stripe payment processing, and standardized AWS infrastructure via Terraform. The system also supports standalone project enhancement, allowing users to inject capabilities like analytics, deployment configurations, and AI-generated documentation into existing codebases.

Features

AI-powered documentation generation and new core generation engine

The core generation engine has been refactored to support standalone project generation, custom template downloads, and a new modular architecture. A key new capability is AI-powered documentation: when a Gemini API key is provided, the system automatically generates a comprehensive README.md and API documentation (API.md) using Google's Gemini 2.0 Flash model, with retry logic and safety filter handling. The system now supports adding boilerplate features like Swagger, Redis, WebSockets, Husky, and Auth across multiple stacks (Node.js, NestJS, Python FastAPI, Next.js, Java Spring) with automatic dependency installation. Deployment configuration is now generated for Vercel, Railway, Fly, and Render providers. The template engine uses Handlebars with custom helpers for case conversion and conditional logic, and the CLI now includes a config manager for machine identification and analytics preferences.

src/core · high confidence

Added CLI analytics tracking via PostHog

The CLI now tracks usage events using PostHog, sending data such as the operating system and CLI version to a hardcoded production endpoint. This feature respects a configuration setting to enable or disable analytics and handles errors silently to avoid interrupting user workflows.

src/cli/services · high confidence

Added JWT authentication scaffolding for Java Spring, NestJS, Next.js, Node.js Express, and Python FastAPI

New authentication modules have been added for Java Spring Boot, NestJS, Next.js, Node.js Express, and Python FastAPI. Each module provides a complete JWT-based flow including registration, login, and profile retrieval endpoints, along with token generation, verification, and middleware/guards for protecting routes. All implementations currently use an in-memory mock database and require developers to replace the mock logic with their actual database integration (e.g., JPA, TypeORM, Prisma, SQLAlchemy) to function in production.

add-features, python, src/cli/utils · high confidence

Added preview generation script for project templates

A new script, generate-previews.ts, has been added to the scripts directory to automate the creation of sample project structures. This tool iterates through supported stacks (nextjs, nodejs-express, java-spring, python-fastapi, nestjs, n8n) and their respective architectures, using the ProjectGenerator to output clean preview folders. This allows users to quickly inspect the structure and content of generated projects for different technology stacks and architectural patterns without running a full interactive generation.

scripts · high confidence

Initial ecommerce API template scaffolding

The API application within the ecommerce template is now scaffolded with a complete foundational structure. This includes a Prisma schema and initial migration for a PostgreSQL database (defining users, products, orders, and related entities), a Jest configuration for unit and integration testing, and a seed script to populate the database with demo data. The application entry point wires up core Express middlewares (helmet, rate limiting, CORS) and registers route modules for authentication, catalog, cart, checkout, orders, and admin functions.

(repo-wide) · high confidence

Initial release of the Kybernus License API

This change introduces the Kybernus License API, a new Node.js/Express service for managing user licenses, trials, and analytics. The API provides endpoints for user registration (15-day trials), license key validation, and project usage tracking (metered by project count). It integrates with Stripe for handling checkout sessions and processing webhooks to manage subscription lifecycles (upgrades, cancellations, payment failures). The service includes an admin dashboard for viewing analytics metrics and recent activity, secured by a simple admin guard middleware. The backend uses Prisma with PostgreSQL for data persistence, defining models for Users, Subscriptions, AnalyticsEvents, and AdminUsers.

old, old/license-api · high confidence

Java Spring MVC template upgraded to production-ready architecture with Stripe integration

The Java Spring MVC template has been completely rewritten to include a production-ready backend architecture. This update introduces a robust security layer using Spring Security with JWT authentication, a global exception handler for consistent error responses, and CORS configuration. It adds a full user management system with registration and login capabilities, alongside a health check endpoint. Furthermore, the template now includes a complete Stripe integration for handling subscription payments, featuring checkout sessions, a billing portal, and webhook handling for payment events.

templates/java-spring/mvc, templates/nestjs/mvc, templates/python-fastapi/mvc · high confidence

Kybernus CLI v3.0.0: Standalone support, new commands, and open-source release

The CLI is now open-source (v3.0.0) and supports standalone projects that were not generated by Kybernus, prompting users for their stack and architecture when no config is found. New commands include \add\ to inject features like Swagger, Redis, WebSockets, Husky, and Auth into existing projects; \auth\ to generate JWT authentication boilerplate; \deploy\ to create configuration files for Vercel, Railway, Fly.io, and Render; \ecommerce\ to scaffold a white-label e-commerce template; and \doctor\ to diagnose environment health. The \init\ command now generates projects immediately and includes anonymous usage tracking, while the previous license tier (Free/Pro) gating has been removed.

src/cli/commands · high confidence

New E-commerce and Java Spring template scaffolds with production-ready infrastructure

The templates directory now includes a new E-commerce template and updated Java Spring templates (Clean, Hexagonal, and MVC architectures). The E-commerce template provides a full-stack Node.js/TypeScript solution with a white-label customization script, multi-stage Docker builds, and GitHub Actions CI/CD workflows for API and Web testing. The Java Spring templates have been modernized to use Spring Boot 3.4.1, Java 21, and include production-grade Dockerfiles, GitHub Actions CI/CD pipelines targeting AWS ECS/ECR, and Terraform infrastructure modules for AWS deployment (VPC, ECS, RDS). All templates now feature standardized .gitignore files, Docker Compose configurations for local development (Postgres, Redis, MinIO), and updated README documentation.

templates · high confidence

New web application with admin portal, analytics, and security hardening

The web application has been introduced as a Next.js frontend, featuring a dedicated admin portal (with login, layout protection, and dashboard) for monitoring user metrics and revenue. It includes a new analytics tracking system with rate limiting and a Prisma data model for users, subscriptions, and events. Security is enhanced via strict HTTP headers (HSTS, X-Frame-Options, etc.) and admin login rate limiting. The homepage is optimized for static generation to reduce edge requests, and the project is configured for Vercel deployment with Tailwind CSS and PostHog integration.

apps/web · high confidence

Next.js MVC template now includes NextAuth authentication and Stripe billing integration

The Next.js MVC template has been upgraded to include a complete authentication and billing stack. It now uses NextAuth for user sign-in (supporting Google and credentials providers) and integrates Stripe for subscription management, including checkout sessions, customer portals, and webhook handling for payment events. The template also provides a protected dashboard page, a health check endpoint, and the necessary layout and provider components to support these features.

templates/nextjs/mvc · high confidence

Node.js Express MVC template now includes production-ready authentication and Stripe payments

The Node.js Express MVC template has been upgraded to include a complete, production-ready backend architecture. It now features a robust authentication system using JWT and bcrypt for user registration, login, and protected routes, backed by a Prisma database client. Additionally, full Stripe integration has been added, providing controllers and services for creating checkout sessions, managing customer portals, and handling webhooks to process subscription events. The application structure also includes standardized middleware for security (helmet, CORS), logging (morgan), and error handling, along with a health check endpoint.

templates/nodejs-express/mvc · high confidence

Standardized AWS infrastructure modules for Java Spring and NestJS templates

New, unified Terraform modules for VPC, ECS, and RDS have been added to the Java Spring (clean, hexagonal, mvc) and NestJS (clean, hexagonal, mvc) template directories. These modules provision a standardized AWS environment including a VPC with public/private subnets, an Application Load Balancer, ECS Fargate tasks with CloudWatch logging, and an encrypted PostgreSQL 16 database with passwords stored in SSM. This change ensures consistent infrastructure-as-code across all supported application architectures.

(repo-wide) · high confidence

Stripe payment integration added to Java and NestJS templates

The Java Spring (clean and hexagonal) and NestJS templates now include full Stripe integration, enabling users to generate checkout and billing portal sessions and handle Stripe webhooks. This adds new domain entities and use cases for payments, infrastructure adapters for the Stripe SDK, and REST controllers for payment endpoints, alongside updated user entities to store Stripe customer IDs.

(repo-wide) · high confidence

Behavioural changes

CLI renamed to Kybernus with expanded commands and template options

The CLI tool has been renamed from 'kibernus' to 'kybernus' and now dynamically reads its version from package.json instead of using a hardcoded value. The 'init' command has been expanded to support 'n8n' as a technology stack and introduces new architecture/template options including 'default', 'ai-assistant', 'crm-tracker', and 'system-monitor', along with a new '--template' option to use custom Git repositories. Additionally, six new subcommands have been added: 'analytics', 'doctor', 'add', 'auth', 'deploy', and 'ecommerce'.

src · high confidence

CLI wizard overhaul: non-interactive mode, English UI, and expanded template options

The project generation wizard now supports a non-interactive mode via a new ConfigOptions interface, allowing automation tools to pass parameters like name, stack, and architecture directly without user input. The interface language has been translated from Portuguese to English, and the wizard now includes new stack options such as n8n (Automation Engine) and Next.js with specific architecture choices (Default, MVC, Clean, Hexagonal). Additionally, AI documentation generation is automatically disabled for n8n stacks, and Pro-only restrictions on certain stacks and architectures have been removed, making them available to all users.

src/cli/prompts · high confidence

Support for n8n stacks, default architecture, and custom templates

The configuration model now supports the 'n8n' stack alongside existing options like Next.js and NestJS, and the 'default' architecture type is included in the allowed values. Users can now specify a custom template via the new 'customTemplate' field in ProjectConfig. Additionally, the TemplateContext interface has been updated to include 'projectNameCamelCase' and 'projectNameSnakeCase' helpers, while the previous 'LicenseTier' and 'LicenseInfo' interfaces have been removed, simplifying the configuration schema.

src/models · high confidence

Test coverage

Added test coverage for CLI commands, core generators, and license enforcement

Added unit and integration tests for the CLI command handlers (add, auth, deploy, init) and their underlying helpers, covering both standalone and configured project workflows. Added tests for the core feature and deploy generators to verify correct file copying, dependency installation, and architecture-specific path/content transformations (MVC vs. Clean Architecture). Added tests for the configuration manager and project generator. Added E2E tests for the API license validation and trial limit enforcement, verifying that usage is correctly tracked and blocked after the limit is reached.

tests · high confidence

Dependencies

Kybernus CLI v3.2.0: New dependencies and template scaffolding

The Kybernus CLI has been updated to version 3.2.0, introducing several new dependencies including \@google/genai\ (replacing \@google/generative-ai\), \conf\, \degit\, and \posthog-node\. The package now bundles these dependencies for standalone distribution. Additionally, this change introduces a new Ecommerce template (located in \templates/ecommerce\) featuring a monorepo structure with separate API and Web applications, utilizing technologies such as Express, Prisma, Stripe, and React with Vite.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 37 → 39 (+2.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 69 → 70 (+1.1)
  • Architecture 79 → 79 (+0.0)
  • Maturity 35 → 57 (+22.1)
  • Readiness 28 → 24 (-4.0)
  • Security 46 → 50 (+3.8)
  • Domain Modelling 100 → 100 (+0.0)
  • Accessibility 46 → 46 (-0.3)
  • Performance 60 → 60 (+0.0)

Resolved (148)

  • CartPage.CartPage (cognitive 21) (templates/ecommerce/apps/web/src/modules/cart/pages/CartPage.tsx)
  • CartPage.CartPage (cyclomatic 21) (templates/ecommerce/apps/web/src/modules/cart/pages/CartPage.tsx)
  • CheckoutPage.PaymentStep (cognitive 19) (templates/ecommerce/apps/web/src/modules/checkout/pages/CheckoutPage.tsx)
  • CheckoutPage.PaymentStep (cyclomatic 16) (templates/ecommerce/apps/web/src/modules/checkout/pages/CheckoutPage.tsx)
  • Critical vulnerability: [GHSA redacted] (apps/web/package.json)
  • FunctionTooLong: CartPage.CartPage (templates/ecommerce/apps/web/src/modules/cart/pages/CartPage.tsx)
  • FunctionTooLong: CouponsAdminPage.CouponsAdminPage (templates/ecommerce/apps/web/src/modules/admin/pages/CouponsAdminPage.tsx)
  • FunctionTooLong: Layout.Layout (templates/ecommerce/apps/web/src/shared/components/Layout.tsx)
  • FunctionTooLong: OrdersAdminPage.OrdersAdminPage (templates/ecommerce/apps/web/src/modules/admin/pages/OrdersAdminPage.tsx)
  • FunctionTooLong: PrivacyPolicyPage.PrivacyPolicyPage (templates/ecommerce/apps/web/src/modules/legal/pages/PrivacyPolicyPage.tsx)
  • FunctionTooLong: ProductDetailPage.ProductDetailPage (templates/ecommerce/apps/web/src/modules/catalog/pages/ProductDetailPage.tsx)
  • FunctionTooLong: ProductsAdminPage.ProductsAdminPage (templates/ecommerce/apps/web/src/modules/admin/pages/ProductsAdminPage.tsx)
  • FunctionTooLong: ProfilePage.ProfilePage (templates/ecommerce/apps/web/src/modules/profile/pages/ProfilePage.tsx)
  • FunctionTooLong: TermsOfServicePage.TermsOfServicePage (templates/ecommerce/apps/web/src/modules/legal/pages/TermsOfServicePage.tsx)
  • FunctionTooLong: seed.main (templates/ecommerce/apps/api/prisma/seed.ts)
  • High CVE: [GHSA redacted] (apps/web/package-lock.json)
  • High CVE: [GHSA redacted] (apps/web/package-lock.json)
  • Low CVE: [GHSA redacted] (templates/ecommerce/package-lock.json)
  • Low coverage: templates/ecommerce/apps/api/src/app.ts (templates/ecommerce/apps/api/src/app.ts)
  • Low coverage: templates/ecommerce/apps/api/src/application/admin/admin-user.service.ts (templates/ecommerce/apps/api/src/application/admin/admin-user.service.ts)
  • …and 128 more

New (71)

  • Banned license: @img/sharp-libvips-darwin-arm64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-darwin-x64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-arm (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-arm64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-ppc64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-riscv64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-s390x (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linux-x64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linuxmusl-arm64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-libvips-linuxmusl-x64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-wasm32 (apps/web/package-lock.json)
  • Banned license: @img/sharp-win32-arm64 (apps/web/package-lock.json)
  • Banned license: @img/sharp-win32-ia32 (apps/web/package-lock.json)
  • Banned license: @img/sharp-win32-x64 (apps/web/package-lock.json)
  • Critical CVE: [CVE redacted] (package-lock.json)
  • Critical CVE: [CVE redacted] (package-lock.json)
  • Critical CVE: [GHSA redacted] (templates/ecommerce/package-lock.json)
  • Critical CVE: [GHSA redacted] (old/license-api/package-lock.json)
  • Critical CVE: [GHSA redacted] (npm-shrinkwrap.json)
  • Critical vulnerability: [GHSA redacted] (apps/web/package.json)
  • …and 51 more

Architecture

  • Unchanged — 0 containers · 1 contexts · 0 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

ViniMTrevisan/Kybernus-CLI was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 9 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit d7a9ba7ee21d58b1515911217540054482ec720f — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-bb0cb800cd0f.