awesome-repositories.com
ब्लॉग
MCP
awesome-repositories.com

AI-संचालित खोज के साथ बेहतरीन ओपन-सोर्स रिपॉजिटरी खोजें।

एक्सप्लोर करेंक्यूरेटेड खोजेंओपन-सोर्स विकल्पसेल्फ-होस्टेड सॉफ्टवेयरब्लॉगसाइटमैप
प्रोजेक्टMCP सर्वरहमारे बारे मेंहम रैंकिंग कैसे करते हैंप्रेस
कानूनीगोपनीयताशर्तें
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
visionmedia avatar

visionmedia/page.js

0
View on GitHub↗
7,681 स्टार्स·684 फोर्क्स·JavaScript·13 व्यूज़visionmedia.github.com/page.js↗

Page.js

page.js is a client-side JavaScript router for single-page applications that maps URL patterns to executable functions. It functions as a navigation engine and browser history manager, implementing a middleware-based path-mapping system similar to the Express web framework.

The library distinguishes itself through an Express-style router model, utilizing a middleware callback chain and a shared context object to pass data between navigation handlers. It supports advanced window management, allowing for multiple router instances to handle navigation independently across different windows or embedded iframes.

The routing surface covers regex-based path matching, URL parameter extraction, and programmatic navigation. It includes support for hashbang URLs, route redirection, and lifecycle hooks such as exit callbacks for state preservation. Global route middleware provides a mechanism to execute universal logic across all transitions.

Configuration options allow for the definition of base path prefixes and the toggling of browser history binding to control how the application intercepts click events.

Features

  • Route-to-Callback Mapping - Maps specific URL paths or patterns to executable functions that run whenever the browser matches that path.
  • Client-side Routing - Provides a framework for managing navigation and view transitions in single-page applications.
  • Route Pattern Matching - Uses regular expression patterns to map URL paths to specific executable handler functions.
  • Route Middleware - Registers global callbacks that execute on every route change to perform universal tasks.
  • Context Sharing - Utilizes a shared context object to pass data and state between different navigation middleware handlers.
  • Single Page Applications - Manages dynamic content updates and browser history transitions for single-page application architectures.
  • View-to-URL Mapping - Associates URL patterns with executable functions to update application state during client-side navigation.
  • Browser History Management - Provides utilities to synchronize application state with browser history and fragment identifiers.
  • Navigation Interception - Intercepts browser navigation events and click actions to update the UI without reloading the page.
  • Navigation Middleware - Implements middleware pipelines to execute global logic and authentication checks during navigation transitions.
  • Client-Side Routers - Functions as a client-side routing library that maps URL patterns to executable functions in the browser.
  • Express-Style Routers - Implements a routing system based on the middleware callback chain and path-matching patterns of the Express framework.
  • Middleware Chains - Implements an Express-style middleware chain to process navigation requests in sequence.
  • URL Parameter Extraction - Extracts named or indexed variables from URL paths using regular expressions or wildcards to drive application logic.
  • Browser History State Caching - Saves context data to browser history to preserve page content and resources when the user navigates backward.
  • Router Instance Binding - Allows binding independent routing logic to different window or iframe objects to manage separate navigation streams.
  • Iframe Routing Management - Enables independent URL mapping and navigation control within embedded windows or iframes.
  • Navigation - Executes specific callbacks upon navigating away from a path to perform cleanup or preserve application state.
  • Context Object Passing - Implements a shared context object that is passed through the route execution chain to maintain state between handlers.
  • Iframe - Manages navigation and URL mapping within a specific window or iframe independently from the primary browser window.
  • Multi-Window Router Instances - Creates separate router instances to handle navigation independently across different windows or embedded iframes.
  • Hash-Based Routing - Supports client-side navigation using URL hash fragments to switch views without triggering full page reloads.
  • Programmatic Navigation - Provides APIs to trigger route changes programmatically via code.
  • Hashbang Routing - Supports routing via fragment identifiers starting with #! to maintain navigation while preserving clean URL structures.
  • Redirection Rules - Implements rules to redirect users from one URL path to another with optional history cleanup.
  • Routing - Small client-side router inspired by Express.
  • Routing Libraries - Micro client-side router inspired by Express.
  • 路由和链接(Routing And URLs) - Listed in the “路由和链接(Routing And URLs)” section of the Awesome Frontend awesome list.

स्टार हिस्ट्री

visionmedia/page.js के लिए स्टार हिस्ट्री चार्टvisionmedia/page.js के लिए स्टार हिस्ट्री चार्ट

AI सर्च

और अधिक बेहतरीन रिपॉजिटरी खोजें

अपनी ज़रूरत को सरल भाषा में बताएं — AI हजारों क्यूरेटेड ओपन-सोर्स प्रोजेक्ट्स को प्रासंगिकता के आधार पर रैंक करता है।

Start searching with AI

Page.js के ओपन-सोर्स विकल्प

समान ओपन-सोर्स प्रोजेक्ट्स, जो Page.js के साथ साझा की गई सुविधाओं के आधार पर रैंक किए गए हैं।
  • flatiron/directorflatiron का अवतार

    flatiron/director

    5,575GitHub पर देखें↗

    Director is a routing library for JavaScript that handles URL and command-line pattern matching across client-side, server-side, and CLI environments. It provides a unified approach to defining routes as nested object literals, where each key maps to a URL segment and its handler, supporting both hash fragment monitoring and the HTML5 History API for browser navigation without page reloads. The library distinguishes itself through its ability to operate in multiple contexts with a single routing paradigm. It supports asynchronous handler queue execution for sequential tasks like authenticatio

    JavaScript
    GitHub पर देखें↗5,575
  • vuejs/vue-routervuejs का अवतार

    vuejs/vue-router

    18,898GitHub पर देखें↗

    Vue.js Client-Side Router is a routing library that maps browser URLs to Vue.js components to enable the creation of single-page applications. It functions as a navigation engine that manages browser history and URL state to allow page transitions without full browser reloads. The system utilizes a nested route manager to render hierarchical views that match complex URL structures. It includes navigation guard middleware to intercept, validate, or redirect route transitions before components are rendered. A client-side history handler synchronizes application state with the browser URL using

    JavaScript
    GitHub पर देखें↗18,898
  • reacttraining/react-routerReactTraining का अवतार

    ReactTraining/react-router

    56,473GitHub पर देखें↗

    React Router is a client-side routing library for React that maps browser URLs to specific user interface components. It functions as a declarative navigation framework used to manage application state and navigation paths within single-page applications. The library handles the extraction of dynamic URL parameters to render content based on the current browser path. It synchronizes application state with the browser URL, enabling the use of the back and forward buttons and allowing for bookmarking. The framework covers declarative UI navigation and browser history management. It employs URL

    TypeScript
    GitHub पर देखें↗56,473
  • choojs/choochoojs का अवतार

    choojs/choo

    6,767GitHub पर देखें↗

    Choo is a minimalist frontend framework providing a tiny foundation for building web applications. It functions as an event-driven application core that decouples business logic from rendering and includes a client-side router to manage browser history and URL mapping without page reloads. The project distinguishes itself through an architecture that combines a server-side rendering engine for generating static HTML strings with a stateful UI component library. This allows for the creation of self-contained interface elements that maintain internal data and persist across global renders. The

    JavaScriptchoodominterface
    GitHub पर देखें↗6,767
Page.js के सभी 30 विकल्प देखें→

अक्सर पूछे जाने वाले प्रश्न

visionmedia/page.js क्या करता है?

page.js is a client-side JavaScript router for single-page applications that maps URL patterns to executable functions. It functions as a navigation engine and browser history manager, implementing a middleware-based path-mapping system similar to the Express web framework.

visionmedia/page.js की मुख्य विशेषताएं क्या हैं?

visionmedia/page.js की मुख्य विशेषताएं हैं: Route-to-Callback Mapping, Client-side Routing, Route Pattern Matching, Route Middleware, Context Sharing, Single Page Applications, View-to-URL Mapping, Browser History Management।

visionmedia/page.js के कुछ ओपन-सोर्स विकल्प क्या हैं?

visionmedia/page.js के ओपन-सोर्स विकल्पों में शामिल हैं: flatiron/director — Director is a routing library for JavaScript that handles URL and command-line pattern matching across client-side,… vuejs/vue-router — Vue.js Client-Side Router is a routing library that maps browser URLs to Vue.js components to enable the creation of… reacttraining/react-router — React Router is a client-side routing library for React that maps browser URLs to specific user interface components.… choojs/choo — Choo is a minimalist frontend framework providing a tiny foundation for building web applications. It functions as an… reactjs/react-router-tutorial — This project is a client-side routing tutorial and learning resource for integrating routing into React web… lhorie/mithril.js — Mithril.js is a JavaScript framework for building single page applications. It functions as a virtual DOM library and…