Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: lesswrong library — frontpage, curated, top, tag#1

Merged
tamnd merged 1 commit into
mainfrom
feat/kit-domain
Jun 15, 2026
Merged

feat: lesswrong library — frontpage, curated, top, tag#1
tamnd merged 1 commit into
mainfrom
feat/kit-domain

Conversation

@tamnd

@tamnd tamnd commented Jun 15, 2026

Copy link
Copy Markdown
Owner

Implements the any-cli/kit domain layer for lesswrong with four commands:

  • lesswrong frontpage — frontpage posts
  • lesswrong curated — curated posts
  • lesswrong top — top posts by karma
  • lesswrong tag <tagID> — posts filtered by tag

Uses the LessWrong GraphQL API. No API key required.

Changes:

  • lesswrong/domain.go: Domain{} with kit.Register, Info, Register, newClient, four handlers
  • lesswrong/domain_test.go: offline tests for domain info, op wiring, registry lookup, tag query
  • lesswrong/lesswrong.go: add TagPosts method + tagPostsQuery using filterSettings
  • lesswrong/types.go: add kit id and table url tags to Post.URL
  • go.mod/go.sum: add github.com/tamnd/any-cli v0.4.0

Wire the any-cli/kit domain layer: Domain{} registers four list ops
(frontpage, curated, top, tag), newClient bridges kit.Config to the
existing Config struct, and TagPosts adds the filterSettings GraphQL
query path. Add kit id+url tags to Post. Tests cover domain info,
op wiring, registry lookup, and the tag query path.
@tamnd tamnd merged commit 2bb4a7d into main Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant