API Reference nex_core v#0.4.3

Copy Markdown

Modules

Nex

Nex - A minimalist Elixir web framework powered by HTMX.

CSRF (Cross-Site Request Forgery) protection for Nex applications.

Centralized configuration access for Nex framework.

Cookie read/write helpers for Nex actions and API handlers.

Server-side helpers for the Datastar hypermedia framework.

Environment variable management.

One-time flash messages for Nex applications.

Pipeline-friendly functions for generating HTMX responses.

Request handler that dispatches to Pages and API modules.

Common formatting helpers automatically imported into all Nex page and component modules.

WebSocket handler for live reload functionality. Uses Phoenix.PubSub to receive file change notifications.

Plug pipeline middleware support for Nex applications.

ETS-based sliding window rate limiting for Nex applications.

Plug middleware that applies rate limiting based on client IP.

Hot code reloading for Nex development.

Standardized Request object for API handlers.

Pipeline-style response builder for API routes.

Standardized Response object.

Discovers and matches dynamic routes from file system structure.

Router that discovers and dispatches routes from src/ directory.

Session-scoped state management — persists across page navigations for the same browser session.

Background worker that periodically cleans up expired session entries from ETS. Runs every 10 minutes. Completely transparent to users.

Page-scoped state management for Nex applications.

Framework-level supervision tree responsible for managing Nex framework's core processes.

File upload handling for Nex applications.

Shared utility functions used across the Nex framework.

Params validation for Nex applications.

User-level WebSocket support for Nex applications.

Mix Tasks

Start Nex development server.

Start Nex production server.