Export pharma websites have an odd double job. The homepage has to look serious enough for a regulator or a procurement team, and memorable enough that a distributor remembers the company a week later. But the page that does the real commercial work is usually the boring one: the product catalogue. A buyer in another country arrives with a list of molecules and strengths, and they want to know in under a minute whether you make them.

When we built the website for Zelnex Pharmaceuticals, a Surat-based exporter of finished formulations, the catalogue grew to more than 1,100 formulations across 19 therapeutic categories. This post is about how to think about a catalogue of that size in Next.js: the data model, the filters, the CSV download, and how to keep it fast next to a homepage that uses Three.js and scroll motion.

Start with how buyers search, not with your product master

Most manufacturers already have a product list, usually in a spreadsheet exported from an ERP or kept by the sales team. It is tempting to put that list on the site as it is. It rarely works, because the spreadsheet is organised for the factory, not for the buyer.

An international buyer typically searches in one of three ways:

  • By molecule or brand-generic name, for example "amoxicillin and clavulanate".
  • By dosage form, because a distributor may only handle tablets and capsules, or only injectables.
  • By therapeutic category, when they are building a portfolio for a market ("we need a cardiovascular range").

So before writing any code, we agree with the client which fields are public and which of them are filters. For Zelnex the catalogue is filterable by dosage form and therapeutic category, with text search on the product name and composition. Everything else (pack sizes, strengths, notes) is shown on the row, but it is not a filter. Every extra filter makes the interface harder to scan and the data harder to keep clean.

A data model that survives the next spreadsheet

The catalogue will change. New products get added, a strength is corrected, a category is renamed. The data model has to make that cheap.

The rules we follow for catalogues like this:

  1. Every product gets a stable ID that never changes, even if the name does. Use it as the key everywhere.
  2. Categories and dosage forms are controlled lists, not free text. "Tablet", "Tablets" and "TAB" in the same column break filters silently. We normalise them on import and reject unknown values instead of guessing.
  3. Composition is stored as text exactly as the regulatory team writes it. It is tempting to split it into structured molecules and strengths, but for search and display, the exact text the buyer recognises matters more.
  4. The import is repeatable. The client should be able to hand over an updated sheet and get the same result every time, not a one-off manual paste.

A shape that works well for a formulation row looks something like this:

{
  id: "znx-0412",
  name: "Amoxicillin and Potassium Clavulanate Tablets",
  composition: "Amoxicillin 500 mg + Clavulanic Acid 125 mg",
  dosageForm: "Tablet",
  category: "Anti-infective",
  packs: ["10x10 Alu-Alu"]
}

The values above are an illustration of the shape, not a Zelnex product. The point is that a filter only ever reads dosageForm and category, and both come from a fixed list.

Filtering 1,100 rows: on the server, in the browser, or both?

With about a thousand rows, you have a real choice. A thousand short JSON objects is small once compressed, which means the whole list can be shipped to the browser and filtered instantly as the buyer types. That gives the nicest experience: no loading spinners and no round trips.

The trade-off is the first load. If the catalogue page ships the full list as JavaScript props, every visitor pays for it, including the ones who only wanted to see one category. Our general approach for catalogues in this range:

  • Render the first view on the server. The page HTML already contains the first set of results and the filter options, so the content is visible and indexable before any JavaScript runs.
  • Make category views real URLs. A category such as "Cardiovascular" should have its own address that a buyer can bookmark or a sales rep can send. Query parameters (?category=cardiovascular) work fine for this, as long as the server reads them and renders the right rows.
  • Filter in the browser after hydration, so typing in the search box feels instant.
  • Keep the row component cheap. Plain text and a small badge, no images per row. A thousand image requests is what actually makes catalogues slow, not a thousand rows of text.

If a catalogue grows into many thousands of rows, it is time to move search to the server or to a dedicated search service and paginate. At around a thousand, it is usually not worth the extra moving parts.

The CSV download is a feature, not an afterthought

Procurement teams work in spreadsheets. When we added a CSV download to the Zelnex catalogue, it was because this is how buyers actually compare suppliers: they paste lists from several manufacturers side by side and mark what they need.

A few details make a download genuinely useful:

  • Download what the buyer is looking at. If they have filtered to injectables in one category, the file should contain those rows, not the whole catalogue.
  • Use the same column names as the page, so nothing needs to be explained.
  • Name the file clearly, with the company name and the date, so it is still identifiable in someone's downloads folder next month.
  • Encode it as UTF-8 with a byte-order mark if you expect it to be opened in Excel, otherwise characters such as "µ" can come out garbled.

Generating the CSV in the browser from the already-filtered list is simple and needs no server endpoint. For very large lists a server route that streams the file is more robust.

3D on the homepage, speed on the catalogue

The Zelnex homepage is a scroll-driven story in six stages: raw material, formulation, manufacturing, packaging, QA and dispatch. The catalogue page has a Three.js field of floating capsules that reacts to the cursor. Both are there for presence, but neither is allowed to get in the way of the catalogue.

The rules that make this work in a Next.js App Router project:

  • Load 3D on the client only, and lazily. Import the 3D component with next/dynamic and ssr: false, so the HTML and data are never waiting on a WebGL bundle.
  • Put the 3D behind the content, not in front of it. The capsules sit in the background. The filters and the table are normal DOM elements that are usable immediately.
  • Reserve the space. The canvas has a fixed size from the first paint, so nothing jumps when it loads. Layout shift is the quickest way to make a pretty page feel broken.
  • Respect reduced motion. Visitors who have asked their operating system for less motion should get a static background.

We wrote more about this in using Three.js on a business website without hurting performance.

The page that turns a visit into an enquiry

A catalogue that buyers can search still has to end in a conversation. On the Zelnex site the commercial path is the catalogue, the service pages for regulatory dossiers (CTD/eCTD) and contract and third-party manufacturing, and a structured export inquiry flow.

"Structured" is the important word. A blank "Message" box gets you "Please send price list". A form that asks for the products of interest, the destination market and the expected quantities gets the sales team something they can act on the same day. We keep it short, and we only ask for what the sales team will actually use in their first reply.

After launch, the client told us that the cleaner flow brought in higher-intent leads from the kind of partners they were targeting. We are careful not to put numbers on that, because they are the client's numbers to share, but the pattern matches what we see on most B2B sites: a better-qualified form is worth more than a louder homepage.

A checklist if you are planning a similar catalogue

  • Decide the public fields and the two or three filters with the sales team before design starts.
  • Normalise dosage forms and categories into fixed lists, and make the import reject unknown values.
  • Give every product a stable ID.
  • Server-render the first view and give category views their own URLs.
  • Filter in the browser if the list is in the low thousands; move search to the server beyond that.
  • Offer a CSV of the current filtered view.
  • Keep any 3D or motion client-only, lazy and behind the content.
  • End every path with a structured enquiry that asks for product, market and quantity.

If you run an export business and your catalogue lives in a PDF or a spreadsheet attachment today, moving it onto a searchable page is one of the most useful upgrades you can make. You can see how the finished Zelnex site came together in the case study, or tell us about your catalogue.