Overview of Nextra framework
Nextra is a framework built on top of Next.js designed for creating content-focused websites. It leverages Next.js features while providing specialized tools to easily create content using Markdown.
website·Indexed 30 days ago
https://hyperse-io.github.io/trackA framework built on top of Next.js for creating content-focused websites. Features include support for MDX, TypeScript, Tailwind CSS, LaTeX (via KaTeX), Mermaid diagrams, and a built-in search engine. Version 4.0 is available.
Nextra is a flexible site generation framework built with Next.js and MDX. It provides several built-in capabilities for documentation and websites:
next/link and next/image to prevent layout shift and slow navigation.@hyperse-hub/track-plugin-facebook plugin to track when a person donates funds to an organization or cause. The donation event parameters are optional and can be defined by the user.npm install @hyperse-hub/track-plugin-facebook@hyperse-hub/track-plugin-facebook plugin to track instances where a user searches for a physical store location via a website or app, indicating an intention to visit.AdapterBuilder class is a factory used to create a new adapter instance for tracking events. It allows developers to configure the adapter's behavior through a series of hooks that define how events are processed. The process concludes with the .build() method, which returns the configured adapter instance.const adapter = adapterBuilder.build();@hyperse-hub/track-plugin-common plugin.standard_goods_item type from @hyperse-hub/track-plugin-common is used to provide detailed information about a product. To be valid, an item must include at least one of item_id or item_name.interface StandardGoodsItem {
item_id?: string; // Required if item_name is missing
item_name?: string; // Required if item_id is missing
affiliation?: string; // Supplying company or store location
coupon?: string; // Item-level coupon code
discount?: number; // Unit monetary discount
index?: number; // Position in a list
item_brand?: string;
item_category?: string; // Primary category
item_category2?: string; // Second category hierarchy
item_category3?: string; // Third category hierarchy
item_category4?: string; // Fourth category hierarchy
item_category5?: string; // Fifth category hierarchy
item_list_id?: string; // ID of the list containing the item
item_list_name?: string; // Name of the list containing the item
item_variant?: string; // Unique code or description for item options
location_id?: string; // Physical store location (e.g., Google Place ID)
price?: number; // Unit price (discounted price if applicable)
quantity?: number;
image_url?: string;
url?: string; // Product page URL
compare_at_price?: number; // Original price for comparison
row_total?: number; // Total price (price * quantity)
}The @hyperse/track library uses a composable architecture to manage analytics integration. Key components include:
BaseAdapter: The foundation for creating analytics adapters.AdapterBuilder: Used to construct and configure specific platform adapters.TrackBuilder: The primary API for integrating the tracking engine into modern stacks like React.