
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
Automatic API generator for Next.js applications that creates API routes and TypeScript client functions from backend functions
Automatic API Generator for Next.js Applications
Quickwire automatically generates Next.js API routes and TypeScript client functions from your backend functions, eliminating boilerplate code and ensuring type safety.
# Install Quickwire
npm install quickwire --save-dev
Update your package.json:
{
"packageManager": "npm@11.3.0", // Your npm version can be checked with "npm --version"
"scripts": {
"quickwire": "quickwire --watch",
"nextdev": "next dev --turbopack",
"dev": "turbo run quickwire nextdev --parallel",
"prebuild": "quickwire",
"build": "next build"
},
}
Add TypeScript path mapping to your tsconfig.json:
{
"compilerOptions": {
"paths": {
"quickwired/*": ["./quickwired/*"],
"@/*": ["./src/*"]
}
}
}
Result: Lots of boilerplate, potential type mismatches, manual maintenance
npm run devResult: 70% less code, 100% type safety, zero maintenance
// src/backend/users.ts
export async function getUser(params: { id: string }) {
return prisma.user.findUnique({
where: { id: params.id }
});
}
export async function createUser(params: {
name: string;
email: string;
}) {
return prisma.user.create({ data: params });
}
// src/app/users/page.tsx
"use client";
import { getUser, createUser } from "quickwired/users";
export default function UsersPage() {
const handleGetUser = async () => {
// ✨ Fully typed, auto-generated API call
const user = await getUser({ id: "123" });
console.log(user);
};
const handleCreateUser = async () => {
const newUser = await createUser({
name: "John Doe",
email: "john@example.com"
});
console.log(newUser);
};
return (
<div>
<button onClick={handleGetUser}>Get User</button>
<button onClick={handleCreateUser}>Create User</button>
</div>
);
}
Quickwire automatically generates:
src/app/api/(quickwired)/quickwired//api/quickwire-docsOptional quickwire.config.json in your scripts directory:
{
"backendDir": "src/backend",
"apiDir": "src/app/api/(quickwired)",
"quickwireDir": "quickwired",
"supportedExtensions": [".ts", ".js"],
"apiRouteTemplate": "route.ts",
"excludePatterns": ["*.test.ts", "*.spec.ts", "*.d.ts", "node_modules", ".git"],
"watchDebounceMs": 100,
"performance": {
"enableDocGeneration": true,
"maxFilesToProcess": 1000,
"enableIncrementalUpdates": true,
"cacheExpiryMs": 1800000
},
"httpMethods": {
"GET": [
"get", "fetch", "find", "list", "show", "read", "retrieve", "search",
"query", "view", "display", "load", "check", "verify", "validate",
"count", "exists", "has", "is", "can"
],
"POST": [
"create", "add", "insert", "post", "submit", "send", "upload",
"register", "login", "signup", "authenticate", "authorize", "process",
"execute", "run", "perform", "handle", "trigger", "invoke", "call",
"generate", "build", "make", "produce", "sync", "import", "export"
],
"PUT": [
"update", "edit", "modify", "change", "set", "put", "replace",
"toggle", "switch", "enable", "disable", "activate", "deactivate",
"publish", "unpublish", "approve", "reject", "accept", "decline",
"assign", "unassign", "move", "transfer", "migrate", "restore",
"reset", "refresh", "renew", "reorder", "sort", "merge"
],
"PATCH": [
"patch", "partial", "increment", "decrement", "append", "prepend",
"adjust", "tweak", "fine", "tune"
],
"DELETE": [
"delete", "remove", "destroy", "clear", "clean", "purge", "drop",
"erase", "wipe", "cancel", "revoke", "withdraw", "uninstall",
"detach", "disconnect", "unlink", "archive", "trash"
]
}
}
backendDir: Directory containing backend functions (default: "src/backend")apiDir: Directory where API routes are generated (default: "src/app/api/(quickwired)")quickwireDir: Directory where client functions are generated (default: "quickwired")supportedExtensions: File extensions to process (default: [".ts", ".js"])excludePatterns: Files/patterns to ignore during processingwatchDebounceMs: Debounce delay for file watching (default: 100ms)performance: Performance optimization settingshttpMethods: Function name patterns for HTTP method detectionQuickwire automatically generates API documentation accessible at:
/api/quickwire-docs
This endpoint provides comprehensive documentation of all your generated API routes, including:
# 1. Check npm version (requires npm 11.3.0 or higher)
npm --version
# 2. If needed, update npm
npm install -g npm@latest
# 3. Install packages
npm install quickwire turbo --save-dev
# 4. Update package.json scripts (see above)
# 5. Start development
npm run dev
# 6. Write functions in src/backend/
# 7. Import from quickwired/* in your components
Ready to eliminate API boilerplate? Install Quickwire and watch your development speed up! ⚡
FAQs
Automatic API generator for Next.js applications that creates API routes and TypeScript client functions from backend functions
The npm package quickwire receives a total of 7 weekly downloads. As such, quickwire popularity was classified as not popular.
We found that quickwire 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.