midnight citylights
Software

Midnight Citylights develops and maintains a wide range of proprietary software, packages, and experimental frameworks authored by Alex Stevovich. Each project reflects the studio’s philosophy of clean design, scalable architecture, and long-term maintainability.

From web servers and automation systems to creative development toolkits and real-time frameworks, every release is engineered for precision, performance, and clarity. These projects form the technical foundation of the studio’s larger work — proof that elegant systems can be both powerful and enduring.

An existential dependency.

A persistent logger using SQLite for storing logs with optional retention and max entries limit.

Calculates the bit-level entropy of a string or ID space given its cardinality and length.

Detects automated or crawler requests based on User-Agent heuristics. 🚨

Caps an N-dimensional array to a maximum total volume (the product of its dimensions) while preserving proportions.

Returns the total number of possible combinations for a given cardinality and sequence length using BigInt exponentiation.

Removes duplicate characters from a string, preserving order.

Removes duplicate graphemes from a string, preserving order.

Fully featured, production-grade server back-end.

Utility for posting messages or JSON payloads to a Discord channel via webhook, with optional dry-run mode for testing.

A domain-level data container for site metadata, Open Graph information, and branding constants.

Middleware for serving HTML content in Express applications.

Express middleware to generate entropy via random bytes from Node.js crypto module.

Browser auto-refresh for Fastify, enabling seamless development.

Persistent image metadata registry built on top of scan-image-geom — provides unified storage, retrieval, and counting of image geometry data.

Minimal filesystem I/O helper with UTF-8 defaults.

List all relative file paths in a directory, with optional recursive walking.

A link and platform catalog — manages site links, social URLs, and external references.

Beautiful, modular, programmatic HTML

Recursive node transformations for Lydio.

Document object scaffold for Lydio.

Google Analytics gtag integration node for Lydio.

Direct HTML element classes for Lydio

Reusable login form node for Lydio.

Complete production grade DOM for Lydio combining HTML, meta, schema, and layout fragments.

Metadata and social meta tag generator node for Lydio.

Useful general patterns for Lydio.

JSON-LD Schema node for Lydio.

Simple and flexible SMTP email sender with dry-run support for testing.

Placeholder for the Marle project reserving the base package.

Parses Marle text into html.

Parses Marle text into a canonical JSON structure.

Parses and serializes JSON front matter in text documents.

Parses and serializes TOML front matter in text documents.

Parses and serializes YAML front matter in text documents.

A universal data substrate that can be declaratively specialized.

Convert any filesystem path to POSIX format by replacing platform-specific separators with forward slashes.

Sorts your package.json keys poshly.💎

A standards-compliant generator for producing robots.txt files.

Scans directories or files for both raster and SVG images — merging geometric metadata such as width, height, aspect ratio, orientation, format, and filesize.

Scans images within files or directories and extracts geometric metadata — width, height, orientation, aspect ratio, and format.

Scans SVG files or directories and extracts geometric metadata — width, height, aspect ratio, and orientation, with fallbacks for viewBox parsing.

A structured registry and loader for JSON-LD schema definitions and metadata entries.

Unified registry and loader for JavaScript file metadata used across site frameworks.

A standards-compliant generator for producing sitemap.xml files.

Aggregates file contents in a directory into a string, with optional recursive walking and extension filtering.

Removes the http:// or https:// prefix from a URL string.

A simplifier util for FS/IO operations.

A standards-compliant generator for producing robots.txt files.

A standards-compliant generator for producing sitemap.xml files.

A utility for parsing XML strings into a tree structure - safe for fragments and multi-root.