awesome-core 2.0.1__tar.gz → 2.2.2__tar.gz

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 (43) hide show
  1. awesome_core-2.2.2/PKG-INFO +405 -0
  2. awesome_core-2.2.2/README.md +387 -0
  3. awesome_core-2.2.2/awesome_core.egg-info/PKG-INFO +405 -0
  4. {awesome_core-2.0.1 → awesome_core-2.2.2}/awesome_core.egg-info/SOURCES.txt +1 -0
  5. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/backfill.py +152 -40
  6. awesome_core-2.2.2/core/builder.py +827 -0
  7. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/doctor.py +1 -1
  8. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/enrich.py +139 -55
  9. awesome_core-2.2.2/core/fetcher.py +321 -0
  10. awesome_core-2.2.2/core/leaks.py +250 -0
  11. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/mcp.py +81 -37
  12. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/parser.py +57 -4
  13. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/poisoning.py +72 -11
  14. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/scoring.py +87 -7
  15. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/status.py +131 -28
  16. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/store.py +154 -3
  17. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/untrusted.py +16 -1
  18. {awesome_core-2.0.1 → awesome_core-2.2.2}/pyproject.toml +1 -1
  19. awesome_core-2.0.1/PKG-INFO +0 -593
  20. awesome_core-2.0.1/README.md +0 -575
  21. awesome_core-2.0.1/awesome_core.egg-info/PKG-INFO +0 -593
  22. awesome_core-2.0.1/core/builder.py +0 -539
  23. awesome_core-2.0.1/core/fetcher.py +0 -202
  24. {awesome_core-2.0.1 → awesome_core-2.2.2}/LICENSE +0 -0
  25. {awesome_core-2.0.1 → awesome_core-2.2.2}/awesome_core.egg-info/dependency_links.txt +0 -0
  26. {awesome_core-2.0.1 → awesome_core-2.2.2}/awesome_core.egg-info/entry_points.txt +0 -0
  27. {awesome_core-2.0.1 → awesome_core-2.2.2}/awesome_core.egg-info/top_level.txt +0 -0
  28. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/__init__.py +0 -0
  29. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/aliases.py +0 -0
  30. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/api.py +0 -0
  31. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/bootstrap.py +0 -0
  32. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/clones.py +0 -0
  33. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/curator.py +0 -0
  34. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/database.py +0 -0
  35. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/langmap.py +0 -0
  36. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/md.py +0 -0
  37. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/selfcheck.py +0 -0
  38. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/shortlist.py +0 -0
  39. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/tools_db.py +0 -0
  40. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/trust.py +0 -0
  41. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/validator.py +0 -0
  42. {awesome_core-2.0.1 → awesome_core-2.2.2}/core/watcher.py +0 -0
  43. {awesome_core-2.0.1 → awesome_core-2.2.2}/setup.cfg +0 -0
@@ -0,0 +1,405 @@
1
+ Metadata-Version: 2.4
2
+ Name: awesome-core
3
+ Version: 2.2.2
4
+ Summary: Offline-first catalog of tools from GitHub awesome lists, exposed as a read-only MCP server (stdio). Pure stdlib core, no network, no API keys.
5
+ Author: Arkadiusz Słowik
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/twojlogin/awesome-core
8
+ Project-URL: Repository, https://github.com/twojlogin/awesome-core
9
+ Project-URL: Issues, https://github.com/twojlogin/awesome-core/issues
10
+ Keywords: mcp,model-context-protocol,awesome-list,offline,search,cli,sqlite
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Topic :: Utilities
14
+ Requires-Python: >=3.8
15
+ Description-Content-Type: text/markdown
16
+ License-File: LICENSE
17
+ Dynamic: license-file
18
+
19
+ # 🔥 Awesome Core
20
+
21
+ [![PyPI](https://img.shields.io/pypi/v/awesome-core?label=PyPI)](https://pypi.org/project/awesome-core/)
22
+ [![Python versions](https://img.shields.io/pypi/pyversions/awesome-core)](https://pypi.org/project/awesome-core/)
23
+ [![CI](https://github.com/twojlogin/awesome-core/actions/workflows/ci.yml/badge.svg)](https://github.com/twojlogin/awesome-core/actions/workflows/ci.yml)
24
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](#license)
25
+ [![MCP Registry](https://img.shields.io/badge/MCP%20Registry-io.github.twojlogin%2Fawesome--core-6f42c1)](https://registry.modelcontextprotocol.io/v0/servers?search=awesome-core)
26
+ [![awesome-core MCP server – quality and maintenance score on Glama](https://glama.ai/mcp/servers/twojlogin/awesome-core/badges/score.svg)](https://glama.ai/mcp/servers/twojlogin/awesome-core)
27
+ [![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.twojlogin/awesome-core.svg?lang=en)](https://latlas.dev/en/mcp/io.github.twojlogin/awesome-core)
28
+
29
+ <!-- mcp-name: io.github.twojlogin/awesome-core -->
30
+
31
+ **English** · [Polski](README_pl.md)
32
+
33
+ ## What this is (in one sentence)
34
+
35
+ **It downloads GitHub "awesome" lists into one local catalog on your disk and lets you quickly find tools — by name, language, OS, or topic — completely offline.**
36
+
37
+ For example, if you want "something for OSINT that runs on Windows", you can type:
38
+
39
+ ```bash
40
+ ./awesome search osint --os windows
41
+ ```
42
+
43
+ You get tools from multiple awesome lists at once, ranked so that items surfaced by **independent curators across multiple lists** tend to appear higher (rather than only items from one popular list).
44
+
45
+ > **Filters combine with AND, so they can narrow results quickly.** `--os windows --lang PowerShell` may leave very few results for "osint" — and sometimes not the tool you expected. The program warns when filters are too narrow and suggests which one to relax.
46
+ >
47
+ > Rule of thumb: add a filter only when you have more results than you need.
48
+
49
+ ---
50
+
51
+ ## If you have no time — three commands
52
+
53
+ ```bash
54
+ ./awesome start # 1. does the setup/build for you (download, build, ready)
55
+ ./awesome search nmap
56
+ ./awesome web # opens the web UI
57
+ ```
58
+
59
+ `./awesome start` explains each step and how long it may take. Nothing runs silently in the background — progress is visible.
60
+
61
+ ---
62
+
63
+ ## What you need before starting
64
+
65
+ **One thing: Python 3.8 or newer.**
66
+
67
+ | Requirement | Purpose | Check |
68
+ |---|---|---|
69
+ | **Python 3.8+** | runtime — the only hard dependency | `python3 --version` |
70
+
71
+ **You do not need** jq, curl, GitHub CLI, or to create a venv manually:
72
+
73
+ - fetching lists works over plain HTTPS (`core/api.py`) — without `gh` it is slower due to GitHub unauthenticated search limits, but it works;
74
+ - Flask for the web UI is installed automatically on first `./awesome web`;
75
+ - the tool reports missing pieces (`./awesome doctor`).
76
+
77
+ If you have `gh` and log in (`gh auth login`), downloads can be much faster and `enrich` becomes available. That is an optimization, not a requirement.
78
+
79
+ Linux example:
80
+
81
+ ```bash
82
+ sudo apt install python3 # or: sudo dnf install python3
83
+ ```
84
+
85
+ Optional (faster downloads and tool metadata):
86
+
87
+ ```bash
88
+ gh auth login # GitHub CLI, one-time
89
+ ```
90
+
91
+ **Windows works without bash.** Use `awesome.cmd` in PowerShell or by double-clicking:
92
+
93
+ ```powershell
94
+ awesome.cmd start
95
+ awesome.cmd web
96
+ ```
97
+
98
+ `download.sh` remains as a wrapper that calls Python — it no longer depends on jq/curl/shell loops.
99
+
100
+ Flask for the web UI is installed **automatically** on first `./awesome web`. If it fails (e.g. no network/proxy), the program prints manual instructions.
101
+
102
+ **You do not need** to know SQL, program, configure internals, or enable automatic updates. If something is wrong, `./awesome status` tells you what to run.
103
+
104
+ ---
105
+
106
+ ## First run, step by step
107
+
108
+ ### `./awesome start`
109
+
110
+ The program checks prerequisites, then:
111
+
112
+ | Step | What it does | Typical time |
113
+ |---|---|---|
114
+ | 1 | downloads awesome list READMEs from GitHub (skips what you already have) | 10–25 min |
115
+ | 2 | extracts tools into the database | ~2 min |
116
+ | 3 | fetches list stars/languages metadata | ~1 min |
117
+ | 4 | **starts Web UI** and waits | — |
118
+
119
+ **If the database is already built, `start` does not re-download everything.** It reports tool count and starts the UI. Rebuild requires an explicit choice:
120
+
121
+ ```bash
122
+ ./awesome start --rebuild # deletes DB and rebuilds from scratch (~2 min)
123
+ ./awesome refresh # quick refresh (download + light backfill of missing + rebuild)
124
+ ./awesome refresh --full # full refresh (includes enrich with limit)
125
+ ```
126
+
127
+ This prevents an accidental `./awesome start` from discarding work.
128
+
129
+ **Honest note:** `start` does not query GitHub for each individual tool repository. Ranking works immediately (based on curator consensus), but tool star counts may initially be estimates from list context, not verified repo stars. To improve that:
130
+
131
+ ```bash
132
+ ./awesome enrich # 30–60 min, queries many repositories
133
+ ./awesome build # ~2 min, to incorporate data into ranking
134
+ ```
135
+
136
+ Or in one go from scratch:
137
+
138
+ ```bash
139
+ ./awesome start --full # download → build → backfill → enrich → build
140
+ ```
141
+
142
+ You usually do this once. You can interrupt (Ctrl+C) — progress is saved and reruns continue. Without GitHub auth, `enrich` refuses with an explanation instead of pretending to work.
143
+
144
+ Quick path if you're short on time:
145
+
146
+ ```bash
147
+ ./awesome start --skip-download # build from what you already have
148
+ ```
149
+
150
+ ### Daily use
151
+
152
+ ```bash
153
+ ./awesome search "port scanner" # natural search
154
+ ./awesome search osint --lang Python # filter: Python
155
+ ./awesome search "active directory" --os windows # filter: Windows
156
+ ./awesome langs # languages in catalog
157
+ ./awesome platforms # platforms: Windows, Linux, Docker...
158
+ ./awesome domains # topics: osint, security, network...
159
+ ./awesome why nmap # explain ranking/score
160
+ ./awesome mentions nmap # in how many lists it appears
161
+ ./awesome audit # check for suspicious/poisoned lists
162
+ ./awesome audit sindresorhus/awesome # audit a single repository
163
+ ./awesome leaks # scan for possible leaked secrets (local)
164
+ ./awesome leaks --readmes # also scan raw README files (offline)
165
+ ./awesome leaks --repo # also scan tracked repo files (incl. hidden)
166
+ ./awesome lists # top lists
167
+ ./awesome info nmap # details + install hint
168
+ ./awesome install nmap # install (git clone)
169
+ ```
170
+
171
+ ### Your own shortlist
172
+
173
+ When you find something useful, save it and export Markdown later:
174
+
175
+ ```bash
176
+ ./awesome shortlist add nmap --note "network scanning"
177
+ ./awesome shortlist
178
+ ./awesome shortlist emit --title "My OSINT list" --group domain
179
+ ./awesome shortlist emit --out my-list.md
180
+ ```
181
+
182
+ The web UI offers the same: **☆ Add to shortlist** on tool pages, shortlist view and Markdown export. In TUI press `k`.
183
+
184
+ `watch` is separate — it tracks **repositories of lists** you want to follow (new tools in a favorite list), not tools:
185
+
186
+ ```bash
187
+ ./awesome watch add sindresorhus/awesome
188
+ ./awesome watch check # what changed since last check
189
+ ```
190
+
191
+ Both lists are local; nothing polls in the background.
192
+
193
+ ### TUI — keys
194
+
195
+ ```text
196
+ / search l next language o next platform
197
+ d next domain s change sort a clear filters
198
+ g hidden gems u underrated Enter details
199
+ k add to shortlist i install ? help
200
+ q quit
201
+ ```
202
+
203
+ ### Four interfaces, one catalog
204
+
205
+ ```bash
206
+ ./awesome # terminal — fastest for quick search
207
+ ./awesome tui # interactive terminal UI
208
+ ./awesome web # browser UI (port printed on start)
209
+ ./awesome help # all commands
210
+ ```
211
+
212
+ ---
213
+
214
+ ## Maintenance (nothing runs by itself)
215
+
216
+ ```bash
217
+ ./awesome status # what is in DB, when refreshed, what is missing
218
+ ./awesome refresh # quick refresh: download + light backfill of missing metadata + rebuild
219
+ ./awesome refresh --full # full refresh: + backfill + enrich (limited) + rebuild
220
+ ```
221
+
222
+ - `--enrich-limit N` controls enrich size in full mode (default 1000).
223
+ - `./awesome status` suggests the exact next command (e.g. `./awesome enrich`). The web UI provides a `/refresh` page with actions. No cron jobs, daemons, or background processes.
224
+
225
+ **Numbers note:** status reports how many **repositories remain to query**, not "tools without stars". Multiple tools may point to the same repo, and non-GitHub links (articles, videos, docs) **do not and cannot have GitHub stars**.
226
+
227
+ ---
228
+
229
+ ## What is inside
230
+
231
+ <!-- STAN: these numbers depend on downloaded lists — no hardcoded values.
232
+ Check current: ./awesome status -->
233
+ | | |
234
+ |---|---|
235
+ | tools in database | depends on downloaded lists |
236
+ | sources (repositories) | depends on downloaded lists |
237
+
238
+ Always check current numbers with: `./awesome status`.
239
+
240
+ **Honest note:** there is no AI here. No language models select, rate, or rank tools. It is plain Python parsing README files from GitHub lists and computing metrics. If numbers in docs differ from your DB, run `./awesome status`.
241
+
242
+ ## Connect an AI agent (MCP) — local, no API keys
243
+
244
+ You can expose the catalog to a local MCP-capable agent (Claude, Cursor, etc.) as a tool source. The agent receives ranking based on independent curator consensus, not on what is most repeated in a single README.
245
+
246
+ ```bash
247
+ ./awesome mcp --demo # preview: see JSON-RPC exchange without an agent
248
+ ./awesome mcp # server listens on stdin (normal usage)
249
+ ```
250
+
251
+ The server provides 5 tools: `search_tools`, `find_undiscovered_tools`, `explain_tool`, `lists_with_tool`, and `catalog_facets`.
252
+
253
+ Example `claude_desktop_config.json`:
254
+
255
+ ```json
256
+ {
257
+ "mcpServers": {
258
+ "awesome-core": {
259
+ "command": "/full/path/to/awesome-core/awesome",
260
+ "args": ["mcp"]
261
+ }
262
+ }
263
+ }
264
+ ```
265
+
266
+ Or from PyPI without cloning (package `awesome-core`, also in MCP Registry as `io.github.twojlogin/awesome-core`):
267
+
268
+ ```json
269
+ {
270
+ "mcpServers": {
271
+ "awesome-core": {
272
+ "command": "uvx",
273
+ "args": ["awesome-core"],
274
+ "env": { "AWESOME_DATA_DIR": "/full/path/to/awesome-core/data" }
275
+ }
276
+ }
277
+ }
278
+ ```
279
+
280
+ `AWESOME_DATA_DIR` must point to a directory containing a database built by `./awesome start` — the package does not ship data.
281
+
282
+ Notes:
283
+ - **No network access from the server.** No API keys, no accounts, read-only local SQLite access. No side-effect tools.
284
+ - **Instant startup** — the server reads an already-built DB.
285
+ - Results are plain text with numbers (stars, independent list count, score) so agents can cite/compare.
286
+ - Protocol: JSON-RPC 2.0 over stdin/stdout; logs go to stderr.
287
+
288
+ ---
289
+
290
+ ## Where data comes from — and safety
291
+
292
+ **Sources:** lists are discovered via public GitHub API topics like `topic:awesome-list` (and related topics in wider modes), sorted by popularity signals — no "recommended" random sources.
293
+
294
+ **Nothing from external repos is executed:**
295
+ - READMEs are **data**. The parser extracts links with regex; content is never passed to `eval/exec/shell`.
296
+ - `awesome install` performs `git clone --depth 1` (no remote hook execution by this tool).
297
+ - Web output and Markdown rendering escape HTML.
298
+
299
+ **Main risk vector: untrusted descriptions in model context.** MCP returns text written by unknown authors. Therefore:
300
+ - descriptions pass through `core/untrusted.py` (filters instruction-like patterns, role markers, HTML tags, dangerous command snippets, etc., leaving `[filtered: ...]` markers);
301
+ - MCP `initialize` tells the agent this is third-party content, not instructions;
302
+ - you can inspect with:
303
+
304
+ ```bash
305
+ ./awesome untrusted
306
+ ```
307
+
308
+ This is pattern-based filtering, not a guarantee. Treat descriptions as data.
309
+
310
+ You can also scan locally for possible leaked secrets/tokens in descriptions, README files, and tracked repository files:
311
+
312
+ ```bash
313
+ ./awesome leaks
314
+ ./awesome leaks --readmes # also scan raw README files (offline)
315
+ ./awesome leaks --repo # also scan tracked repo files, including hidden dotfiles
316
+ ./awesome leaks --repo /path/to/repo --no-db # audit another repo without scanning the tools DB
317
+ ./awesome leaks --repo --pattern 'mcp_[A-Za-z0-9_-]{20,}' # add your own pattern
318
+ ```
319
+
320
+ This is heuristic (masked results, no external reporting). It helps spot issues early, but it is not a security guarantee. Scanning git history (removed but previously committed secrets) is not included yet.
321
+
322
+ ---
323
+
324
+ ## Principle: no AI in the core
325
+
326
+ | Layer | AI? | Network? |
327
+ |---|---|---|
328
+ | parser, DB, ranking, clones, shortlist, TUI, web | **no** | **no** — reads local `data/awesome.db` |
329
+ | `core/mcp.py` (agent adapter) | outside process | no — JSON-RPC over stdio |
330
+ | `download`, `enrich`, `backfill`, `validate`, `install` | no | yes, only on explicit command |
331
+
332
+ - Core dependency is stdlib; Flask is for web UI.
333
+ - No models/embeddings/neural nets/LLMs in ranking. Scoring is explicit arithmetic (`core/scoring.py`).
334
+ - MCP is an edge adapter; removing it should not break core functionality.
335
+ - Tests enforce this boundary (including AI-library import checks and MCP isolation).
336
+
337
+ ---
338
+
339
+ ## Can the catalog be poisoned?
340
+
341
+ The catalog is built from **third-party repositories**, so malicious or low-quality lists/links are possible.
342
+
343
+ ```bash
344
+ ./awesome audit
345
+ ```
346
+
347
+ Signals include (heuristic, for manual review): many tools with zero stars, low-diversity or single-owner external GitHub link sets, self-promotion of **other repositories** by the same owner (links inside the audited list's own repo are treated separately as internal/monorepo structure), many dead links, clones of other lists, and suspicious links/domains (typosquatting-like, IPs, punycode, etc.). Audit may also add context labels such as auto-generated star dumps or same-owner multi-list low-reputation farms.
348
+
349
+ Important caveats:
350
+ - **Not malware scanning of target repos.** It flags suspicious signals, not proof of malice.
351
+ - **Signals are for manual review**, not automatic verdicts.
352
+ - Ranking/build also reduce single-source influence: tools benefit from agreement across independent lists, clone detection reduces duplicate influence, and suspected SEO farms/mass aggregators are tracked to limit their impact on consensus/quality.
353
+ - **`awesome install` is only `git clone`.** It does not execute remote code, but you decide what to do with cloned code afterward.
354
+
355
+ Rule of thumb: a tool from one new/unknown list is a reason to inspect, not blindly install.
356
+
357
+ ---
358
+
359
+ ## Glossary
360
+
361
+ | Term | Meaning |
362
+ |---|---|
363
+ | **awesome list** | a curated list of links/tools maintained on GitHub |
364
+ | **database (SQLite)** | local file `data/awesome.db`; generated, can be rebuilt |
365
+ | **FTS5** | SQLite full-text search index used for fast search |
366
+ | **list metadata** | stars/language/description of a list repo |
367
+ | **tool metadata** | stars/language/liveness of a tool repo |
368
+ | **consensus** | how many independent list authors point to a tool |
369
+ | **list quality** | 0–1 score (descriptions, uniqueness, live links, freshness, size, etc.) |
370
+ | **score** | tool score (0–100) from multiple signals |
371
+ | **backfill** | fetch missing list metadata |
372
+ | **enrich** | fetch tool repository metadata |
373
+ | **build** | rebuild DB from local READMEs |
374
+ | **facet** | clickable filter (e.g. language/platform/domain) |
375
+
376
+ **The program does not recommend tools.** It shows metrics and evidence (consensus, stars, list quality, sources) and leaves decisions to you.
377
+
378
+ ---
379
+
380
+ ## License
381
+
382
+ MIT — see `LICENSE`. Code is licensed under MIT, but names/links/short descriptions of tools come from third-party awesome lists and belong to their authors. The database stores references/facts; third-party READMEs are downloaded locally by the user.
383
+
384
+ ## Known limitations (honest)
385
+
386
+ - **Ranking reads metadata/text, not repository code.** Names, descriptions, stars, topics and READMEs can be misleading; the tool does not inspect source code of target repos.
387
+ - `./awesome selfcheck` (15 known tools) is a useful sanity check but not perfect (e.g. similarly named/fan repos can outrank originals).
388
+ - Many entries appear in only one list (consensus = 0 for long tail).
389
+ - Many entries are non-GitHub links (articles/videos/docs) and cannot have GitHub stars.
390
+ - GitHub search has API/result limits; downloads use multiple queries/strategies.
391
+ - True tool language is known only for repos enriched via API; others may be inferred (`?` where unknown).
392
+ - Non-GitHub links are validated only on demand (`./awesome validate --non-github --limit 500`).
393
+ - This is not a security guarantee for installing/running third-party tools. Review code/releases before installing anything.
394
+
395
+ ---
396
+
397
+ ## For deeper details
398
+
399
+ See Polish `README.md` for the full, original long-form documentation (project structure, scoring details, and extended notes).
400
+
401
+ ## Project links
402
+
403
+ - Repository: https://github.com/twojlogin/awesome-core
404
+ - Issues: https://github.com/twojlogin/awesome-core/issues
405
+ - MCP Registry: `io.github.twojlogin/awesome-core`