This model is specifically trained to write clean, production-ready Node.js backend code. It understands common backend patterns including REST APIs, database integrations, authentication, and testing.
1hf download Sriram-214/nodejs-coder-qwen25 nodejs-coder-Q4_K_M.gguf --local-dir ./
2hf download Sriram-214/nodejs-coder-qwen25 Modelfile --local-dir ./
1FROM ./nodejs-coder-Q4_K_M.gguf
2
3PARAMETER temperature 0.7
4PARAMETER top_p 0.9
5PARAMETER repeat_penalty 1.1
6PARAMETER num_ctx 2048
7PARAMETER num_gpu 0
8PARAMETER stop "<|im_end|>"
9PARAMETER stop "<|im_start|>"
10
11TEMPLATE """<|im_start|>system
12{{ .System }}<|im_end|>
13<|im_start|>user
14{{ .Prompt }}<|im_end|>
15<|im_start|>assistant
16"""
17
18SYSTEM """You are a Node.js backend development expert. You write clean, efficient, production-ready code following best practices. You specialize in Express.js, NestJS, Sequelize, Prisma, MongoDB, PostgreSQL, and Jest testing. Always include error handling and follow RESTful API design principles."""
1const express = require('express');
2const app = express();
3
4app.get('/health', (req, res) => {
5 res.status(200).json({ status: 'ok' });
6});
7
8app.listen(3000, () => console.log('Server running on port 3000'));
1const fs = require('fs').promises;
2
3async function readJsonFile(filePath) {
4 try {
5 const data = await fs.readFile(filePath, 'utf-8');
6 return JSON.parse(data);
7 } catch (error) {
8 throw new Error(`Failed to read file: ${error.message}`);
9 }
10}
1const fs = require('fs');
2
3fs.readdir('./', (err, files) => {
4 if (err) throw err;
5 console.log(files);
6});