skillssh

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps the skills.sh API

func NewClient

func NewClient() *Client

NewClient creates a new skills.sh client

func (*Client) Search

func (c *Client) Search(query string, limit int) (*SearchResponse, error)

Search queries the skills.sh API for skills matching the query

type SearchResponse

type SearchResponse struct {
	Query      string  `json:"query"`
	SearchType string  `json:"searchType"`
	Skills     []Skill `json:"skills"`
	Count      int     `json:"count"`
	DurationMs int     `json:"duration_ms"`
}

SearchResponse represents the API response from /search

type Skill

type Skill struct {
	ID       string `json:"id"`
	SkillID  string `json:"skillId"`
	Name     string `json:"name"`
	Installs int    `json:"installs"`
	Source   string `json:"source"`
}

Skill represents a skill from the search results

Jump to

Keyboard shortcuts

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