Skip to content

"I'm feeling lucky" mode on search #996

@shuuji3

Description

@shuuji3

Currently, even when users want to visit the specific package via keyword search, users need to type package name and click the top result.

The "I'm feeling lucky" mode would work like this:

Users may add two search keywords if they prefer, for example:

  • npmx <keyword> -> https://npmx.dev/search?q=%s
  • npmx! <keyword> -> https://npmx.dev/search?feeling-lucky=1&q=%s

Users could add npmx! <keyword> -> https://npmx.dev/package/%s but this mode can provide a bit more flexible fallback.

inspired by this shared post: https://bskye.app/profile/vale.rocks/post/3me3elmhxo22j (via https://discord.com/channels/1464542801676206113/1466869459590451448/1468855092894498877)

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, DesignideaSuggestion or idea, not yet vetted/decided

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions