lurqrun 0.0.2 → 0.0.3

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/README.md CHANGED
@@ -8,117 +8,33 @@ lurq is a **companion to your coding agent**: it recommends and explains package
8
8
 
9
9
  ---
10
10
 
11
- ## quick start (dev)
11
+ ## quick start: connect your agent
12
12
 
13
- ```bash
14
- npm install
15
- npx lurqrun install
16
- npx lurqrun --help
17
- ```
18
-
19
- ## development
20
-
21
- ```bash
22
- npm run dev -- <command>
23
- npm test
24
- npm run typecheck
25
- npm run lint
26
- ```
27
-
28
- ## configuration
29
-
30
- see [`.env.example`](./.env.example). only `DATABASE_URL` is required;
31
- gitHub/openAI keys allow full access to lurq commands but are not strictly necessary.
32
-
33
- | var | required | purpose |
34
- |---|---|---|
35
- | `DATABASE_URL` | yes | postgres connection (pgvector-enabled) |
36
- | `GITHUB_TOKEN` | recommended | github signals (stars, cadence, issues, archived) |
37
- | `EMBEDDING_PROVIDER` / `EMBEDDING_API_KEY` | no | openai embeddings; falls back to a local embedder |
38
- | `SUMMARY_PROVIDER` / `SUMMARY_API_KEY` | no | llm usage guides; falls back to the npm description |
39
-
40
- ## setup the index
41
-
42
- ```bash
43
- npx lurqrun db migrate # create schema (pgvector) + load the curated seed list
44
- npx lurqrun sync # scores from public APIs (~2 min)
45
- ```
46
-
47
- `sync` is idempotent and tolerant of single-source outages. run it on a schedule
48
- (default frequency: daily) to keep the index fresh.
49
-
50
- ## cli usage
51
-
52
- ```bash
53
- npx lurqrun recommend "a form library for react"
54
- npx lurqrun recommend "debounce a function"
55
- npx lurqrun evaluate zod
56
- npx lurqrun compare drizzle-orm prisma typeorm
57
- npx lurqrun verify lodahs
58
- ```
13
+ > **not public yet.** lurq unlocks at launch. [join the waitlist](https://lurq.run); the steps below are how it'll work once it's live.
59
14
 
60
- add `--json` to any command for machine output; `--category` and `--min-confidence`
61
- filter `recommend`.
62
-
63
- ## mcp tools
64
-
65
- `npx lurqrun serve` starts the MCP server (stdio). it exposes:
66
-
67
- - **`recommend`** — best current packages for a described need (≤5, scored, with confidence)
68
- - **`evaluate`** — full evidence read for one package (scores, advisories, usage guide)
69
- - **`compare`** — 2–5 packages ranked by health
70
- - **`verify`** — is a package real, healthy, and not risky? (anti-hallucination guard)
71
- - **`diagram`** — a reference-architecture mermaid diagram for a stack (optional)
72
-
73
- every response is compact and carries a `dataAsOf` timestamp.
74
-
75
- ## install into your agent
76
-
77
- lurq is a **hosted service** — you don't run a database. Get an API key, then:
15
+ lurq is a **hosted service**: you don't run a database or a sync. get an API key,
16
+ then run the guided installer:
78
17
 
79
18
  ```bash
80
- npx lurqrun install # guided: paste your key, pick your assistants
19
+ npx lurqrun install
81
20
  ```
82
21
 
83
- the wizard validates the key, detects your installed assistants (Claude Code,
84
- Cursor, Windsurf, VS Code/Copilot, Codex), and writes a keyed remote MCP entry —
22
+ it prompts for your key, validates it, detects your installed assistants
23
+ (Claude Code, Cursor, Windsurf, VS Code/Copilot, Codex), and writes a keyed
24
+ remote MCP entry:
85
25
  `{ "type": "http", "url": "https://api.lurq.run/mcp", "headers": { "Authorization": "Bearer …" } }`.
86
- **no database credentials ever touch your machine.** restart the agent afterward.
87
-
88
- non-interactive / scriptable:
26
+ **no database credentials ever touch your machine.** restart your agent afterward.
89
27
 
90
- ```bash
91
- npx lurqrun install-skill --agent claude-code --api-key <key> # or --agent all
92
- ```
28
+ ## what your agent gets (mcp tools)
93
29
 
94
- **self-hosting?** run your own stdio server against your own DB with
95
- `install-skill --local` (writes a local `npx lurqrun serve` entry using your
96
- `DATABASE_URL`).
97
-
98
- ### running the service (operator)
99
-
100
- ```bash
101
- lurq serve-http # HTTP MCP server with API-key auth (uses $PORT)
102
- lurq keys create --label "acme" # issue a key (shown once; stored hashed)
103
- lurq keys list # prefix, tier, last-used, status
104
- lurq keys revoke lurq_live_ab12cd # revoke by prefix or id
105
- ```
106
-
107
- `serve-http` fronts the central DB with helmet, per-key + per-IP rate limiting,
108
- and Bearer auth. `DATABASE_URL` lives only on the service host. Deployment:
109
- see [`docs/lurq-hosted-deployment.md`](./docs/lurq-hosted-deployment.md).
110
-
111
- ## how it works
112
-
113
- ```
114
- public APIs (npm, github, deps.dev, bundlephobia)
115
- → ingestion → scoring (+ confidence) → summaries/usage guides → embeddings
116
- → postgres + pgvector
117
- → { mcp server, cli }
118
- ```
30
+ once installed, the agent can call these tools over MCP. every response is
31
+ compact and carries a `dataAsOf` timestamp.
119
32
 
120
- scores are computed from public signals never hand-written. confidence
121
- labels (`proven` / `emerging` / `unproven`) reflect the strength of discovered evidence
33
+ - **`recommend`**: best current packages for a described need (≤5, scored, with confidence)
34
+ - **`evaluate`**: full evidence read for one package (scores, advisories, usage guide)
35
+ - **`compare`**: 2 to 5 packages ranked by health
36
+ - **`verify`**: is a package real, healthy, and not risky? (anti-hallucination guard)
37
+ - **`diagram`**: a reference-architecture mermaid diagram for a stack (optional)
122
38
 
123
39
  ## outreach
124
40