FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
wolf
wolfNPLLM
Remix of std/reactHonoStarter
Public
Like
1
NPLLM
Home
Code
6
backend
3
frontend
4
shared
2
.vtignore
README.md
deno.json
Branches
2
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/16/2025
Viewing readonly version of main branch: v393
View latest version
README.md

NPM Clone

This app is a clone of the npm website with search functionality and package detail pages.

Features

  • Search Page: Search for npm packages with infinite scrolling
  • Package Detail Page: View package details and README
  • Caching: Search results and package details are cached using Val Town's blob storage
  • Responsive Design: Looks good on all screen sizes

Technical Details

  • Frontend: React with TypeScript
  • Backend: Hono server
  • Infinite Scrolling: Using react-infinite-scroll-component
  • Data Validation: Using Zod schemas
  • Caching: Using Val Town's blob storage

Routes

  • /: The main search page
  • /package/:name: Package detail page
  • /api/search: API endpoint for searching packages
  • /api/package: API endpoint for getting package details

Development

This project is built on Val Town's React Hono Starter template.

  • The entrypoint is /backend/index.ts. That's the backend HTTP server, which also serves all the frontend assets.

  • The client-side entrypoint is /frontend/index.html, which in turn imports /frontend/index.tsx, which renders either the SearchPage or PackageDetail component.

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.