
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
lupine.api
Advanced tools
lupine.api is a fast, lightweight, and flexible node.js based server, working with lupine.web to provide SSR and modern JavaScript features for web applications and APIs.
lupine.api is a fast, lightweight, and flexible node.js based server framework. It is designed to work seamlessly with lupine.web to provide Server-Side Rendering (SSR) and modern API capabilities.
The project consists of two main parts:
src/app): A robust HTTP/HTTPS server that manages multiple applications, domains, and processes.src/api): A framework for building the backend logic for individual applications.src/app)The server component is responsible for handling incoming network requests, managing SSL certificates, and dispatching requests to the appropriate application based on domain configuration. It supports clustering logic to utilize multi-core CPUs efficiently.
.env files.See apps/server/src/index.ts for a complete example.
import { appStart, loadEnv, ServerEnvKeys } from 'lupine.api';
import * as path from 'path';
const initAndStartServer = async () => {
// 1. Load Environment Variables
await loadEnv('.env');
// 2. Configure Applications
const serverRootPath = path.resolve(process.env[ServerEnvKeys.SERVER_ROOT_PATH]!);
const webRootMap = [
{
appName: 'demo.app',
hosts: ['localhost', 'example.com'],
// Standard directory structure expected by lupine.api
webPath: path.join(serverRootPath, 'demo.app_web'),
dataPath: path.join(serverRootPath, 'demo.app_data'),
apiPath: path.join(serverRootPath, 'demo.app_api'),
dbType: 'sqlite',
dbConfig: { filename: 'sqlite3.db' },
},
];
// 3. Start Server
await appStart.start({
debug: process.env.NODE_ENV === 'development',
apiConfig: {
serverRoot: serverRootPath,
webHostMap: webRootMap,
},
serverConfig: {
httpPort: 8080,
httpsPort: 8443,
// sslKeyPath: '...',
// sslCrtPath: '...',
},
});
};
initAndStartServer();
src/api)The API Module provides the framework for writing the business logic of your application. It acts similarly to Express.js but is optimized for the lupine ecosystem.
AsyncStorage to safely manage request-scoped data (like sessions or database transactions) across async operations.better-sqlite3).An application's API entry point (e.g., apps/demo.app/api/src/index.ts) typically exports an instance of ApiModule.
1. Entry Point (index.ts):
import { ApiModule } from 'lupine.api';
import { RootApi } from './service/root-api';
// Export apiModule so the server can load it dynamically
export const apiModule = new ApiModule(new RootApi());
2. Root API Service (service/root-api.ts):
import { ApiRouter, IApiBase, IApiRouter } from 'lupine.api';
export class RootApi implements IApiBase {
getRouter(): IApiRouter {
const router = new ApiRouter();
// Define routes
router.get('/hello', async (req, res) => {
res.write(JSON.stringify({ message: 'Hello World' }));
res.end();
return true; // Return true to indicate request was handled
});
// Sub-routers can be mounted
// router.use('/users', new UserApi().getRouter());
return router;
}
}
lupine.api includes a built-in extensible dashboard for managing your services. Detailed documentation can be found in README-dashboard.md.
FAQs
lupine.api is a fast, lightweight, and flexible node.js based server, working with lupine.web to provide SSR and modern JavaScript features for web applications and APIs.
We found that lupine.api 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
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.