docsui-cli 0.0.59 → 0.0.60

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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 suryaravikumar-space
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -21,7 +21,7 @@ npx docsui-cli@latest
21
21
 
22
22
  ### `init`
23
23
 
24
- Sets up mdx-ui in your project:
24
+ Sets up DocsUI in your project:
25
25
 
26
26
  - Creates `docsui.json` config
27
27
  - Injects shadcn-compatible CSS variables into your `globals.css`
@@ -181,7 +181,7 @@ npx docsui-cli@latest list --installed
181
181
 
182
182
  ## Math Primitives
183
183
 
184
- `math-primitives` is the single math system in mdx-ui — 150+ JSX components with no LaTeX engine required:
184
+ `math-primitives` is the single math system in DocsUI — 150+ JSX components with no LaTeX engine required:
185
185
 
186
186
  ```bash
187
187
  npx docsui-cli@latest add math-primitives
@@ -270,8 +270,8 @@ The required CSS is automatically injected by `npx docsui-cli@latest init`.
270
270
 
271
271
  ## Links
272
272
 
273
- - **Documentation**: [GitHub](https://github.com/suryaravikumar-space/mdx-ui)
274
- - **Issues**: [GitHub Issues](https://github.com/suryaravikumar-space/mdx-ui/issues)
273
+ - **Documentation**: [GitHub](https://github.com/suryaravikumar-space/docsui)
274
+ - **Issues**: [GitHub Issues](https://github.com/suryaravikumar-space/docsui/issues)
275
275
  - **npm**: [docsui](https://www.npmjs.com/package/docsui-cli)
276
276
 
277
277
  ## License
@@ -166,7 +166,7 @@ const doctor = new Command().name("doctor").description(
166
166
  console.log(` ${chalk.green("\u2713")} mdx-components.tsx looks good`);
167
167
  }
168
168
  }
169
- const remarkPkg = "@docsui-io/remark-plugin";
169
+ const remarkPkg = "@docsui-cli/remark-plugin";
170
170
  if (!installedDeps.has(remarkPkg)) {
171
171
  issues.push({
172
172
  level: "warn",
@@ -213,7 +213,7 @@ async function checkRemarkPluginWired(pipeline, cwd) {
213
213
  if (!await fs.pathExists(p)) continue;
214
214
  const content = await fs.readFile(p, "utf-8");
215
215
  const uncommented = content.split("\n").filter((line) => !/^\s*(\/\/|\/\*|\*)/.test(line)).join("\n");
216
- return uncommented.includes("remarkMdxUi") || uncommented.includes("@docsui-io/remark-plugin");
216
+ return uncommented.includes("remarkMdxUi") || uncommented.includes("@docsui-cli/remark-plugin");
217
217
  }
218
218
  return false;
219
219
  }
@@ -441,7 +441,7 @@ async function setupMdxComponents(componentsDir, typescript, cwd, spinner) {
441
441
  const REMARK_PLUGIN_SNIPPETS = {
442
442
  contentlayer: `
443
443
  // contentlayer.config.ts
444
- import remarkMdxUi from "@docsui-io/remark-plugin"
444
+ import remarkMdxUi from "@docsui-cli/remark-plugin"
445
445
 
446
446
  export default makeSource({
447
447
  mdxOptions: {
@@ -452,7 +452,7 @@ const REMARK_PLUGIN_SNIPPETS = {
452
452
  })`,
453
453
  "next-mdx-remote": `
454
454
  // In your compileMdx / serialize call:
455
- import remarkMdxUi from "@docsui-io/remark-plugin"
455
+ import remarkMdxUi from "@docsui-cli/remark-plugin"
456
456
 
457
457
  const result = await serialize(source, {
458
458
  mdxOptions: {
@@ -463,7 +463,7 @@ const REMARK_PLUGIN_SNIPPETS = {
463
463
  })`,
464
464
  "next-mdx": `
465
465
  // next.config.ts
466
- import remarkMdxUi from "@docsui-io/remark-plugin"
466
+ import remarkMdxUi from "@docsui-cli/remark-plugin"
467
467
 
468
468
  const withMDX = createMDX({
469
469
  options: {
@@ -474,7 +474,7 @@ const REMARK_PLUGIN_SNIPPETS = {
474
474
  })`,
475
475
  "astro-mdx": `
476
476
  // astro.config.ts
477
- import remarkMdxUi from "@docsui-io/remark-plugin"
477
+ import remarkMdxUi from "@docsui-cli/remark-plugin"
478
478
 
479
479
  export default defineConfig({
480
480
  markdown: {
@@ -485,7 +485,7 @@ const REMARK_PLUGIN_SNIPPETS = {
485
485
  })`,
486
486
  "mdx-rollup": `
487
487
  // vite.config.ts
488
- import remarkMdxUi from "@docsui-io/remark-plugin"
488
+ import remarkMdxUi from "@docsui-cli/remark-plugin"
489
489
 
490
490
  export default defineConfig({
491
491
  plugins: [
@@ -510,9 +510,7 @@ function printNextSteps(framework, mdxPipeline) {
510
510
  "\n\u{1F4E6} Wire up the remark plugin so markdown auto-upgrades to components:"
511
511
  )
512
512
  );
513
- console.log(
514
- chalk.dim(" Install: npm install docsui-cli-remark-plugin")
515
- );
513
+ console.log(chalk.dim(" Install: npm install @docsui-cli/remark-plugin"));
516
514
  console.log(chalk.white(snippet));
517
515
  } else {
518
516
  console.log(
@@ -520,7 +518,7 @@ function printNextSteps(framework, mdxPipeline) {
520
518
  "\n\u{1F4E6} To enable auto-upgrade of markdown \u2192 components, add the remark plugin:"
521
519
  )
522
520
  );
523
- console.log(chalk.dim(" npm install docsui-cli-remark-plugin"));
521
+ console.log(chalk.dim(" npm install @docsui-cli/remark-plugin"));
524
522
  console.log(
525
523
  chalk.dim(
526
524
  " Then add remarkMdxUi to your MDX pipeline's remarkPlugins array."
@@ -34,7 +34,7 @@ function getCliVersion() {
34
34
  return "0.0.0";
35
35
  }
36
36
  }
37
- const REGISTRY_URL = "https://raw.githubusercontent.com/suryaravikumar-space/mdx-ui/main/registry/registry.json";
37
+ const REGISTRY_URL = "https://raw.githubusercontent.com/suryaravikumar-space/docsui/main/registry/registry.json";
38
38
  const CACHE_TTL_MS = 5 * 60 * 1e3;
39
39
  let cache = null;
40
40
  async function loadLocalRegistry() {
@@ -4,7 +4,7 @@ import path from "path";
4
4
  import { readFileSync } from "fs";
5
5
  import { createHash } from "crypto";
6
6
  import { fileURLToPath } from "url";
7
- const REGISTRY_BASE = "https://raw.githubusercontent.com/suryaravikumar-space/mdx-ui";
7
+ const REGISTRY_BASE = "https://raw.githubusercontent.com/suryaravikumar-space/docsui";
8
8
  const SEMVER_RE = /^\d+\.\d+\.\d+$/;
9
9
  function getCliVersion() {
10
10
  try {
@@ -93,9 +93,7 @@ function printScanWarnings(results, pm = "pnpm") {
93
93
  console.log(chalk.bold("Fix:"));
94
94
  const dlx = pm === "pnpm" ? "pnpm dlx" : pm === "yarn" ? "yarn dlx" : "npx";
95
95
  const installNames = [...allMissing.values()].join(" ");
96
- console.log(
97
- ` ${chalk.green(`${dlx} docsui add ${installNames}`)}`
98
- );
96
+ console.log(` ${chalk.green(`${dlx} docsui add ${installNames}`)}`);
99
97
  console.log("");
100
98
  }
101
99
  export {
@@ -4,7 +4,7 @@ import os from "os";
4
4
  import axios from "axios";
5
5
  const POSTHOG_API_KEY = "phc_zNLMNdcFKJwLJqD6NK8uQwqSwXYYQfm6oAnga7sLQt6b";
6
6
  const POSTHOG_ENDPOINT = "https://app.posthog.com/capture/";
7
- const OWN_REPO = "suryaravikumar-space/mdx-ui";
7
+ const OWN_REPO = "suryaravikumar-space/docsui";
8
8
  function getDistinctId() {
9
9
  const raw = `${os.hostname()}:${os.userInfo().username}`;
10
10
  return createHash("sha256").update(raw).digest("hex").slice(0, 16);