Production-ready API for reading, editing, and managing code. Every operation is cryptographically signed with BSV-ECDSA-DER for complete verification.
List all files in your workspace with metadata and cryptographic signatures.
GET /workspace/index
Read file contents with automatic encoding detection and size validation.
GET /file/read
Generate intelligent code diffs with LLM assistance and unified diff format.
POST /file/edit
Safely write changes with automatic backup and rollback capabilities.
POST /file/apply
Cryptographically sign any operation with BSV-ECDSA-DER algorithm.
POST /ai/sign-operation
Independently verify all cryptographic signatures for complete trust.
POST /ai/verify-signature
{
"message": "Select an endpoint and click 'Run Request' to see the response",
"tip": "Try /workspace/index first to see all files"
}
# Install dependencies
npm install @smartledger/lumen-core @smartledger/lumen-signatures @smartledger/lumen-llm
# Or use the Docker image
docker pull codenlighten/lumencode:latest
// List workspace files
const response = await fetch('http://localhost:5000/workspace/index');
const data = await response.json();
// Read a file
const file = await fetch('http://localhost:5000/file/read?path=package.json');
const content = await file.json();
// Verify signature
const verified = await fetch('http://localhost:5000/ai/verify-signature', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ signedData: data._signature })
});
Node.js 18+
Express.js
OpenAI GPT-4
BSV-ECDSA
Docker