[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109935":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},109935,"jevlint","INDXDev\u002Fjevlint","INDXDev","A model-based linter that tells you what to refactor first.",null,"TypeScript",153,4,60,1,0,28,37,87,90,89.01,"MIT License",false,"main",true,[],"2026-11-22 14:57:43","2026-11-23 17:42:02","\u003Cp align=\"center\">\n  \u003Ca href=\"README.ja.md\">日本語\u003C\u002Fa> · \u003Ca href=\"README.zh-CN.md\">简体中文\u003C\u002Fa> · \u003Cb>English\u003C\u002Fb>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#try-it-now\">\u003Cimg src=\"docs\u002Fassets\u002Fhero.svg\" alt=\"jevlint: know what to refactor first\" width=\"820\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@indxjp\u002Fjevlint\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F@indxjp\u002Fjevlint?color=cb3837&logo=npm\" alt=\"npm version\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FINDXDev\u002Fjevlint\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002FINDXDev\u002Fjevlint\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=main\" alt=\"CI status\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fnode-%E2%89%A524.22.1-339933?logo=nodedotjs&logoColor=white\" alt=\"Node.js 24.22.1 or later\">\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flanguages-TS%20%7C%20JS%20%7C%20Python%20%7C%20Go%20%7C%20Rust%20%7C%20more-89b4fa\" alt=\"Languages: TypeScript, JavaScript, Python, Go, Rust and more\">\n  \u003Ca href=\"LICENSE\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-MIT-a6e3a1\" alt=\"MIT license\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"docs\u002Fgetting-started.md\">\u003Cb>Get started\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"docs\u002Fcli.md\">\u003Cb>CLI\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"docs\u002Fpresets.md\">\u003Cb>Presets\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"docs\u002Fagents.md\">\u003Cb>Coding agents\u003C\u002Fb>\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"docs\u002FREADME.md\">\u003Cb>Docs\u003C\u002Fb>\u003C\u002Fa>\n\u003C\u002Fp>\n\n# jevlint\n\n**A model-based linter that tells you what to refactor first.**\n\nESLint tells you a line broke a rule. jevlint reads every file in your repository, scores how\nclean it is against principles you choose, and hands you a ranked list: messiest and most-changed\nfiles first. Then it writes the prompt that gets Claude Code or Codex to fix them.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fbefore-after.svg\" alt=\"A diff of a fictional file, src\u002Forders\u002Ftotal.ts. A deeply nested function named proc, with one-letter names, an any type and a magic number 0.9, becomes orderTotal, which uses filter, reduce and a named MEMBER_DISCOUNT constant. Its score rises from 18 to 92, nesting from 4 to 1 and complexity from 5 to 2.\" width=\"820\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Csub>Illustrative example on a fictional file.\u003C\u002Fsub>\u003C\u002Fp>\n\n## Try it now\n\nNo install, no API key, and your code stays on your machine:\n\n```sh\nnpx @indxjp\u002Fjevlint --ast-only\n```\n\n## Install\n\n```sh\nnpm install -g @indxjp\u002Fjevlint     # or: pnpm add -g @indxjp\u002Fjevlint\njevlint --version\n```\n\nRequires Node.js 24.22.1 or later (or 22.23.4, or 26.12.1, on those lines).\n\n## See it work\n\nA team inherits `shop-api` and has one afternoon for cleanup. jevlint picks the file, explains why,\nhands it to Claude Code, and confirms the score went up.\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"docs\u002Fassets\u002Fdemo.gif\" alt=\"Terminal recording: jevlint audit ranks src\u002Forders\u002Fprocess.ts worst at 21 out of 100, jevlint explain lists its findings, jevlint fix runs Claude Code on it and the score rises to 84, and a second audit shows the repository score rise from 58 to 63.\" width=\"820\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\u003Csub>Simulated run on a fictional project. \u003Ca href=\"docs\u002Fassets\u002Fdemo\u002Fdemo.tape\">Recording script\u003C\u002Fa>.\u003C\u002Fsub>\u003C\u002Fp>\n\n## Why it is different\n\n- **Two kinds of judgement.** AST analysis measures what is measurable, such as complexity and\n  nesting. A [decision model](docs\u002Fconcepts.md#decision-models) answers what needs judgement, such\n  as \"do these names carry meaning?\"\n- **Decision models, not chatbots.** Models like [TypeSafe AI's Jev](https:\u002F\u002Ftypesafe.ai) return\n  calibrated scores and probabilities rather than prose. That makes them fast and cheap, and it means results can be ranked and cached.\n- **A ranking, not a wall of warnings.** Files are ordered by mess, git churn and size, so the\n  first item is the one worth your time.\n- **Reviews of a change, not only a repository.** `jevlint pr` and `jevlint commits` show a file's\n  score before and after, and only what the change made worse. `--intent` also holds a change\n  against its message and your `AGENTS.md`.\n- **Your own rules, in one sentence.** An ast-grep pattern picks the code and a yes\u002Fno question\n  judges each match, so a model's verdict gets a line number.\n- **Most source languages.** TypeScript, JavaScript, Python, Go and Rust get exact metrics. Other\n  languages get [approximate ones](docs\u002Fscoring.md#languages-without-a-grammar), with no extra install.\n- **Principles as presets.** Audit against ideas from well-known software books, or write your own\n  in a few lines of TOML.\n- **Scores you can settle.** A `jevlint-score` comment fixes an accepted score with a reason, so\n  nobody chases points. See [Pinning scores](docs\u002Fscoring.md#pinning-scores).\n- **Ready for coding agents.** `jevlint prompt | claude -p`, or let `jevlint fix` run the agent.\n  A [Claude Code plugin](#fix-it-with-a-coding-agent) and an edit hook are included.\n- **Pay for an answer once.** Results are cached by content, and an\n  [S3-compatible bucket](docs\u002Fcaching.md#share-the-cache-through-object-storage) shares them across CI\n  and your team.\n\n## What it is not\n\n- **Not a replacement for your linter.** Keep ESLint, Ruff, Clippy and your type checker for what\n  they can decide exactly. jevlint ranks what they cannot judge.\n- **Not a verdict.** Model scores are calibrated opinions. They vary between models and can move\n  between model versions, so treat them as candidates for a person to review, pin a model version\n  in CI, and use [`jevlint test`](docs\u002Fpresets.md#testing-a-question) to see when a question drifts.\n- **Not private by default, once a provider is on.** Everything except `--ast-only` sends code to\n  the provider you configure. See [Before you run it](#before-you-run-it).\n\n## Quick start\n\n```sh\njevlint auth set typesafe   # store a key once, per user\njevlint init                # create jevlint.toml in this repository\njevlint audit --dry-run     # see what would be sent, with no provider requests\njevlint audit               # rank the whole codebase\n```\n\nNo TypeSafe access? [Use another provider](docs\u002Fproviders.md), such as `openai`, `cloudflare` or\n`gateway`.\n\n## Fix it with a coding agent\n\n```sh\njevlint prompt --top 3 --copy      # paste into any agent\njevlint prompt | claude -p         # or pipe it\njevlint fix --agent claude         # or run the agent, then re-score\njevlint quickfix --agent claude    # or let it only edit, then see the diff, new score and commit\n```\n\nIn Claude Code, install the plugin for a skill and `\u002Fjevlint:audit`, `\u002Fjevlint:explain` and\n`\u002Fjevlint:review`. Its edit hook is off until you turn it on:\n\n```text\n\u002Fplugin marketplace add INDXDev\u002Fjevlint\n\u002Fplugin install jevlint@jevlint\n```\n\nSee [Coding agents](docs\u002Fagents.md).\n\n## Keep documents and code in agreement\n\n`jevlint spec` turns your documents into a checklist, then checks code and documents against it:\n\n```sh\njevlint spec compile --copy   # a prompt for your agent: write .jevlint\u002Fspec from the docs\njevlint spec check            # which files violate an item, and which items nothing implements\njevlint spec drift            # where the docs and the checklist disagree\n```\n\nThe checklist is YAML with two levels: a project checklist, and one per feature. Each file is first\nrouted to its feature, then judged against that feature's items only. See\n[Spec-driven development](docs\u002Fspec-driven-development.md).\n\n## Write your own rule\n\nAn ast-grep pattern decides which code is looked at. One question decides whether it is a problem,\nand yes means a violation. Each hit is reported on its line:\n\n```toml\n# jevlint.toml\n[[rules]]\nid = \"catch-hides-failure\"\nlanguage = \"typescript\"\npattern = \"try { $$$ } catch ($E) { $$$ }\"\nquestion = \"Does this catch block swallow a failure the caller needed to know about?\"\nmessage = \"This catch hides a failure\"\nfix = \"Rethrow it, or return an error the caller must handle.\"\nthreshold = 0.8   # optional: report at or above this probability\n```\n\nEach match is one provider request, up to `max_rule_matches` per rule and file, and `--ast-only` skips\nrules. See [Semantic rules](docs\u002Fpresets.md#semantic-rules).\n\nProve a preset question works with `good-*` and `bad-*` fixtures, and catch a model update that\nmoves it:\n\n```sh\njevlint test            # every fixture must land on the right side\njevlint test --record   # save today's answers\njevlint test --drift    # ask again, and list what moved\n```\n\n## Review a change\n\n```sh\njevlint pr --ast-only                # what this branch's pull request made worse\njevlint pr 42 --ast-only             # the same, by number\njevlint commits --count 5 --ast-only # the same, commit by commit\njevlint commits --count 5 --intent   # also check each message and AGENTS.md against the diff\n```\n\nYour working tree stays as it is, and your own config applies, not the change's. `--intent` reads\nthe repository's instructions from the base commit, so a change cannot rewrite what it is judged by.\nSee the [CLI reference](docs\u002Fcli.md#jevlint-pr-number), and\n[Continuous integration](docs\u002Fci.md#review-what-a-pull-request-changes) to run it on every pull request.\n\nCatch a regression before it is committed, with no key and no network:\n\n```sh\njevlint init --pre-commit   # stops a commit that makes a file worse than HEAD\n```\n\n## Fail CI on a low score\n\n```toml\n# jevlint.toml\n[scoring]\nfail_under = 60    # exit 1 below this\n```\n\nOn a legacy codebase, gate on what is new instead of on the score:\n\n```sh\njevlint baseline --ast-only                      # commit .jevlint\u002Fbaseline.json\njevlint audit --new --ast-only --format github   # exit 1 on anything new, as PR annotations\njevlint audit --ast-only --format sarif > jevlint.sarif   # for code scanning\n```\n\nSee [CI](docs\u002Fci.md).\n\n## Related projects\n\nJev made a linter an obvious thing to build, and several people built one independently. None of\nthese is affiliated with this project. They answer different questions, so pick by what you need:\n\n| Project | Unit of judgement | Use it when you want |\n| --- | --- | --- |\n| **@indxjp\u002Fjevlint** (this one) | Whole files, ranked. Optional per-match rules | To know what to refactor first, across a repository, against named principles |\n| [jev-lint](https:\u002F\u002Fgithub.com\u002Fmizchi\u002Fjev-lint) | One ast-grep match, one sentence | A large catalogue of shipped rules with fitted cutoffs, for code that contradicts its own comments and names |\n| [@hazymoon\u002Fjevlint](https:\u002F\u002Fgithub.com\u002FIce-Hazymoon\u002Fjevlint) | A rule per question, in a TypeScript config | Hand-written review rules with exemptions, and mutation tests that measure recall |\n| [@phox-js\u002Fjevlint](https:\u002F\u002Fgithub.com\u002FFox-Islam\u002Fjevlint) | A Jev query | To lint the queries you send to Jev, not your code. Also for PHP and Python |\n| [@diffpal\u002Fjevlint](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@diffpal\u002Fjevlint), now [LintPal](https:\u002F\u002Fgithub.com\u002Fdiffpal\u002Flintpal) | Changed lines in a Git comparison | Your team's Markdown rules as pull request checks |\n\nBaselines, SARIF output, fixtures, drift checks and message checks here follow the lead of the\nfirst two projects above. jevlint, jev-lint and @hazymoon\u002Fjevlint all use\n[ast-grep](https:\u002F\u002Fast-grep.github.io) to read code.\n\n## Reference\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Commands\u003C\u002Fb>\u003C\u002Fsummary>\n\n| Command | What it does |\n| --- | --- |\n| `jevlint audit [paths...]` | Score files and rank them. Also the default command. |\n| `jevlint explain \u003Cfile>` | Show every finding and score for one file. |\n| `jevlint architecture [paths...]` | Review the codebase, directories and classes, and rank them worst to best. |\n| `jevlint pr [number]` | Review what a GitHub pull request changes: scores before and after, and what got worse. |\n| `jevlint commits [revision]` | Review commits the same way, one by one, from `HEAD` backwards. |\n| `jevlint baseline [paths...]` | Record today's issues, so `audit --new` reports only what is new. |\n| `jevlint test [questions...]` | Run preset fixtures, record their answers, and detect drift. |\n| `jevlint hook` | Report what an edit or a staged change made worse, for agents and pre-commit. |\n| `jevlint spec compile\\|check\\|drift\\|list` | Spec-driven development: compile documents into a checklist, then check code and documents against it. |\n| `jevlint prompt [files...]` | Print or copy a fix prompt for a coding agent. |\n| `jevlint fix [files...] --agent \u003Cname>` | Run an agent on the worst files, then re-score them. |\n| `jevlint quickfix [files...] --agent \u003Cname>` | Have an agent only edit the worst files, one at a time, then show the diff side by side, re-score and commit each. |\n| `jevlint init` | Create a repository or user config. |\n| `jevlint auth set\\|list\\|remove\\|env` | Manage API keys. |\n| `jevlint preset [list\\|show\\|default\\|new\\|edit\\|add\\|remove]` | Choose, view, write and manage principle presets. Alone, it opens a menu. |\n| `jevlint cache info\\|clear` | Inspect or empty the result cache. |\n| `jevlint config show\\|path` | Show the merged config and where it came from. |\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Configuration\u003C\u002Fb>\u003C\u002Fsummary>\n\n```toml\n# jevlint.toml\npresets = [\"readable-code\", \"solid\"]\ninclude = [\"src\u002F**\"]\nexclude = [\"**\u002F*.generated.ts\"]\n\n[provider]\nname = \"typesafe\"\nmodel = \"jev-latest\"\n\n[scoring]\nscale = 100        # use 1 for scores from 0 to 1\nfail_under = 60    # exit 1 below this, for CI\n\n[weights]\n\"readable-code.naming\" = 3   # care about this more\n\"solid.dependency-inversion\" = 0   # turn this off\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Built-in presets\u003C\u002Fb>\u003C\u002Fsummary>\n\n| Preset | Focus |\n| --- | --- |\n| `full` | The default: every preset below, 97 questions in one request per file |\n| `readable-code` | Names, comments, control flow, time to understand |\n| `clean-code` | Small functions, one level of abstraction, honest error handling |\n| `solid` | The five object-oriented design principles |\n| `software-design` | Deep modules, information hiding, complexity management |\n| `code-smells` | Classic refactoring smells |\n| `clean-architecture` | Dependency direction, boundaries, framework independence |\n| `kiss-dry-yagni` | Simplicity, duplication, speculative code |\n| `security` | Input validation, injection, secrets, access checks, safe failure |\n| `documentation` | File purpose, doc comments on public code, stated contracts, accurate docs |\n| `bug-hunt` | 43 known defect classes, from CWE and other taxonomies, to rank where bugs hide |\n\nPresets paraphrase publicly discussed principles in our own words. They are not affiliated with or\nendorsed by the original authors or publishers. See [docs\u002Fpresets.md](docs\u002Fpresets.md).\n\n\u003C\u002Fdetails>\n\n## Documentation\n\nStart with the [documentation index](docs\u002FREADME.md).\n\n- [Getting started](docs\u002Fgetting-started.md)\n- [Concepts](docs\u002Fconcepts.md)\n- [CLI reference](docs\u002Fcli.md)\n- [Configuration](docs\u002Fconfiguration.md)\n- [Providers](docs\u002Fproviders.md)\n- [Presets](docs\u002Fpresets.md)\n- [Scoring](docs\u002Fscoring.md)\n- [Architecture review](docs\u002Farchitecture-review.md)\n- [Spec-driven development](docs\u002Fspec-driven-development.md) and the [spec reference](docs\u002Fspec-reference.md)\n- [Coding agents](docs\u002Fagents.md)\n- [Caching](docs\u002Fcaching.md)\n- [Continuous integration](docs\u002Fci.md)\n- [JSON output](docs\u002Fjson-output.md)\n- [Security and privacy](docs\u002Fsecurity.md)\n- [Troubleshooting](docs\u002Ftroubleshooting.md)\n- [Architecture](docs\u002Farchitecture.md) and [code reference](docs\u002Fcode-reference.md)\n\n## Before you run it\n\nAn audit sends the contents of your source files to the provider you configure. Read\n[Security and privacy](docs\u002Fsecurity.md) first if your code is confidential. `audit --ast-only`\nnever touches the network.\n\n## Contributing\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md). To report a vulnerability, see [SECURITY.md](SECURITY.md).\n\n## License\n\n[MIT](LICENSE)\n\njevlint is an independent open-source project. It is not affiliated with or endorsed by TypeSafe\nAI, Cloudflare, Microsoft, OpenAI, Vercel or Anthropic. All product names are the property of their\nrespective owners.\n","jevlint 是一款基于模型的代码质量评估与重构优先级推荐工具，不依赖静态规则，而是通过分析代码结构、可读性、复杂度等维度为每个文件生成综合健康分，并按‘最混乱且近期变更最多’原则排序待重构文件。它支持 TypeScript、JavaScript、Python、Go、Rust 等多种语言，内置对 Claude Code 等编码代理的集成能力，可自动生成修复提示并验证改进效果。适用于技术债务治理、新团队接手遗留系统、CI 中自动化质量评估等场景。",2,"2026-11-24 04:37:58","CREATED_QUERY"]