
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
A lightweight and extensible TypeScript CLI framework with autocomplete, history, pagination, and i18n.
Superclix is a lightweight and modern framework for building interactive CLI interfaces in TypeScript. It combines dynamic autocomplete, command history, pagination, interactive selectors, and i18n — all without relying on heavy external dependencies.
ghost text or via Tab)ctx.paginate)ctx.select)Command, Feature, CLI, Adapterhelp, exitnpm install superclix
# or
yarn add superclix
Here’s a simple CLI example using autocomplete and pagination:
import { Command, createCLI } from "superclix";
import { AutocompleteFeature } from "superclix/dist/features/autocomplete";
import { PaginationFeature } from "superclix/dist/features/pagination";
import { createLogger } from "superloggix/dist/logger";
// Create a compatible logger
const logger = createLogger({ level: "info", prefix: "⚡" });
// Initialize CLI
const cli = createCLI({
logger,
prompt: "superclix> ",
enableGhost: true,
});
// Enable features
cli.use(new AutocompleteFeature());
cli.use(new PaginationFeature());
// Example command
class EchoCommand extends Command {
public readonly signature = "echo <text>";
public readonly description = "Displays the provided text back to the user.";
constructor() {
super("echo");
}
public async execute(ctx) {
ctx.logger.info(ctx.args.text || "(no text provided)");
}
public async getCompletions() {
return { args: ["Hello", "World", "Superclix", "TypeScript"] };
}
}
// Register and run
cli.register(new EchoCommand());
cli.run();
| Command | Description |
|---|---|
help | Lists all available commands with pagination |
exit | Gracefully exits the CLI session |
createCLI(options)Creates a new CLI instance.
const cli = createCLI({
logger, // Required logger
prompt: "mycli> ", // Displayed prompt
enableGhost: true, // Enables inline ghost suggestions
});
class CommandBase class to extend when creating a custom command.
Key methods:
execute(ctx) — main command logicgetCompletions(ctx) — static autocompletiononAutocomplete(ctx, argIndex, currentValue) — dynamic autocompletionCLIContextObject provided to every command:
| Property | Type | Description |
|---|---|---|
args | Record<string, any> | Positional arguments |
options | Record<string, any> | Options --key=value |
logger | Logger | Injected logger |
paginate(lines) | Function | Displays paginated output |
select(options) | Function | Provides an interactive selector |
exit() | Function | Gracefully exits the CLI |
Package organization is private, sorry.
src/
├── core/
│ ├── CLI.ts # Main class
│ ├── Command.ts # Base class for commands
│ ├── Feature.ts # Base for features
│ ├── adapters/
│ │ ├── TTYAdapter.ts # Interactive mode
│ │ └── NonTTYAdapter.ts # Non-interactive mode
│ └── Parser.ts # Argument parser
├── features/
│ ├── autocomplete.ts
│ ├── pagination.ts
│ └── selector.ts
├── utils/
│ ├── i18n.ts
│ ├── colors.ts
│ └── types.ts
└── dev/
└── index.ts # Example playground
echo <text> → repeats the given textlogs [--level=info|debug|warn|error] → paginated logsselect → interactive selectorfruit <name> [--color|--origin] → dynamic autocompletionconfig <section> [--set|--get] → contextual sub-argumentsAvailable languages:
Change the default locale:
import { setDefaultLocale } from "superclix/dist/utils/i18n";
setDefaultLocale("fr");
MIT © 2025 — Built with ⚡ by Matt'
FAQs
A lightweight and extensible TypeScript CLI framework with autocomplete, history, pagination, and i18n.
The npm package superclix receives a total of 0 weekly downloads. As such, superclix popularity was classified as not popular.
We found that superclix demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.