lurqrun 0.0.2 → 0.0.4
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 +17 -101
- package/dist/bin/lurq.js +2844 -235
- package/dist/bin/lurq.js.map +1 -1
- package/dist/index.d.ts +83 -3
- package/dist/index.js +2761 -228
- package/dist/index.js.map +1 -1
- package/drizzle/0003_violet_giant_girl.sql +14 -0
- package/drizzle/0004_slim_valeria_richards.sql +15 -0
- package/drizzle/0005_petite_luke_cage.sql +12 -0
- package/drizzle/0006_calm_nighthawk.sql +3 -0
- package/drizzle/0007_slimy_naoko.sql +1 -0
- package/drizzle/0008_peaceful_tigra.sql +1 -0
- package/drizzle/0009_smooth_harrier.sql +10 -0
- package/drizzle/0010_curved_amphibian.sql +2 -0
- package/drizzle/meta/0003_snapshot.json +667 -0
- package/drizzle/meta/0004_snapshot.json +769 -0
- package/drizzle/meta/0005_snapshot.json +864 -0
- package/drizzle/meta/0006_snapshot.json +882 -0
- package/drizzle/meta/0007_snapshot.json +876 -0
- package/drizzle/meta/0008_snapshot.json +882 -0
- package/drizzle/meta/0009_snapshot.json +948 -0
- package/drizzle/meta/0010_snapshot.json +969 -0
- package/drizzle/meta/_journal.json +56 -0
- package/package.json +7 -1
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
|
|
11
|
+
## quick start: connect your agent
|
|
12
12
|
|
|
13
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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
|
|
19
|
+
npx lurqrun install
|
|
81
20
|
```
|
|
82
21
|
|
|
83
|
-
|
|
84
|
-
Cursor, Windsurf, VS Code/Copilot, Codex), and writes a keyed
|
|
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
|
|
87
|
-
|
|
88
|
-
non-interactive / scriptable:
|
|
26
|
+
**no database credentials ever touch your machine.** restart your agent afterward.
|
|
89
27
|
|
|
90
|
-
|
|
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
|
-
|
|
95
|
-
|
|
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
|
-
|
|
121
|
-
|
|
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
|
|