AI-Native Declarative Platform for B2B Applications
Project description
Reclapp 2.3.1 - AI-Native Declarative Platform
AI-Native Declarative Platform for building autonomous B2B applications with causal reasoning, verification loops, and production-ready safety rails.
๐ Key Features
- Python CLI -
pip install -e .โreclappcommand - Full Lifecycle - Single command: prompt โ contract โ code โ service โ tests
- Contract AI 2.3 - 3-layer specification (Definition, Generation, Validation)
- 8-Stage Validation - Syntax, Schema, Assertions, Static Analysis, Tests, Quality, Security, Runtime
- Pydantic Contracts - Python-first contract definitions
- Auto-fix - Automatic package.json and tsconfig.json fixes
๐ Quick Start
Prerequisites
- Node.js 18+
- Docker & Docker Compose (optional)
- npm or yarn
Installation
# Clone repository
git clone https://github.com/softreck/reclapp.git
cd reclapp
# Install Node.js dependencies
npm install
# Install Python CLI (recommended)
pip install -e .
# Or with venv
python3 -m venv venv
source venv/bin/activate
pip install -e .
Python CLI (NEW in 2.3.1)
# After pip install -e .
reclapp --version # Show version
reclapp --help # Show help
reclapp --prompt "Create a notes app" # Full lifecycle
reclapp prompts # Show example prompts
reclapp validate # Validate Pydantic contracts
Full Lifecycle (NEW in 2.3)
# From prompt - generates contract, code, validates, and tests
./bin/reclapp-full-lifecycle.sh --prompt "Create a notes app"
# From contract file
./bin/reclapp-full-lifecycle.sh examples/contract-ai/crm-contract.ts
# With options
./bin/reclapp-full-lifecycle.sh --prompt "Create a CRM" -o ./my-app --port 4000
Contract AI Generation
# Generate from prompt
./bin/reclapp generate-ai --prompt "Create a todo app with tasks"
# Generate from contract
./bin/reclapp generate-ai examples/contract-ai/crm-contract.ts -o ./generated
Generate Application from Contract
# List available contracts
reclapp list
# Generate full application from contract
reclapp generate examples/crm/contracts/main.reclapp.ts
# Or generate and run development servers
reclapp dev examples/crm/contracts/main.reclapp.ts
Run Generated Application
# After generation, start the servers
cd examples/crm/target/api && npm install && npm run dev # API on :8080
cd examples/crm/target/frontend && npm install && npm run dev # UI on :3000
Using Docker
# Start Docker services (with auto-diagnostics)
make auto-up
# Or use standard commands
make up # Start services
make logs # View logs
make down # Stop services
# Run tests
make test
Data Source: Example apps typically use JSON fixtures under data/ and the modules/data-provider module.
๐ Project Structure
reclapp/
โโโ bin/ # CLI Tools
โ โโโ reclapp # Main Node.js CLI
โ โโโ reclapp-full-lifecycle.sh # Full lifecycle runner
โ
โโโ reclapp/ # Python CLI Package
โ โโโ __init__.py
โ โโโ cli.py # Click-based CLI
โ
โโโ src/core/contract-ai/ # Contract AI Core
โ โโโ types/ # 3-Layer types
โ โโโ generator/ # Contract generator
โ โโโ code-generator/ # Code generator (LLM)
โ โโโ validation/ # 8-stage validation pipeline
โ
โโโ examples/
โ โโโ contract-ai/ # TypeScript contracts
โ โโโ pydantic-contracts/ # Python contracts
โ โโโ full-lifecycle/ # Full lifecycle examples
โ
โโโ pyproject.toml # Python package config
โโโ package.json # Node.js dependencies
โโโ AGENTS.md # Agent specification
๐ค Contract AI - 3-Layer Specification
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Layer 1: DEFINITION โ app, entities, api โ
โ Layer 2: GENERATION โ instructions, techStack โ
โ Layer 3: VALIDATION โ assertions, tests, acceptanceโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Workflow
PROMPT โ CONTRACT โ CODE โ VALIDATE โ SERVICE โ TESTS
(LLM) (LLM) (8 stages) (Express) (CRUD)
Example Prompts
# Simple prompts
reclapp --prompt "Create a notes app"
reclapp --prompt "Create a todo app with tasks"
reclapp --prompt "Create a CRM with contacts and deals"
# From prompt files (more detailed)
reclapp --prompt "$(cat examples/prompts/01-notes-app.txt)"
reclapp --prompt "$(cat examples/prompts/03-contacts-crm.txt)" -o ./my-crm
# Or use the helper script
./bin/reclapp-from-prompt.sh examples/prompts/02-todo-app.txt
Available Prompt Files
| Prompt | Description |
|---|---|
01-notes-app.txt |
Simple notes with CRUD |
02-todo-app.txt |
Tasks with priorities and categories |
03-contacts-crm.txt |
CRM with contacts, companies, deals |
04-inventory.txt |
Stock management system |
05-booking.txt |
Reservation system |
06-blog.txt |
Blog with posts and comments |
07-hr-system.txt |
Employee management |
08-invoices.txt |
Invoice system |
09-support-tickets.txt |
Support ticket system |
10-events.txt |
Event registration |
Example Contracts
| Contract | File |
|---|---|
| CRM | examples/contract-ai/crm-contract.ts |
| Notes | examples/pydantic-contracts/contracts.py |
| Todo | examples/full-lifecycle/02-todo-app.ts |
โ Reclapp 2.3.1 - Full Lifecycle Working
๐ Status
| Component | Status |
|---|---|
Python CLI (reclapp) |
โ Working |
Shell CLI (reclapp-full-lifecycle.sh) |
โ Working |
| 8-Stage Validation | โ All Passing |
| Service Health Check | โ Working |
| CRUD Endpoint Tests | โ 2/2 Passing |
๐ Quick Test
# Install Python CLI
pip install -e .
# Run full lifecycle
reclapp --prompt "Create a todo app with tasks"
# Or use shell script
./bin/reclapp-full-lifecycle.sh --prompt "Create a notes app"
๐๏ธ Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ RECLAPP 2.3.1 โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ INPUT โ
โ โโโ Prompt ("Create a CRM system") โ
โ โโโ TypeScript Contract (*.ts) โ
โ โโโ Pydantic Contract (Python) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ CONTRACT AI (3 Layers) โ
โ โโโ Definition (app, entities, api) โ
โ โโโ Generation (instructions, techStack) โ
โ โโโ Validation (assertions, tests, acceptance) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ VALIDATION PIPELINE (8 Stages) โ
โ โโโ 1. Syntax 5. Tests โ
โ โโโ 2. Schema 6. Quality โ
โ โโโ 3. Assertions 7. Security โ
โ โโโ 4. Static 8. Runtime โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ OUTPUT โ
โ โโโ Generated API (Express.js + TypeScript) โ
โ โโโ Health Check (/health) โ
โ โโโ CRUD Endpoints (/api/v1/items) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Documentation
| Document | Description |
|---|---|
| Project Status | Current 2.3.1 status |
| Testing Guide | Testing procedures |
| AGENTS.md | Agent specification |
๐ค Contributing
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open Pull Request
๐ License
Apache 2 License - see LICENSE for details.
๐ Links
Reclapp - AI-Native Declarative Platform for Autonomous B2B Applications
Made with โค๏ธ by Softreck
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reclapp-2.3.1.tar.gz.
File metadata
- Download URL: reclapp-2.3.1.tar.gz
- Upload date:
- Size: 26.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65017f2096b69cd97dca4b0c836d01b811686e414112823a7b8c17903790fc77
|
|
| MD5 |
aeb5fbc70c036b8cf4ecbb8403b8091d
|
|
| BLAKE2b-256 |
2793f4375e4c25b45e69750be4326d9e86dfec1229a23fae6dc80da80b7e1308
|
File details
Details for the file reclapp-2.3.1-py3-none-any.whl.
File metadata
- Download URL: reclapp-2.3.1-py3-none-any.whl
- Upload date:
- Size: 32.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73c59b64169bb3f0c9c160959666db7c2b8cfa0ecc0b081d13f74b9676686ccc
|
|
| MD5 |
c10f8e871ae1c52346ebcdf4398a55fe
|
|
| BLAKE2b-256 |
cdd40da8bcf96dceb9858d8e896d93ca5aca7c5fa2c63b1e0292497983621698
|