Skip to content

Jesse-wakandaisland/AlgorithmPress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AlgorithmPress

The Last Press

AlgorithmPress Logo

A Revolutionary Browser-Based Web Application Builder

Built on the DADS Stack: Decentralized API Database System

Installation β€’ Key Features β€’ Quick Start β€’ Architecture β€’ Roadmap β€’ Contributing β€’ License

GitHub stars GitHub forks GitHub license GitHub contributors

πŸš€ Introduction

AlgorithmPress is a lightweight web application builder contained in a single HTML file that you can download and run locally. It empowers developers to build sophisticated web applications that execute entirely in the browser, with no server required.

As part of the ConvoBuilder ecosystem, AlgorithmPress represents a fundamentally new approach to web application development and deployment, using our innovative DADS (Decentralized API Database System) stack.

🌟 Key Features

  • Browser-Native Execution: Build and run PHP applications directly in the browser using WebAssembly
  • Single-File Deployment: The entire development environment in one HTML file
  • Component-Based Architecture: Build complex applications from reusable components
  • PHP-WASM Integration: Run PHP code client-side with a full PHP runtime
  • Decentralized Storage: Optional integration with Cubbit for distributed data storage
  • Micro Module System: A flexible, composable approach to application structure
  • No Server Required: Develop and test applications without configuring servers or databases

πŸ“‹ System Requirements

  • A modern web browser (Chrome, Firefox, Edge, or Safari)
  • No server, database, or special software needed!

πŸ”§ Installation

Getting started with AlgorithmPress is simple:

# Clone the repository
git clone https://github.com/Jesse-wakandaisland/AlgorithmPress.git

# Navigate to the project directory
cd AlgorithmPress

# Open the HTML file in your browser
open algorithmpress.html  # On macOS
# or
xdg-open algorithmpress.html  # On Linux
# or simply double-click the file in your file explorer

Alternatively, download the latest release directly:

  1. Go to Releases
  2. Download algorithmpress.html from the latest release
  3. Open the file in your browser

πŸš€ Quick Start

Creating Your First Component

<?php
// Create a simple component
class HelloWorld {
  private $name;
  
  public function __construct($name = "World") {
    $this->name = $name;
  }
  
  public function render() {
    return "<div class='hello-component'>
      <h2>Hello, {$this->name}!</h2>
      <p>The current time is: " . date('H:i:s') . "</p>
    </div>";
  }
}

Using Local Storage

<?php
class NoteKeeper {
  private $storage;
  
  public function __construct() {
    // Initialize browser-based storage
    $this->storage = new \AP\Storage\LocalStore('notes');
  }
  
  public function saveNote($title, $content) {
    $id = uniqid();
    $this->storage->set($id, [
      'title' => $title,
      'content' => $content,
      'created' => date('Y-m-d H:i:s')
    ]);
    return $id;
  }
  
  public function getAllNotes() {
    return $this->storage->getAll() ?: [];
  }
}

Client-Server Integration

<?php
class WeatherWidget {
  public function render() {
    return "<div id='weather-widget'>
      <h3>Weather Forecast</h3>
      <div id='weather-data'>Loading...</div>
    </div>";
  }
  
  public function getClientScript() {
    return "
      // Client-side JavaScript code
      fetch('https://api.weatherapi.com/v1/current.json?key=YOUR_API_KEY&q=auto:ip')
        .then(response => response.json())
        .then(data => {
          document.getElementById('weather-data').innerHTML = `
            <p>${data.current.temp_c}Β°C in ${data.location.name}</p>
            <p>${data.current.condition.text}</p>
          `;
        });
    ";
  }
}

πŸ—οΈ Architecture

AlgorithmPress is built on the DADS (Decentralized API Database System) stack, which features:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  Browser Environment                 β”‚
β”‚                                                     β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚ Decentralizedβ”‚    β”‚    API     β”‚    β”‚ Database β”‚ β”‚
β”‚  β”‚    Storage   │◄───│  Middleware│◄───│  System  β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚          β–²                 β–²                β–²       β”‚
β”‚          β”‚                 β”‚                β”‚       β”‚
β”‚          β”‚                 β”‚                β”‚       β”‚
β”‚          β”‚    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”   β”‚       β”‚
β”‚          └────│      PHP-WASM Engine    β”‚β—„β”€β”€β”˜       β”‚
β”‚               β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β”‚
β”‚                          β–²                          β”‚
β”‚                          β”‚                          β”‚
β”‚              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”              β”‚
β”‚              β”‚    Frontend Interface  β”‚              β”‚
β”‚              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜              β”‚
β”‚                                                     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Architectural Components

  1. PHP-WASM Engine: PHP interpreter compiled to WebAssembly, enabling browser-based execution
  2. Virtual File System: In-memory file system for PHP operations
  3. Component System: Modular architecture for building complex applications
  4. Storage Layer: Multiple storage backends including local and decentralized options
  5. API Middleware: Standardized interface for data operations

πŸ“˜ Documentation

For complete documentation, visit the list below (soon):

πŸ›£οΈ Roadmap

We're actively developing AlgorithmPress with these upcoming features:

Coming in the Next 3 Months

  • App Ecosystem: A marketplace for components and templates
  • Enhanced AI Integration: Intelligent content and design assistance
  • Visual Component Builder: Create components without writing code
  • Advanced Decentralization: More powerful distributed storage capabilities
  • ConvoBuilder CMS Integration: Seamless integration with our full CMS system

Future Directions

  • Edge Computing Integration
  • Federated Identity System
  • Cross-App Communication Protocol
  • Advanced Developer Tools

πŸ”„ Version History

  • v0.1.0-alpha (Current): Initial alpha release
  • v0.2.0-alpha: Enhanced component system and storage options (Coming Soon)
  • v0.3.0-alpha: App ecosystem beta (Expected within 3 months)
  • v1.0.0: First stable release (Target: Q3 2025)

πŸ“Š Real-World Examples

AlgorithmPress is already being used to build:

  • Personal blogs and portfolios
  • Business websites
  • Internal tools and dashboards
  • Educational resources
  • Interactive presentations

🀝 Contributing

We welcome contributions to AlgorithmPress! Here's how you can help:

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/amazing-feature
  3. Commit your changes: git commit -m 'Add some amazing feature'
  4. Push to the branch: git push origin feature/amazing-feature
  5. Open a Pull Request

Please read our Contributing Guide for more details.

🌟 Contributors

πŸ“œ License

This project is licensed under the FSL License - see the (LICENSE) file for details.

πŸ”— Related Projects

  • ConvoBuilder CMS - Our upcoming full-featured CMS built on the DADS stack
  • DADS-Core - Core libraries for the Decentralized API Database System

πŸ“£ Community and Support

πŸ™ Acknowledgements

  • PHP-WASM - For their groundbreaking work on PHP in WebAssembly
  • Cubbit - For decentralized storage technology
  • All our early testers and contributors

πŸ“ Created with AlgorithmPress β€’ Made with ❀️ by the Cr8OS Team from WPWakanda, LLC

About

The Last Press - Build with PHP-WASM, Nuejs and more, locally (Alpha)

Topics

Resources

License

Stars

Watchers

Forks