Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
APP_NAME=xCLOUD OS
APP_ENV=development
APP_URL=https://high-cde.github.io/xCLOUD-by-zdos/
API_URL=http://localhost:8080
DATABASE_URL=sqlite:///data/xcloud.db
LOG_LEVEL=info
AI_ENABLED=false
DSN_ENABLED=false
9 changes: 9 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
github: high-cde
custom:
- "https://x-zdos.it/sponsor"
- "https://ko-fi.com/zdos"
- "https://cloudx.zdos.dev/support"
message: >
Supporta lo sviluppo di xCLOUD Enterprise e contribuisci alla crescita dell’ecosistema CloudX × ZDOS.
Il progetto evolve il Developer Hub in una piattaforma moderna, modulare e orientata alle imprese.
Sponsorizzando aiuti l’espansione dei moduli Nexus, Terminal, Portal, DSN Layer e delle integrazioni enterprise.
34 changes: 34 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy xCLOUD OS to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages
cancel-in-progress: true

jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload static site
uses: actions/upload-pages-artifact@v3
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.env
.env.*
!.env.example
*.log
.DS_Store
node_modules/
coverage/
.vscode/
.idea/
secrets/
Empty file added .nojekyll
Empty file.
3 changes: 3 additions & 0 deletions BRANDING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
xCLOUD by ZDOS
Business Layer · DSN Compatible
Integrato con CloudX Portal e DSN Wallet.
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xcloud-zdos.it
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2025 Bitrix24
Copyright (c) 2025 xCLOUD

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
146 changes: 83 additions & 63 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,90 +1,110 @@
<img src="./b24devhub-header.png" alt="Bitrix24 Developer Hub" width="1195"/>
# 🚀 xCLOUD Enterprise by ZDOS

Welcome to the central hub for Bitrix24 developer tools. This repository offers a curated collection of official SDKs, UI kits, examples, and application templates to streamline your development process with the Bitrix24 platform.
![License](https://img.shields.io/badge/License-MIT-blue.svg)
![Status](https://img.shields.io/badge/Status-Active-brightgreen.svg)
![Made for ZDOS](https://img.shields.io/badge/Made%20for-ZDOS-orange.svg)

## 📚 Table of Contents
**xCLOUD Enterprise** è un fork avanzato del Bitrix24 Developer Hub, completamente rebrandizzato e ottimizzato per l'ecosistema **CloudX × ZDOS**. Questa soluzione enterprise-ready include un **DSN Layer**, **Portal Fusion**, **Nexus**, **Terminal** e pipeline di sviluppo avanzate, fornendo una piattaforma robusta per la gestione aziendale e l'innovazione tecnologica.

- [SDKs and Libraries](#sdks-and-libraries)
- [PHP SDK](#php-sdk)
- [JavaScript/Node.js SDK](#javascriptnodejs-sdk)
- [Python SDK](#python-sdk)
- [UI Tools](#ui-tools)
- [Bitrix24 UI Kit](#bitrix24-ui-kit)
- [Design Tokens](#design-tokens)
- [Icons](#icons)
- [Usage Examples](#usage-examples)
- [Application Templates](#application-templates)
- [Automation rules library](#automation-rules-library)
- [Documentation](#documentation)
Questa versione mantiene la compatibilità con l’architettura originale, ma introduce un approccio più modulare, pulito e orientato all’automazione, con un focus specifico sull'integrazione blockchain e l'intelligenza artificiale.

## SDKs and Libraries

### PHP SDK

- **b24phpsdk**: The official PHP library for interacting with the Bitrix24 REST API. It supports both OAuth tokens and incoming webhooks, with features like automatic token renewal and offline queues.

[GitHub Repository](https://github.com/bitrix24/b24phpsdk). Find more details in the [documentation](https://apidocs.bitrix24.com/api-reference/b24phpsdk/index.html)

### JavaScript/Node.js SDK

- **b24jssdk**: The official JavaScript SDK for Bitrix24 REST API, compatible with both browser and Node.js environments. It supports modern JavaScript features and offers advantages over the traditional BX24.JS library.

[GitHub Repository](https://github.com/bitrix24/b24jssdk). Find more details in the [documentation](https://bitrix24.github.io/b24jssdk/)

### Python SDK

- **b24pydk**: The official Python library for interacting with the Bitrix24 REST API (beta version). It supports both OAuth tokens and incoming webhooks, with features like automatic token renewal and batch calls.

[GitHub Repository](https://github.com/bitrix24/b24pysdk).

## UI Tools

### Bitrix24 UI Kit

- **b24ui**: A UI kit for developing web applications using the Bitrix24 REST API, built on NUXT & VUE. It provides a set of reusable components to accelerate development.

[GitHub Repository](https://github.com/bitrix24/b24ui). Find more details in the [documentation](https://bitrix24.github.io/b24ui/)
---

### Design Tokens
## ✨ Caratteristiche Principali

### 🔹 1. Compatibilità Estesa
* **CRM Completo**: Gestione clienti, vendite e marketing.
* **Gestione Attività e Progetti**: Strumenti avanzati per la pianificazione e il monitoraggio.
* **Collaborazione Integrata**: Calendari, gruppi di lavoro e pipeline personalizzabili.
* **Moduli Aziendali Standard**: Funzionalità essenziali per ogni tipo di business.

### 🔹 2. Enterprise Hardening
* **Architettura Pulita**: Struttura logica dei moduli e configurazioni centralizzate.
* **Ottimizzazione CI/CD**: Miglioramenti per deployment continui e integrazione continua.
* **Sicurezza Avanzata**: Implementazione di best practice per la protezione dei dati.

### 🔹 3. Integrazione CloudX × ZDOS
Questo fork è progettato per essere un componente chiave del tuo ecosistema:
* **CloudX Portal**: Accesso centralizzato e unificato.
* **ZDOS Automations**: Micro-servizi e workflow intelligenti.
* **DSN Wallet**: Identità digitale e firma elettronica.
* **xCLOUD Business Layer**: Strato modulare per le operazioni aziendali.

### 🔹 4. Blockchain Ready (DSN)
Supporto opzionale per l'integrazione con tecnologie blockchain:
* **Registrazione Eventi On-Chain**: Tracciabilità immutabile delle operazioni.
* **Audit Trail Distribuito**: Garanzia di trasparenza e integrità dei dati.
* **Firma Digitale**: Autenticazione sicura delle transazioni.
* **Smart Contract Aziendali**: Integrazione con logiche di business decentralizzate.

- **b24style**: Design tokens for Bitrix24 UI Kit. Provides the ability to create application interfaces that closely match the Bitrix24 user interface using Tailwind CSS utility classes.
---

[GitHub Repository](https://github.com/bitrix24/b24style). Find more details in the [documentation](https://bitrix24.github.io/b24style/)
## 🧩 Architettura

### Icons
La struttura del progetto è organizzata per facilitare lo sviluppo e la manutenzione:

- **b24icons**: The library contains SVG icons for use in the interfaces of both local and mass-market applications for Bitrix24.
```
xCLOUD-enterprise/
├── core/ # Moduli principali di xCLOUD
├── modules/ # Estensioni e plugin personalizzati
├── cloudx/ # Integrazioni specifiche con CloudX
│ ├── dsn/ # Adapter per la blockchain DSN
│ └── zdos/ # Automazioni e hooks ZDOS
├── config/ # Configurazioni centralizzate del sistema
└── docs/ # Documentazione tecnica e guide
```

[GitHub Repository](https://github.com/bitrix24/b24icons). Find more details in the [documentation](https://bitrix24.github.io/b24icons/)
---

## Usage Examples
## ⚙️ Installazione

- **b24sdk-examples**: A collection of examples demonstrating the usage of various Bitrix24 SDKs and tools in real-world scenarios.
Per iniziare con xCLOUD Enterprise, segui questi passaggi:

[GitHub Repository](https://github.com/bitrix24/b24sdk-examples). Find more details in the [documentation](https://bitrix24.github.io/b24ui/)
1. **Clona il repository**:
```bash
git clone https://github.com/high-cde/xCLOUD-enterprise.git
cd xCLOUD-enterprise
```

## Application Templates
2. **Installa le dipendenze**:
```bash
composer install
npm install
```

Ready-to-use application templates that can be deployed quickly using Docker. These templates provide a foundation for building custom business logic on top of Bitrix24.
3. **Configura l’ambiente**:
```bash
cp .env.example .env
```
Modifica il file `.env` con i parametri necessari (database, URL, configurazioni DSN blockchain opzionali).

### Automation rules library
---

[This project](https://github.com/bitrix24/app-template-automation-rules) is a fully deployable application template featuring a library of Bitrix24 automation rules. It’s designed to work both as a local solution and as a scalable application for the Bitrix24 Marketplace.
## 🔗 Integrazioni Ecosistema ZDOS

You’re getting a complete package here: the frontend is built with the UI Kit and B24JsSDK, while the backend is set up so you can simply add your own automation rule implementations without having to dig into architectural complexities. No need to reinvent the wheel — just take the foundation and customize it to fit your needs.
* **🌐 CloudX Portal**: Accesso centralizzato: [https://x-zdos.it](https://x-zdos.it)
* **🧠 ZDOS Automations**: Micro-servizi e workflow intelligenti: [https://x-zdos.it/zdos](https://x-zdos.it/zdos)
* **💳 DSN Wallet**: Identità digitale e firma: [https://wallet.x-zdos.it](https://wallet.x-zdos.it)

## Documentation
---

- **b24restdocs**: The official repository for Bitrix24 REST API documentation, offering comprehensive guides and references for developers.
## 🤝 Contributi

[GitHub Repository](https://github.com/bitrix24/b24restdocs). Read [online version](https://apidocs.bitrix24.com/)
Pull request e fork sono benvenuti. Per integrazioni avanzate con CloudX × ZDOS, si prega di contattare l’amministratore del progetto.

## Additional Resources
---

- **crest**: CRest is a minimalistic PHP library for calling Bitrix24 REST methods via webhooks and OAuth 2.0.
## 📄 Licenza

[GitHub Repository](https://github.com/bitrix-tools/crest)
Distribuito sotto licenza MIT. Vedi il file `LICENSE` per maggiori dettagli.

---

This hub aims to simplify navigation through Bitrix24's development tools, enabling you to build robust integrations and applications efficiently.
## 🧬 Roadmap

* [ ] Modulo CRM potenziato
* [ ] Dashboard CloudX unificata
* [ ] DSN Smart Contract Registry
* [ ] Automazioni ZDOS integrate
* [ ] UI rinnovata in stile neon-minimal
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
44 changes: 44 additions & 0 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
openapi: 3.0.3
info:
title: xCLOUD OS Foundation API
version: 0.1.0
description: Contract iniziale per workspace, missioni ed eventi aziendali.
paths:
/health:
get:
summary: Stato del servizio
responses:
'200':
description: Servizio disponibile
/api/v1/workspaces/{workspaceId}/missions:
get:
summary: Elenca le missioni del workspace
parameters:
- name: workspaceId
in: path
required: true
schema: {type: string}
responses:
'200': {description: Lista missioni}
'401': {description: Non autenticato}
/api/v1/workspaces/{workspaceId}/events:
post:
summary: Registra un evento operativo
parameters:
- name: workspaceId
in: path
required: true
schema: {type: string}
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [event_type]
properties:
event_type: {type: string}
payload: {type: object}
responses:
'201': {description: Evento registrato}
'401': {description: Non autenticato}
6 changes: 6 additions & 0 deletions business/onEvent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { recordOnChain } from "../services/chainAdapter.js";

export async function onBusinessEvent(type, data) {
console.log("[BUSINESS EVENT]", type, data);
await recordOnChain(type, data);
}
21 changes: 21 additions & 0 deletions config/app.example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "xCLOUD OS",
"version": "0.1.0",
"environment": "development",
"features": {
"missionControl": true,
"enterpriseGraph": true,
"crm": false,
"projects": false,
"finance": false,
"aiAgents": false,
"automations": false,
"enterpriseMemory": false,
"dsnTrustLayer": false
},
"security": {
"requireAuthentication": true,
"auditLog": true,
"defaultRole": "viewer"
}
}
8 changes: 8 additions & 0 deletions config/chain.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export const CHAIN_CONFIG = {
enabled: true,
network: "polygon",
rpcUrl: "https://polygon-rpc.com",
explorerBase: "https://polygonscan.com/tx/",
dsnTokenAddress: "0xDSN_TOKEN_ADDRESS",
businessRegistryAddress: "0xBUSINESS_REGISTRY_ADDRESS"
};
41 changes: 41 additions & 0 deletions database/schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
-- xCLOUD OS minimal domain model: portable SQLite/PostgreSQL style
CREATE TABLE IF NOT EXISTS workspaces (
id TEXT PRIMARY KEY,
name TEXT NOT NULL,
slug TEXT NOT NULL UNIQUE,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS users (
id TEXT PRIMARY KEY,
workspace_id TEXT NOT NULL REFERENCES workspaces(id),
email TEXT NOT NULL,
display_name TEXT NOT NULL,
role TEXT NOT NULL DEFAULT 'viewer',
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE(workspace_id, email)
);

CREATE TABLE IF NOT EXISTS missions (
id TEXT PRIMARY KEY,
workspace_id TEXT NOT NULL REFERENCES workspaces(id),
title TEXT NOT NULL,
domain TEXT NOT NULL,
status TEXT NOT NULL DEFAULT 'planned',
progress INTEGER NOT NULL DEFAULT 0 CHECK(progress BETWEEN 0 AND 100),
owner_id TEXT REFERENCES users(id),
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE IF NOT EXISTS events (
id TEXT PRIMARY KEY,
workspace_id TEXT NOT NULL REFERENCES workspaces(id),
event_type TEXT NOT NULL,
actor_id TEXT REFERENCES users(id),
payload_json TEXT NOT NULL DEFAULT '{}',
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX IF NOT EXISTS idx_missions_workspace ON missions(workspace_id);
CREATE INDEX IF NOT EXISTS idx_events_workspace_time ON events(workspace_id, created_at);
Loading