Build Your IDE with Cryptographic Trust

Production-ready API for reading, editing, and managing code. Every operation is cryptographically signed with BSV-ECDSA-DER for complete verification.

Phase 1 Complete Cryptographically Signed

Phase 1 Features

Workspace Indexing

List all files in your workspace with metadata and cryptographic signatures.

GET /workspace/index

File Reading

Read file contents with automatic encoding detection and size validation.

GET /file/read

AI-Powered Diff Generation

Generate intelligent code diffs with LLM assistance and unified diff format.

POST /file/edit

File Writing

Safely write changes with automatic backup and rollback capabilities.

POST /file/apply

Operation Signing

Cryptographically sign any operation with BSV-ECDSA-DER algorithm.

POST /ai/sign-operation

Signature Verification

Independently verify all cryptographic signatures for complete trust.

POST /ai/verify-signature

Try It Live

Interactive Demo

Response

{
  "message": "Select an endpoint and click 'Run Request' to see the response",
  "tip": "Try /workspace/index first to see all files"
}

Quick Start

Installation

# Install dependencies
npm install @smartledger/lumen-core @smartledger/lumen-signatures @smartledger/lumen-llm

# Or use the Docker image
docker pull codenlighten/lumencode:latest

Basic Usage

// 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 })
});

Built With

Node.js 18+

Express.js

OpenAI GPT-4

BSV-ECDSA

Docker