Welcome to StoneJS Framework

This is a comprehensive demonstration of the StoneJS Framework, a Node.js web framework with component-based architecture. Explore the features through the navigation menu above.

What is StoneJS Framework?

StoneJS Framework brings the power of component-based web development to Node.js with features like:

Quick Start

Here's how to create a simple StoneJS application:

const StoneJS = require('stonejs-framework'); const app = new StoneJS({ root: './pages', port: 3000, autoReload: true // Enable file watching in development }); app.listen();

Session Information

Your Session Data:

Request Information

The framework provides access to request data through the global context:

Method: GET Path: /demo URL: /demo User Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])

Current Context

This page was rendered with the following context:

Demo Structure

Note: This demo folder is located at pages/demo/ in your project. It's just regular content served by the framework, demonstrating how you can organize your own application.

When deploying to production, you can either:

Getting Started

📚 NEW: Comprehensive Developer Guide

All StoneJS features, APIs, and best practices in one place. Perfect for building your first project!

View Developer Guide →

Quick Links:

  1. 📘 Getting Started Guide - Install and set up your first application
  2. ✨ Framework Features - See all capabilities at a glance
  3. 🚀 Deployment Guide - Deploy to production

Core Concepts

  1. Autohandlers - Hierarchical layouts and automatic wrapping
  2. Dhandlers - Dynamic routing and REST APIs
  3. Include System - Reusable components
  4. Section Tags - Organize code with <%%doc>, <%%once>, <%%init>, <%%cleanup>, <%%js>
  5. Global Context - Share data across components

Features & Integration

  1. Session Management - Interactive session demo
  2. Caching System - Component & data caching with cacheSelf() and remember()
  3. Database Integration - Query PostgreSQL database
  4. NPM Modules - Use Node.js modules in your pages
  5. API Demo - REST API documentation and examples

Resources

  1. Back to App Home - Return to your application's home page
  2. GitHub Repository - Source code and issues
  3. Production Deployment - Deploy your app
Note: This is a demonstration application. In production, make sure to configure proper security settings, database connections, and session storage.