devlama
v0.1.1
Published
AI-powered development assistant that leverages Ollama's language models for code generation and assistance
Maintainers
Readme
DevLama (formerly JSLama)
AI-powered development assistant that leverages Ollama's language models for code generation and assistance.
PyLama Ecosystem Navigation
| Project | Description | Links | |---------|-------------|-------| | DevLama | AI-powered development assistant | GitHub · NPM · Docs | | GetLLM | LLM model management and code generation | GitHub · PyPI · Docs | | LogLama | Centralized logging and environment management | GitHub · PyPI · Docs | | APILama | API service for code generation | GitHub · Docs | | BEXY | Sandbox for executing generated code | GitHub · NPM · Docs | | JSLama | JavaScript code generation | GitHub · NPM · Docs | | SheLLama | Shell command generation | GitHub · PyPI · Docs | | WebLama | Web application generation | GitHub · Docs |
Author
Tom Sapletta — DevOps Engineer & Systems Architect
- 💻 15+ years in DevOps, Software Development, and Systems Architecture
- 🏢 Founder & CEO at Telemonit (Portigen - edge computing power solutions)
- 🌍 Based in Germany | Open to remote collaboration
- 📚 Passionate about edge computing, hypermodularization, and automated SDLC
Support This Project
If you find this project useful, please consider supporting it:
Installation
npm install -g devlama # For global CLI usage
# or
yarn global add devlamaQuick Start
Command Line Usage
# Initialize a new project
devlama init my-project
# Generate code from a prompt
devlama generate "Create a React component that displays a counter"
# Start interactive mode
devlama
# Show version
devlama --versionProgrammatic Usage
const { DevLama } = require('devlama');
const devlama = new DevLama({
model: 'codellama', // Default model
temperature: 0.7,
});
// Generate code from a prompt
const code = await devlama.generateCode('Create a function that sorts an array of objects by a property');
console.log(code);Features
- AI-powered code generation and assistance
- Support for multiple programming languages
- Integration with Ollama's language models
- Interactive REPL for development
- Configurable model parameters
- Project scaffolding and management JSLama.generate(prompt).then(code => { console.log(code); });
## Testing
To run tests for JSLama using the PyLama ecosystem:
```bash
cd ../../tests
./run_all_tests.sh
# or for a tolerant run
./run_all_tests_tolerant.shOr, from the jslama directory:
make testProject Management
Common Makefile commands:
make install– Install dependenciesmake lint– Lint codemake test– Run testsmake build– Build projectmake clean– Clean build/depsmake format– Format codemake start– Start project (if supported)
Example: Code Generation with JSLama
const JSLama = require('jslama');
JSLama.generate('Write a function to reverse a string.').then(code => {
console.log(code);
// Output: function reverseString(str) { return str.split('').reverse().join(''); }
});JSLama is a JavaScript code generation tool that leverages Ollama's language models. It is part of the PyLama ecosystem and integrates with LogLama as the primary service for centralized logging and environment management.
