From a78c3043ab5dceebd2657fb5c8699ce4ecaf01a8 Mon Sep 17 00:00:00 2001 From: localhost41 Date: Sat, 18 Jul 2026 22:44:08 -0700 Subject: [PATCH 1/2] Improve package discovery and generated defaults --- CHANGELOG.md | 4 +++- README.md | 11 +++++++---- package.json | 11 ++++++++++- src/cli.ts | 4 ++-- test/index.test.ts | 2 +- 5 files changed, 23 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fe841c..122abd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,9 @@ ## Unreleased -- No unreleased changes. +- Use QVAC CLI's `127.0.0.1:11434` endpoint in generated apps and documentation. +- Add npm discovery keywords and a benefit-oriented package description. +- Clarify that this is an independent community project. ## v0.1.0-alpha.2 - 2026-07-10 diff --git a/README.md b/README.md index 8d9d9ac..ff78906 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # create-qvac-app -Public QVAC developer tooling from localhost41. +Scaffold a Node.js TypeScript app that talks to a local QVAC server. + +> Independent community project maintained by localhost41. Not affiliated with +> or endorsed by Tether or QVAC. > **Alpha Release:** This package is currently in **alpha** (v0.1.0-alpha.1). > Expect breaking changes. Feedback is welcome. @@ -14,7 +17,7 @@ Public QVAC developer tooling from localhost41. - A local QVAC HTTP server running before you run the generated app. The `node-chat` template sends chat requests to -`http://localhost:8000/v1/chat/completions` by default. If your QVAC server +`http://127.0.0.1:11434/v1/chat/completions` by default. If your QVAC server uses a different local URL, set `QVAC_BASE_URL` when running the app. ### Scaffold an app @@ -73,7 +76,7 @@ the app uses. For the default endpoint: ```bash -curl http://localhost:8000/v1/chat/completions +curl http://127.0.0.1:11434/v1/models ``` If the server is on another port or host, restart the app with `QVAC_BASE_URL`. @@ -118,7 +121,7 @@ Available templates: The generated app includes a README, `package.json`, TypeScript config, and a basic chat example that calls the QVAC local HTTP server at -`http://localhost:8000/v1/chat/completions`. +`http://127.0.0.1:11434/v1/chat/completions`. ### Testing packaging diff --git a/package.json b/package.json index cb0367d..b0e6331 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,16 @@ { "name": "@localhost41/create-qvac-app", "version": "0.1.0-alpha.2", - "description": "QVAC developer tooling package: create-qvac-app", + "description": "Scaffold a Node.js TypeScript app for local QVAC inference", + "keywords": [ + "qvac", + "create-app", + "project-template", + "scaffolding", + "local-ai", + "openai-compatible", + "typescript" + ], "license": "MIT", "repository": { "type": "git", diff --git a/src/cli.ts b/src/cli.ts index e862fa3..d2a59b1 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -100,7 +100,7 @@ pnpm install pnpm dev \`\`\` -The example sends a single chat request to \`http://localhost:8000/v1/chat/completions\`. +The example sends a single chat request to \`http://127.0.0.1:11434/v1/chat/completions\`. Set \`QVAC_BASE_URL\` to use a different local endpoint. `, ); @@ -129,7 +129,7 @@ Set \`QVAC_BASE_URL\` to use a different local endpoint. writeProjectFile( projectRoot, "src/index.ts", - `const baseUrl = process.env.QVAC_BASE_URL ?? "http://localhost:8000"; + `const baseUrl = process.env.QVAC_BASE_URL ?? "http://127.0.0.1:11434"; function chatCompletionsUrl(rawBaseUrl: string): string { const normalized = rawBaseUrl.replace(/\\/+$/, ""); diff --git a/test/index.test.ts b/test/index.test.ts index 1458d86..2b17044 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -94,7 +94,7 @@ describe("create-qvac-app", () => { expect(existsSync(join(appDirectory, "src/index.ts"))).toBe(true); expect(readFileSync(join(appDirectory, "README.md"), "utf8")).toContain( - "http://localhost:8000/v1/chat/completions", + "http://127.0.0.1:11434/v1/chat/completions", ); expect(readFileSync(join(appDirectory, "src/index.ts"), "utf8")).toContain( "QVAC_BASE_URL", From 1b5553d2a1a14533e2f211ccf4e238b577c805f0 Mon Sep 17 00:00:00 2001 From: localhost41 Date: Sat, 18 Jul 2026 22:45:31 -0700 Subject: [PATCH 2/2] Use npm trusted publishing support --- .github/workflows/publish-alpha.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish-alpha.yml b/.github/workflows/publish-alpha.yml index 92412a9..16f1622 100644 --- a/.github/workflows/publish-alpha.yml +++ b/.github/workflows/publish-alpha.yml @@ -28,6 +28,8 @@ jobs: node-version: 22 cache: pnpm registry-url: https://registry.npmjs.org + - name: Install npm with trusted publishing support + run: npm install --global npm@latest - name: Install dependencies run: pnpm install --frozen-lockfile - name: Verify alpha package