internet4000 / internet4000/find

like `Find.find(query)` explore `Find.unfind(URI)`, to "decode" a URL into a "Find syntax"

Open
#94 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

It could be interesting to see if from a URL it is possible to look for matching symbol and engines.

That way for example a `` could be parsed, and:
- could result in `&gh internet4000 find`
- could be used to add a `title=""` with the find query value, as "usage example"
- a utility to convert list of links (by new lines, like the queries in the node script), to a list of "equivalent" find queries
- as a "translator" to input a URL/URI and get possible "find representation" to get the same resulting URL

For example, in the case of `https://github.com/internet4000/find` and pseudo code:
```txt
const my_url = "https://github.com/internet4000/find"
const result = Find.unfind(my_url)
console.log(unfind)
{
input: "https://github.com/internet4000/find",
matches: [
{
exact: true,
output: "https://github.com/internet4000/find",
query: "&ghi4k find"
},
{
exact: true,
output: "https://github.com/internet4000/find",
query: "&gh internet4000 find"
},
{
exact: false,
output: "https://github.com/internet4000/find/issues",
query: "*ghi_i4_find" // could be `*` a bookmark symbol, like firefox
},
[...]
]
}
```

Could test matching symbol.engines URLs from the domain, and their path, and figure if there are matching symbols to build such a resulting URL.

If there are domains matching, find from the "placeholder patterns" how to split the query and fit that in a URL, and compare to the originally requested result (and maybe stop if a few are exact match, or so that it feels like typing suggestions)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing Find.find(query) entry point and the proposed Find.unfind(URI) API, then inspect how symbol.engines URLs and placeholder patterns are represented. Done would require a defined way to convert URLs into equivalent find queries, report exact and inexact matches, and cover the proposed link-list and title use cases with tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.