{"id":19534209,"url":"https://github.com/futureinsighttech/searchastro","last_synced_at":"2026-05-16T02:01:43.646Z","repository":{"id":258989350,"uuid":"876049137","full_name":"FutureInsightTech/SearchAstro","owner":"FutureInsightTech","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-21T10:22:25.000Z","size":318,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-26T03:44:01.504Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Astro","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FutureInsightTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-21T10:09:49.000Z","updated_at":"2024-11-02T06:17:20.000Z","dependencies_parsed_at":"2024-10-22T11:59:45.533Z","dependency_job_id":null,"html_url":"https://github.com/FutureInsightTech/SearchAstro","commit_stats":null,"previous_names":["futureinsighttech/searchastro"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FutureInsightTech/SearchAstro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureInsightTech%2FSearchAstro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureInsightTech%2FSearchAstro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureInsightTech%2FSearchAstro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureInsightTech%2FSearchAstro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FutureInsightTech","download_url":"https://codeload.github.com/FutureInsightTech/SearchAstro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FutureInsightTech%2FSearchAstro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"online","status_checked_at":"2026-05-16T02:00:07.515Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T02:13:35.832Z","updated_at":"2026-05-16T02:01:43.612Z","avatar_url":"https://github.com/FutureInsightTech.png","language":"Astro","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Search Feature for Astro Blog\n\nThis project adds a search feature to an Astro blog, allowing users to search through blog posts using fuzzy search logic.\n\n## 🚀 How It Works\n\nThe search functionality uses the `fuzzy` library to provide an efficient search experience. Users can enter a query in the search input field, and the system filters blog posts based on that query. If there are matching results, they will be displayed dynamically; otherwise, a \"No posts found\" message will appear.\n\n### Features:\n\n- 🔍 Fuzzy search to improve search accuracy even with partial matches.\n- 📄 Results update in real time as the user types.\n- 📝 Easily extensible for more complex use cases (e.g., adding metadata or tags).\n\n### Example Usage:\n\n```jsx\nimport fuzzy from \"fuzzy\";\n\nconst posts = [\n  { title: \"First Post\" },\n  { title: \"Second Post\" },\n  { title: \"React and Astro\" },\n  { title: \"Using Fuzzy Search\" },\n];\n\n// Input search query and return matching posts\nconst searchQuery = \"React\";\nconst results = fuzzy.filter(searchQuery, posts, {\n  extract: (post) =\u003e post.title,\n});\n\nconsole.log(results);\n```\n\n## 📂 Project Structure\n\n```text\n├── src/\n│   ├── components/\n│   │   └── SearchComponent.jsx  # Core search logic\n│   └── pages/\n│       └── index.astro          # Renders the search component\n├── README.md\n├── package.json\n└── tsconfig.json\n```\n\n## 🧞 Commands\n\n- `npm install`: Installs dependencies.\n- `npm run dev`: Starts the local dev server.\n- `npm run build`: Builds the project for production.\n\n## 💻 Live Demo\n\nTo explore the code and try the search feature, check out the [GitHub repository](https://github.com/FutureInsightTech/SearchAstro).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureinsighttech%2Fsearchastro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffutureinsighttech%2Fsearchastro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffutureinsighttech%2Fsearchastro/lists"}