
Research
/Security News
737 Chrome VPN Extensions Linked to Brand Impersonation and Browser Traffic Redirection
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.
@intent-driven/importer-controllers
Advanced tools
AST-парсер controllers (Express, Fastify, Nest, Rails) → IDF intent suggestions
AST-парсер controllers (Express, Fastify, Nest, Rails — постепенно) → suggested IDF intents.
| Framework | Статус |
|---|---|
| Express | ✅ v0.1 |
| Fastify | ✅ v0.2 — все 4 patterns: app.<method>(path, handler), 3-arg form (path, opts, handler), declarative app.route({...}), array app.route([{...}]) |
| NestJS | вынесено в @intent-driven/importer-nestjs-typeorm (декораторы Nest + TypeORM в одном пакете) |
| Rails | планируется (PR 4d, opt-in deps) |
// Все четыре формы понимаются:
fastify.get('/api/orders', listOrders);
fastify.get('/api/orders', { schema: orderSchema }, listOrders); // 3-arg
fastify.route({ // declarative
method: 'POST',
url: '/api/orders',
preHandler: [authenticated, validateBody],
handler: createOrder,
});
fastify.route([ // array
{ method: 'GET', url: '/api/products', handler: list },
{ method: 'POST', url: '/api/products', handler: create },
]);
method: ['GET', 'POST'] (Fastify multi-method) — берётся первый. url или path — оба ключа допустимы.
import { importControllers } from "@intent-driven/importer-controllers";
const { intents, routes, files } = await importControllers("./src/routes");
console.log(intents);
// [
// {
// name: "create_order",
// target: "Order",
// alpha: "insert",
// method: "POST",
// httpPath: "/api/orders",
// handlerNames: ["validateBody", "createOrderHandler"],
// sources: [{ file: "./src/routes/orders.js", line: 42 }]
// },
// ...
// ]
POST /api/orders → create_order (alpha=insert)
GET /api/orders → list_orders (alpha=null, read-only)
GET /api/orders/:id → read_order (alpha=null)
PUT /api/orders/:id → update_order (alpha=replace)
PATCH /api/orders/:id → patch_order (alpha=replace)
DELETE /api/orders/:id → delete_order (alpha=remove)
POST /api/orders/:id/cancel → cancel_order (alpha=replace, action-segment)
Распознаваемые actions: cancel, approve, reject, publish, archive, unarchive, submit, complete, restore, lock, unlock.
app.get|post|put|delete|patch|head|options|all(path, handlers)app / router / api / server whitelist — myCustomThing.get(...) пропускаетсяserver.get({ url, handler }))Rails.application.routes.draw через ruby parser)idf import controllers <dir> в @intent-driven/clienricher-claude для уточнения intent.alpha и invariantsMIT.
FAQs
AST-парсер controllers (Express, Fastify, Nest, Rails) → IDF intent suggestions
The npm package @intent-driven/importer-controllers receives a total of 1 weekly downloads. As such, @intent-driven/importer-controllers popularity was classified as not popular.
We found that @intent-driven/importer-controllers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.