{"id":22688299,"url":"https://github.com/emanuelefavero/nextjs-search-query","last_synced_at":"2026-05-16T11:02:49.142Z","repository":{"id":172423752,"uuid":"604566130","full_name":"emanuelefavero/nextjs-search-query","owner":"emanuelefavero","description":"This is a simple Next.js app that implements a search query using Next.js API routes","archived":false,"fork":false,"pushed_at":"2023-02-22T20:55:25.000Z","size":58,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T22:45:38.282Z","etag":null,"topics":["api","nextjs","query","search","url-parameters"],"latest_commit_sha":null,"homepage":"https://nextjs-search-query.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emanuelefavero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2023-02-21T10:31:33.000Z","updated_at":"2024-11-23T18:29:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"402390ad-6cd7-4e85-9235-4bdda83a45f1","html_url":"https://github.com/emanuelefavero/nextjs-search-query","commit_stats":null,"previous_names":["emanuelefavero/nextjs-search-query"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emanuelefavero/nextjs-search-query","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fnextjs-search-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fnextjs-search-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fnextjs-search-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fnextjs-search-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emanuelefavero","download_url":"https://codeload.github.com/emanuelefavero/nextjs-search-query/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emanuelefavero%2Fnextjs-search-query/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33100319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","nextjs","query","search","url-parameters"],"created_at":"2024-12-10T00:13:47.244Z","updated_at":"2026-05-16T11:02:49.090Z","avatar_url":"https://github.com/emanuelefavero.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js Search Query\n\nThis is a simple Next.js app that implements a search query using Next.js API routes\n\n## Live Demo\n\n- [https://nextjs-search-query.vercel.app/](https://nextjs-search-query.vercel.app/)\n\n#### Screenshot\n\n\u003cimg src=\"screenshot.png\" alt=\"screenshot\" width=\"300\"\u003e\n\n## Getting Started\n\n- clone the repo and `cd` into the directory\n- run `npm install` to install dependencies\n- run `npm run dev` to start the development server\n\n## How it works\n\nThe search query is implemented in 3 steps:\n\n- A json file at the root of the project called `posts.json` that contains an array of posts with their id and title\n- An API route that accepts a query parameter and returns the matching posts from the `posts.json` file\n- A search component that uses fetch to call the API route and displays the results\n\n## How to use\n\n- Open the app in your browser\n- Type in the search bar the post title that you need to search and click on the search button\n- The results will be displayed below the search bar\n\n\u003e Note: Check `posts.json` to see the available post titles\n\u003e\n\u003e EXAMPLE SEARCHES: `\"first post\"`, `\"post\"`, `\"\"`\n\n## License\n\n- [MIT](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fnextjs-search-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femanuelefavero%2Fnextjs-search-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femanuelefavero%2Fnextjs-search-query/lists"}