Versions in this module Expand all Collapse all v0 v0.2.1 Jul 25, 2026 v0.2.0 Jul 25, 2026 Changes in this version + const AvatarURL + const BaseURL + const CodeLoad + const DefaultMinTrust + const FactAvatar + const FactCommits + const FactCount + const FactCreated + const FactDescription + const FactForks + const FactHomepage + const FactName + const FactStars + const FactState + const FactURI + const FactUpdated + const FactWatchers + const FormatJSONLD + const FormatNQuads + const FormatNT + const FormatTurtle + const GistRaw + const GistURL + const KindAction + const KindAdvisory + const KindBranch + const KindCommit + const KindCompare + const KindContribution + const KindContributor + const KindDiscussion + const KindEvent + const KindFile + const KindGist + const KindIssue + const KindLabel + const KindMilestone + const KindOrg + const KindPR + const KindPackage + const KindRelease + const KindRepo + const KindTag + const KindTopic + const KindTree + const KindUser + const KindWiki + const NSDoap + const NSFoaf + const NSGH + const NSGHR + const NSRdf + const NSRdfs + const NSSchema + const NSXsd + const OpenGraph + const PredAssignedTo + const PredAuthoredBy + const PredBelongsToPackage + const PredClosedBy + const PredCloses + const PredCommittedBy + const PredContributedTo + const PredDependsOn + const PredDuplicateOf + const PredFollows + const PredForkOf + const PredFromBranch + const PredHasLabel + const PredHasTopic + const PredInMilestone + const PredLicensedUnder + const PredLinkedTo + const PredMemberOf + const PredMergedBy + const PredMirrorOf + const PredOwnedBy + const PredParentOf + const PredPartOf + const PredPointsAt + const PredReactedWith + const PredReferences + const PredRelatedTopic + const PredReviewRequestedFrom + const PredReviewedBy + const PredSponsors + const PredStarredBy + const PredSubIssueOf + const PredTargetsBranch + const PredTemplateOf + const PredUsedBy + const PredWrittenIn + const RawURL + const Scheme + const SearchCode + const SearchCommits + const SearchDiscussions + const SearchIssues + const SearchMarket + const SearchPackages + const SearchPulls + const SearchRepos + const SearchTopics + const SearchUsers + const SearchWikis + const SrcFeed + const SrcHTML + const SrcID + const SrcPayload + const SrcText + const StatusFail + const StatusOK + const StatusWarn + const TypeBoolean + const TypeDateTime + const TypeDecimal + const TypeInteger + const UserAgentBase + var DefaultFollow = []string + var Defaults = Config + var Kinds = []string + var LiteralPredicates = map[string]bool + var RDFFormats = []string + var Routes = []RouteInfo + var SearchTypes = []string + var SocialPredicates = []string + var TrustLevels = []string + func Classify(input string) (kind, id string, err error) + func DefaultCacheDir() string + func DomainDefaults(c *kit.Config) + func Extract(rec any) (Node, []Edge, []Fact) + func IRI(uri string) string + func Locate(kind, id string) (string, error) + func Page(parts ...string) string + func RepoOf(kind, id string) (string, bool) + func ResolveRef(want, input string) (string, error) + func ResolveRepo(input string) (string, error) + func SortEdges(edges []Edge) + func SplitPathID(id string) (repo, ref, path string, ok bool) + func SplitRepo(id string) (owner, name string, ok bool) + func SplitThreadID(id string) (repo string, num string, ok bool) + func Streams(format string) bool + func TrustAtLeast(source, min string) bool + func URI(kind, id string) string + func WriteRDF(w io.Writer, g *Graph, o RDFOptions) error + type Account struct + Achievements []string + AvatarURL string + Bio string + Company string + CreatedAt *time.Time + DatabaseID *int + Email string + Followers *int + FollowersDisplay string + Following *int + IsHireable bool + IsVerified bool + Location string + Login string + Name string + NodeID string + Organizations []string + PackageCount *int + PinnedRepos []string + ProjectCount *int + Pronouns string + ReadmeHTML string + ReadmeText string + RepoCount *int + SocialImageURL string + SocialLinks []string + Sponsorable bool + SponsoringCount *int + Starred *int + Type string + Website string + type Action struct + ByGitHub bool + CompanyURL string + DependentCount *int + Description string + DocumentationURL string + ExtendedDescription string + FullDescription string + Highlights []string + IconColor string + IconName string + InstallationCount *int + IsFeatured bool + IsFree bool + IsRecommended bool + IsVerifiedOwner bool + ListingID *int + LogoURL string + Name string + Owner string + Path string + PricingURL string + PrimaryCategory string + PrivacyPolicyURL string + RepositoryID *int + SecondaryCategory string + ShortDescription string + Slug string + Stars *int + State string + SupportURL string + TermsURL string + Type string + type Actor struct + AvatarURL string + DatabaseID *int + Login string + Name string + NodeID string + Type string + URI string + URL string + func (a Actor) String() string + type Asset struct + ContentType string + Digest string + DownloadCount *int + Label string + Name string + Size *int64 + SizeDisplay string + URL string + UpdatedAt *time.Time + type Base struct + Extra json.RawMessage + ID string + Kind string + Sources []string + URI string + URL string + Via map[string]string + type BlobOptions struct + Content bool + Ref string + Styled bool + type Check struct + Detail string + Name string + Status string + type Client struct + CacheDir string + CacheTTL time.Duration + Deep bool + HTTP *http.Client + NoCache bool + Rate time.Duration + Retries int + UserAgent string + Verbose bool + Workers int + func NewClient(cfg Config) *Client + func (c *Client) Account(ctx context.Context, login string) (*Account, error) + func (c *Client) Activity(ctx context.Context, ref string, limit int, emit func(Event) error) error + func (c *Client) Archive(ctx context.Context, repo, ref, format string) (io.ReadCloser, error) + func (c *Client) Blob(ctx context.Context, repo, path string, opts BlobOptions) (*File, error) + func (c *Client) Branches(ctx context.Context, repo string, opts RefOptions, emit func(GitRef) error) error + func (c *Client) CommitInfo(ctx context.Context, repo, sha string, opts CommitInfoOptions) (*Commit, error) + func (c *Client) Commits(ctx context.Context, repo string, opts CommitOptions, emit func(Commit) error) error + func (c *Client) CompareRefs(ctx context.Context, repo, base, head string, opts CompareOptions) (*Compare, error) + func (c *Client) Contributions(ctx context.Context, login string, year int, emit func(ContributionDay) error) error + func (c *Client) Contributors(ctx context.Context, repo string, opts ContributorOptions, ...) error + func (c *Client) Crawl(ctx context.Context, seed string, o CrawlOptions, sink CrawlSink) error + func (c *Client) DefaultBranch(ctx context.Context, repo string) (string, error) + func (c *Client) Dependencies(ctx context.Context, repo string, limit int, emit func(Dependency) error) error + func (c *Client) Dependents(ctx context.Context, repo string, limit int, emit func(Dependent) error) error + func (c *Client) Diff(ctx context.Context, url string) (string, error) + func (c *Client) Discussion(ctx context.Context, repo string, number int) (*Discussion, error) + func (c *Client) Doctor(ctx context.Context, emit func(*Check) error) error + func (c *Client) Download(ctx context.Context, repo, ref, path string, w io.Writer) (int64, error) + func (c *Client) Estimate(ctx context.Context, seed string, o CrawlOptions) (*CrawlPlan, error) + func (c *Client) Followers(ctx context.Context, login string, limit int, emit func(Account) error) error + func (c *Client) Following(ctx context.Context, login string, limit int, emit func(Account) error) error + func (c *Client) Forks(ctx context.Context, repo string, limit int, emit func(Repo) error) error + func (c *Client) Get(ctx context.Context, rawURL string, s Surface) (*Response, error) + func (c *Client) GetHTML(ctx context.Context, rawURL string) (*Response, error) + func (c *Client) GetJSON(ctx context.Context, rawURL string, s Surface, v any) (*Response, error) + func (c *Client) Gist(ctx context.Context, id string, withContent bool) (*Gist, error) + func (c *Client) Gists(ctx context.Context, login string, limit int, emit func(Gist) error) error + func (c *Client) GraphOf(ctx context.Context, kind, id string) (*Graph, error) + func (c *Client) GraphOfRef(ctx context.Context, ref string) (string, string, *Graph, error) + func (c *Client) Head(ctx context.Context, url string) (http.Header, error) + func (c *Client) Issue(ctx context.Context, repo string, number int) (*Issue, error) + func (c *Client) Languages(ctx context.Context, repo string, emit func(LanguageShare) error) error + func (c *Client) Members(ctx context.Context, login string, limit int, emit func(Account) error) error + func (c *Client) Org(ctx context.Context, login string) (*Org, error) + func (c *Client) Page(ctx context.Context, rawURL string) (*page.Page, error) + func (c *Client) Patch(ctx context.Context, url string) (string, error) + func (c *Client) Poll(ctx context.Context, rawURL string, s Surface) (*Response, error) + func (c *Client) PullCommits(ctx context.Context, repo string, number int, limit int, ...) error + func (c *Client) PullRequest(ctx context.Context, repo string, number int) (*PullRequest, error) + func (c *Client) Raw(ctx context.Context, repo, ref, path string) ([]byte, error) + func (c *Client) Refs(ctx context.Context, repo string, opts RefOptions, emit func(GitRef) error) error + func (c *Client) Release(ctx context.Context, repo, tag string, opts ReleaseOptions) (*Release, error) + func (c *Client) Releases(ctx context.Context, repo string, opts ReleaseOptions, ...) error + func (c *Client) Repo(ctx context.Context, id string, opts RepoOptions) (*Repo, error) + func (c *Client) ReposAsShown(ctx context.Context, login string, limit int, emit func(Repo) error) error + func (c *Client) SearchAccounts(ctx context.Context, query string, limit int, emit func(Account) error) error + func (c *Client) SearchCodeBy(context.Context, string, int, func(File) error) error + func (c *Client) SearchCommitsBy(ctx context.Context, query string, limit int, emit func(Commit) error) error + func (c *Client) SearchDiscussionsBy(ctx context.Context, query string, limit int, emit func(Discussion) error) error + func (c *Client) SearchIssuesAndPulls(ctx context.Context, query, typ string, limit int, emit func(Thread) error) error + func (c *Client) SearchMarketplace(ctx context.Context, query string, limit int, emit func(Action) error) error + func (c *Client) SearchPackagesBy(ctx context.Context, query string, limit int, emit func(Package) error) error + func (c *Client) SearchRepositories(ctx context.Context, query string, limit int, emit func(Repo) error) error + func (c *Client) SearchTopicsBy(ctx context.Context, query string, limit int, emit func(Topic) error) error + func (c *Client) SearchWikisBy(ctx context.Context, query string, limit int, emit func(WikiPage) error) error + func (c *Client) Starred(ctx context.Context, login string, limit int, emit func(Repo) error) error + func (c *Client) Stats(ctx context.Context, repo string) (*RepoStats, error) + func (c *Client) Stream(ctx context.Context, rawURL string) (io.ReadCloser, http.Header, error) + func (c *Client) Tags(ctx context.Context, repo string, opts RefOptions, emit func(GitRef) error) error + func (c *Client) Timeline(ctx context.Context, repo string, number int, limit int, ...) error + func (c *Client) TopicPage(ctx context.Context, slug string) (*Topic, error) + func (c *Client) Tree(ctx context.Context, repo, path string, opts TreeOptions, ...) error + func (c *Client) Trending(ctx context.Context, opts TrendingOptions, emit func(Trending) error) error + func (c *Client) TrendingDevelopers(ctx context.Context, opts TrendingOptions, emit func(Account) error) error + func (c *Client) VerifyCommits(ctx context.Context, repo string, commits []*Commit) error + type Commit struct + Additions *int + AuthoredAt *time.Time + Authors []Actor + Body string + BodyHTML string + CommentCount *int + CommittedAt *time.Time + Committer *Actor + DateGroup string + Deletions *int + Files []FileChange + HasSignature bool + IssueRefs []ThreadRef + KeyExpired bool + KeyID string + NodeID string + Parents []string + PushedAt *time.Time + Pusher *Actor + Repo string + SHA string + SignedByGitHub bool + StatusRollup string + StatusSummary string + Subject string + SubjectHighlight string + Verification string + VerificationReason string + type CommitInfoOptions struct + Files bool + Patch bool + type CommitOptions struct + Author string + Limit int + Path string + Ref string + Since string + Until string + type Compare struct + Additions int + BaseRef string + CommitCount int + Commits []Commit + Deletions int + DiffURL string + FileCount int + Files []FileChange + HeadRef string + Patch string + PatchURL string + Repo string + type CompareOptions struct + Files bool + Patch bool + type Config struct + CacheDir string + CacheTTL time.Duration + Deep bool + NoCache bool + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + Workers int + type ContributionDay struct + Count int + Date time.Time + Level int + Login string + type Contributor struct + Additions *int + AvatarURL string + Commits *int + DatabaseID *int + Deletions *int + FirstWeek *time.Time + LastWeek *time.Time + Login string + Repo string + Weeks []ContributorWeek + type ContributorOptions struct + Limit int + Weeks bool + type ContributorWeek struct + Additions int + Commits int + Deletions int + Week time.Time + type CrawlOptions struct + Depth int + EdgesOnly bool + Follow []string + Kinds []string + Limit int + MinTrust string + NodesOnly bool + type CrawlPlan struct + Depth int + Nodes int + Note string + Seed string + type CrawlSink struct + Edge func(*Edge) error + Fact func(*Fact) error + Node func(*Node) error + type Dependency struct + Ecosystem string + License string + Manifest string + Package string + Relationship string + Repo string + SourceRepo string + Version string + type Dependent struct + AvatarURL string + Dependent string + Forks *int + Owner string + Repo string + Stars *int + type Discussion struct + AnswerAuthor *Actor + AnswerChosenAt *time.Time + Category string + IsAnswered bool + Upvotes *int + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (d Domain) Register(app *kit.App) + type Edge struct + At *time.Time + Object string + Predicate string + Source string + Subject string + Weight *int + func FilterTrust(edges []Edge, min string) []Edge + type Event struct + Actor Actor + At *time.Time + BodyHTML string + Repo string + Target string + Title string + Type string + type Fact struct + Datatype string + Predicate string + Subject string + Value string + type File struct + Content string + IsBinary bool + IsGenerated bool + IsLFS bool + IsTruncated bool + Language string + Lines *int + Path string + RawLines []string + RawURL string + Ref string + Repo string + RichText string + Size *int64 + SizeDisplay string + Symbols []Symbol + SymbolsStatus string + TOC []Heading + type FileChange struct + Additions *int + Deletions *int + IsBinary bool + Path string + PrevPath string + Status string + type Gist struct + CreatedAt *time.Time + Description string + FileCount *int + Files []GistFile + Forks *int + IsPublic bool + Owner string + Revisions *int + Stars *int + UpdatedAt *time.Time + type GistFile struct + Content string + Language string + Name string + RawURL string + Size *int64 + type GitRef struct + Author *Actor + AuthoredAt *time.Time + IsDefault bool + Name string + PeeledSHA string + Protected bool + Repo string + SHA string + Type string + type Graph struct + Edges []Edge + Facts []Fact + Nodes []Node + func (g *Graph) Add(rec any) + func (g *Graph) AddNode(n Node) + func (g *Graph) Targets(allow map[string]bool) []string + type Heading struct + Anchor string + Level int + Text string + type Ident struct + Anchor string + ID string + Kind string + URI string + URL string + func Parse(input string) (Ident, error) + type Issue struct + ClosedByPRs []string + DuplicateOf string + IssueType string + LinkedPRs []string + ProjectItems []string + SubIssueDone *int + SubIssueTotal *int + type Label struct + Color string + Description string + Name string + NodeID string + URL string + type LanguageShare struct + Color string + Language string + Percent float64 + Repo string + type Milestone struct + Closed bool + ClosedAt *time.Time + DueOn *time.Time + Number *int + Progress *float64 + Title string + URL string + type Node struct + ID string + Kind string + Label string + URI string + URL string + type Org struct + IsEnterprise bool + MemberCount *int + Members []string + TopLanguages map[string]int + TopTopics []string + VerifiedDomains []string + type Package struct + Downloads *int + Name string + Repo string + Source string + Summary string + Topics []string + Type string + UpdatedAt *time.Time + type PullRequest struct + Additions *int + BaseOID string + BaseRef string + ChangedFiles *int + ClosesIssues []string + CommitCount *int + Deletions *int + HeadOID string + HeadRef string + IsDraft bool + Mergeable string + Merged bool + MergedAt *time.Time + MergedBy *Actor + ReviewDecision string + ReviewRequests []Actor + type RDFOptions struct + Format string + Graph string + type RDFWriter struct + func NewRDFWriter(w io.Writer, o RDFOptions) *RDFWriter + func (r *RDFWriter) Edge(e *Edge) error + func (r *RDFWriter) Fact(f *Fact) error + func (r *RDFWriter) Node(n *Node) error + type Reaction struct + Content string + Count int + type RefOptions struct + Complete bool + Limit int + Pulls bool + type Release struct + Assets []Asset + Author *Actor + Body string + BodyHTML string + CommitSHA string + IsDraft bool + IsLatest bool + IsPrerelease bool + PublishedAt *time.Time + Repo string + RepoDatabaseID *int + Tag string + TarballURL string + Title string + UpdatedAt *time.Time + ZipballURL string + type ReleaseOptions struct + Assets bool + Body bool + Limit int + type Repo struct + ActivityPath string + CommitCount *int + CommitCountDisplay string + ContributorCount *int + CreatedAt *time.Time + DatabaseID *int + DefaultBranch string + DependentCount *int + Description string + DescriptionHighlight string + FileCount *int + ForkNetworkPath string + ForkOf string + Forks *int + GoodFirstIssues *int + HasCitation bool + HasDiscussions bool + HasFunding bool + HasPages bool + HasWiki bool + HeadSHA string + HelpWantedIssues *int + Homepage string + IsArchived bool + IsEmpty bool + IsFork bool + IsMirror bool + IsOrgOwned bool + IsPrivate bool + IsTemplate bool + Language string + LanguageColor string + Languages map[string]int64 + License string + Name string + NodeID string + OpenIssues *int + Owner string + OwnerAvatarURL string + PushedAt *time.Time + ReadmeHTML string + ReadmePath string + ReadmeText string + ReleaseCount *int + SocialImageURL string + Sponsorable bool + StargazersPath string + Stars *int + StarsDisplay string + TagCount *int + Topics []string + Tree []TreeEntry + UpdatedAt *time.Time + Visibility string + Watchers *int + type RepoOptions struct + Deep bool + Readme bool + type RepoStats struct + Commits *int + Contributors *int + Dependents *int + Forks *int + OpenIssues *int + PushedAt *time.Time + Releases *int + Repo string + Stars *int + Tags *int + Watchers *int + type Response struct + Body []byte + FinalURL string + Header http.Header + Status int + Surface Surface + URL string + type RouteInfo struct + Fallback string + Note string + Primary string + Route string + type Surface int + const SurfaceFeed + const SurfaceGit + const SurfaceHTML + const SurfaceRaw + const SurfaceRouteJSON + const SurfaceSearch + const SurfaceXHR + func (s Surface) String() string + type Symbol struct + ExtentEnd int + ExtentStart int + FullyQualifiedName string + IdentEnd int + IdentStart int + Kind string + Name string + type Thread struct + Assignees []Actor + Author Actor + AuthorAssociation string + Body string + BodyHTML string + ClosedAt *time.Time + CommentCount *int + CreatedAt *time.Time + DatabaseID *int + IsPinned bool + Labels []Label + Locked bool + Milestone *Milestone + NodeID string + Number int + Reactions []Reaction + Repo string + State string + StateReason string + Title string + TitleHTML string + TitleHighlight string + UpdatedAt *time.Time + type ThreadRef struct + DatabaseID *int + IsPullRequest bool + Merged bool + State string + Title string + URL string + type TimelineItem struct + Actor *Actor + Assignee *Actor + Body string + BodyHTML string + Commit string + CreatedAt *time.Time + CreatedViaEmail bool + Cursor string + FromTitle string + Label *Label + LastEditedAt *time.Time + Milestone *Milestone + Minimized bool + MinimizedReason string + Reactions []Reaction + Source string + Thread string + ToTitle string + Type string + type Topic struct + Aliases []string + AppliedCount *int + CreatedBy string + Curated bool + Description string + DescriptionHTML string + DisplayName string + Featured bool + GitHubURL string + LogoURL string + Name string + Related []string + Released string + ShortDescription string + StargazerCount *int + WikipediaURL string + type TreeEntry struct + Name string + Path string + Ref string + Repo string + SHA string + Size *int64 + Type string + type TreeOptions struct + Limit int + Recursive bool + Ref string + Sizes bool + type Trending struct + BuiltBy []Actor + Period string + Rank int + StarsInPeriod *int + type TrendingOptions struct + Language string + Limit int + Since string + SpokenLanguage string + type WikiPage struct + Author *Actor + Body string + BodyHTML string + Format string + Path string + Repo string + Title string + UpdatedAt *time.Time