NPLLM
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.
Viewing readonly version of main branch: v393View latest version
This app is a clone of the npm website with search functionality and package detail pages.
- 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
- 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
/
: The main search page/package/:name
: Package detail page/api/search
: API endpoint for searching packages/api/package
: API endpoint for getting package details
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.