Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
The core package of Optique which provides the shared types and parser combinators. It is designed to be used in universal JavaScript runtimes, including Node.js, Deno, Bun, edge functions, and web browsers—although you usually won't use it directly in browsers.
[!TIP] Building CLI apps? Consider @optique/run for automatic
process.argvhandling andprocess.exit()integration. This core package is perfect for libraries, web apps, or when you need full control over argument parsing.
Use @optique/core instead when:
process (browsers, web workers)Use @optique/run when:
process.argv parsing and process.exit() handlingimport { runParser } from "@optique/core/facade";
import { option, argument } from "@optique/core/primitives";
import { object } from "@optique/core/constructs";
import { string, integer } from "@optique/core/valueparser";
import process from "node:process";
const parser = object({
name: argument(string()),
age: option("-a", "--age", integer()),
verbose: option("-v", "--verbose"),
});
const config = runParser(parser, "myapp", process.argv.slice(2), {
help: { command: true, option: true },
onError: (exitCode) => process.exit(exitCode),
});
console.log(`Hello ${config.name}!`);
if (config.age) console.log(`You are ${config.age} years old.`);
if (config.verbose) console.log("Verbose mode enabled.");
For more resources, see the docs and the examples/ directory.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub dahlia/optique --plugin optiquePlugins from other owners that cover similar ground