framework

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Detector

type Detector struct {
	// contains filtered or unexported fields
}

Detector handles framework detection from HTML content

func NewDetector

func NewDetector() *Detector

NewDetector creates a new framework detector

func (*Detector) Detect

func (d *Detector) Detect(html string, networkURLs []string) Framework

Detect analyzes HTML content and network URLs to detect the framework

func (*Detector) GetSignals

func (d *Detector) GetSignals() []string

GetSignals returns the detection signals found

type FilterConfig

type FilterConfig struct {
	URLPatterns []string // Patterns to match in full URL
	QueryParams []string // Query parameter keys to filter
}

FilterConfig contains URL patterns and query params to filter for a framework

func GetFilterConfig

func GetFilterConfig(fw Framework) FilterConfig

GetFilterConfig returns filtering rules for a specific framework

type Framework

type Framework string

Framework represents a web framework/platform

const (
	FrameworkOther     Framework = "other"
	FrameworkNextJS    Framework = "nextjs"
	FrameworkNuxtJS    Framework = "nuxtjs"
	FrameworkGatsby    Framework = "gatsby"
	FrameworkReact     Framework = "react"
	FrameworkVue       Framework = "vue"
	FrameworkAngular   Framework = "angular"
	FrameworkWordPress Framework = "wordpress"
	FrameworkWebflow   Framework = "webflow"
	FrameworkShopify   Framework = "shopify"
	FrameworkWix       Framework = "wix"
	FrameworkDrupal    Framework = "drupal"
	FrameworkJoomla    Framework = "joomla"
)

type FrameworkInfo

type FrameworkInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Category    string `json:"category"`
	Description string `json:"description"`
}

FrameworkInfo contains metadata about a framework

func GetAllFrameworks

func GetAllFrameworks() []FrameworkInfo

GetAllFrameworks returns a list of all supported frameworks with their metadata

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL