qmetrics.net

Fresnel

SSR-friendly React responsive layout components

Frameworks & PlatformsDesktop/CLI app
Fresnel screenshot

@artsy/fresnel declares breakpoint-based React layouts with CSS media queries so server-rendered pages show the correct layout before JavaScript loads.

Overview

@artsy/fresnel brings CSS media-query thinking into React components for responsive UIs. You define named breakpoints and interaction states, then wrap subtrees in Media components that render only when those queries match, similar to declarative @media rules in stylesheets.

During server-side rendering, markup for all configured breakpoints is emitted and hidden with plain CSS until the browser’s viewport matches. That lets users see the correct mobile or desktop structure while HTML streams in, before React hydrates. After load, matchMedia narrows which branches stay mounted so hidden components do not run lifecycle side effects such as duplicate analytics calls.

The API centers on createMedia to define breakpoints, MediaContextProvider at the app root, Media wrappers with props like at, lessThan, greaterThan, between, and onlyMatch to limit which queries apply. createMediaStyle injects the SSR stylesheet into the document head. The library is used with Next.js, Gatsby, and includes a gatsby-plugin-fresnel for configuration.

Artsy developed it to pair server rendering with responsive design where user-agent sniffing alone is unreliable. Trade-offs include larger initial HTML when all breakpoints ship from the server, offset by client-side cleanup after hydration.

Key features

  • Declarative breakpoint Media components
  • SSR-safe CSS visibility rules
  • createMedia breakpoint definitions
  • matchMedia pruning after hydration
  • Pointer hover interaction queries
  • createMediaStyle for document head
  • Next.js and Gatsby examples
  • onlyMatch query filtering

Use cases

  • Server-rendered responsive React sites
  • Separate mobile and desktop layouts
  • Next.js hybrid static rendering
  • Avoiding duplicate hidden component effects

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT