popcons 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +52 -50
  2. package/dist/index.js +2 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,50 +1,52 @@
1
- # popcons
2
-
3
- CLI for [Popcons](https://popcons.dev): 800+ animated icons and 29 style packs of animated React + Tailwind components. Popcons is license-only. Files are copied into your project as source; nothing paid is published to npm.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npx popcons login # paste your license key (hidden input)
9
- npx popcons add bell heart # writes components/popcons/Bell.tsx, Heart.tsx
10
- ```
11
-
12
- Get a license at https://popcons.dev/pricing.
13
-
14
- ## Commands
15
-
16
- | Command | What it does |
17
- | --- | --- |
18
- | `login [key]`, `logout`, `whoami` | Manage the saved key (`~/.config/popcons/config.json`, mode 0600) |
19
- | `init` | Write `popcons.json`, detecting framework, TypeScript and Tailwind |
20
- | `search <words> [--category c] [--json]`, `categories`, `list` | Browse the catalog |
21
- | `add <icon...> [--format react\|vue\|svelte\|svg\|css\|html] [--dir] [--variant outline\|duotone] [--sound] [--overwrite]` | Add icons as source files |
22
- | `ui add <component...>` | Add UI components (prints npm deps to install) |
23
- | `pack add <pack-id>` | Add a whole style pack |
24
- | `skill install` | Install the icon designer agent skill |
25
- | `mcp` | Run the stdio MCP bridge |
26
- | `validate <file.json>` | Validate an icon definition offline |
27
-
28
- Add `--json` to list-like commands for agents. Colors appear only on a TTY and respect `NO_COLOR`.
29
-
30
- ## CI
31
-
32
- Set `POPCONS_LICENSE_KEY` (takes priority over the saved key). Override the server with `POPCONS_SITE` or `--site`.
33
-
34
- ## MCP
35
-
36
- Claude Code:
37
-
38
- ```bash
39
- claude mcp add popcons -- npx -y popcons mcp
40
- ```
41
-
42
- Cursor (`.cursor/mcp.json`) and VS Code (`.vscode/mcp.json`, use `"servers"` and `"type": "stdio"`):
43
-
44
- ```json
45
- { "mcpServers": { "popcons": { "command": "npx", "args": ["-y", "popcons", "mcp"] } } }
46
- ```
47
-
48
- The bridge uses your saved key, or `POPCONS_LICENSE_KEY` / `POPCONS_API_KEY`.
49
-
50
- License: see LICENSE and https://popcons.dev/license.
1
+ # popcons
2
+
3
+ CLI for [Popcons](https://popcons.dev): 800+ animated icons and 29 style packs of animated React + Tailwind components. Popcons is license-only. Files are copied into your project as source; nothing paid is published to npm.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npx popcons login # opens popcons.dev in your browser; click Allow
9
+ npx popcons add bell heart # writes components/popcons/Bell.tsx, Heart.tsx
10
+ ```
11
+
12
+ Get a license at https://popcons.dev/pricing.
13
+
14
+ ## Commands
15
+
16
+ | Command | What it does |
17
+ | --- | --- |
18
+ | `login [key]`, `logout`, `whoami` | Sign in through the browser (or save a key for CI), stored in `~/.config/popcons/config.json`, mode 0600 |
19
+ | `init` | Write `popcons.json`, detecting framework, TypeScript and Tailwind |
20
+ | `search <words> [--category c] [--json]`, `categories`, `list` | Browse the catalog |
21
+ | `add <icon...> [--format react\|vue\|svelte\|svg\|css\|html] [--dir] [--variant outline\|duotone] [--sound] [--overwrite]` | Add icons as source files |
22
+ | `ui add <component...>` | Add UI components (prints npm deps to install) |
23
+ | `pack add <pack-id>` | Add a whole style pack |
24
+ | `skill install` | Install the icon designer agent skill |
25
+ | `mcp` | Run the stdio MCP bridge |
26
+ | `validate <file.json>` | Validate an icon definition offline |
27
+
28
+ Add `--json` to list-like commands for agents. Colors appear only on a TTY and respect `NO_COLOR`.
29
+
30
+ ## CI
31
+
32
+ Set `POPCONS_LICENSE_KEY` (takes priority over the saved key). Override the server with `POPCONS_SITE` or `--site`.
33
+
34
+ ## MCP
35
+
36
+ Claude Code (signs in through the browser the first time it is used):
37
+
38
+ ```bash
39
+ claude mcp add --transport http popcons https://popcons.dev/api/mcp
40
+ ```
41
+
42
+ Editors that only run local (stdio) servers can use the bridge instead: `npx -y popcons mcp`.
43
+
44
+ Cursor (`.cursor/mcp.json`) and VS Code (`.vscode/mcp.json`, use `"servers"` and `"type": "stdio"`):
45
+
46
+ ```json
47
+ { "mcpServers": { "popcons": { "command": "npx", "args": ["-y", "popcons", "mcp"] } } }
48
+ ```
49
+
50
+ The bridge uses your saved key, or `POPCONS_LICENSE_KEY` / `POPCONS_API_KEY`.
51
+
52
+ License: see LICENSE and https://popcons.dev/license.
package/dist/index.js CHANGED
@@ -881,7 +881,7 @@ function openBrowser(url) {
881
881
  }
882
882
 
883
883
  // src/cli.ts
884
- var VERSION = "1.0.0";
884
+ var VERSION = "1.0.1";
885
885
  var NAME_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/;
886
886
  var checkName = (n2) => {
887
887
  if (!NAME_RE.test(n2)) throw new CliError(`"${n2}" is not a valid name. Use kebab-case, for example "arrow-right". Run "popcons search <word>" to find icons.`);
@@ -1207,7 +1207,7 @@ async function run(argv, io = defaultIO()) {
1207
1207
  for (const w of written) io.out(` wrote ${path3.relative(io.cwd, w) || w}`);
1208
1208
  io.out(`Installed ${files.length} files to ${dest}`);
1209
1209
  }
1210
- io.out("Next: connect the Popcons MCP server (npx popcons mcp) so your assistant can call validate_icon and export_icon, then ask it to design an icon.");
1210
+ io.out(`Next: connect your editor to the Popcons MCP server (${site}/mcp) so your assistant can call validate_icon and export_icon, then ask it to design an icon.`);
1211
1211
  return 0;
1212
1212
  }
1213
1213
  if (cmd === "validate") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "popcons",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "description": "Popcons CLI: license-gated install of 800+ animated icons and 29 animated React + Tailwind component packs, copied into your project as source.",