Skip to main content

AI-Native Declarative Platform for B2B Applications

Project description

reclapp.png

Reclapp 2.3.1 - AI-Native Declarative Platform

Version License TypeScript Node Python

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 . โ†’ reclapp command
  • 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

  1. Fork the repository
  2. Create feature branch (git checkout -b feature/amazing)
  3. Commit changes (git commit -m 'Add amazing feature')
  4. Push to branch (git push origin feature/amazing)
  5. 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

reclapp-2.3.1.tar.gz (26.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reclapp-2.3.1-py3-none-any.whl (32.6 kB view details)

Uploaded Python 3

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

Hashes for reclapp-2.3.1.tar.gz
Algorithm Hash digest
SHA256 65017f2096b69cd97dca4b0c836d01b811686e414112823a7b8c17903790fc77
MD5 aeb5fbc70c036b8cf4ecbb8403b8091d
BLAKE2b-256 2793f4375e4c25b45e69750be4326d9e86dfec1229a23fae6dc80da80b7e1308

See more details on using hashes here.

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

Hashes for reclapp-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73c59b64169bb3f0c9c160959666db7c2b8cfa0ecc0b081d13f74b9676686ccc
MD5 c10f8e871ae1c52346ebcdf4398a55fe
BLAKE2b-256 cdd40da8bcf96dceb9858d8e896d93ca5aca7c5fa2c63b1e0292497983621698

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page