Frontend SDK
Connects a website with no backend server at all — report the products you have with one function call, and pull your real catalog back with another, no server required for either.
What you need
- A Dasenter account with at least one store already created
- Access to your website's HTML (anywhere you can paste a <script> tag) — no backend, no .env file
- Ten minutes
Steps
- 1Log in to your Dasenter dashboard and pick the right store with the store switcher, if you have more than one.
- 2Click Integrations in the left-hand menu, or pick "Frontend" on the store page's connector-type switcher.
- 3Find the card labeled "Dasenter Frontend SDK" and click Set Up.
- 4Dasenter shows you a real script tag, plus your store ID, a public key, and the API address to use — all four already filled in with your real values.
- 5Copy that whole block and paste it into your website's HTML, just before the closing </body> tag.
- 6On each product page, add one more call: Dasenter.trackProduct({ sku, name, price, currency, imageUrl }) with that product's real details.
- 7Reload your website once in a real browser tab — that alone moves the integration from Pending to Connected.
- 8Open your Dasenter dashboard's Products page and look for "Detected from your website" — review and click Add to catalog on anything you actually sell.
- 9Anywhere on your site you want to show your catalog, call Dasenter.getProducts() and loop over the result to build your own product cards.
Real examples
Step 1 — the basic setup, plus reporting one product
HTML
<script src="https://your-dasenter-host/sdk/nexora.js"></script>
<script>
Dasenter.init({ storeId: "your_store_id", publicKey: "nx_public_xxxxx", apiBase: "http://localhost:3001" });
Dasenter.trackProduct({
sku: "RICE-001",
name: "Rice",
price: 5000,
currency: "NGN",
imageUrl: "https://your-site.example.com/images/rice.jpg",
});
</script>Pulling your real catalog back and rendering it yourself — every field below is real, so use all of it, not just name/price
JavaScript
Dasenter.getProducts().then((products) => {
// Only active, approved products come back here — up to 200 of them,
// alphabetically by name (no paging today, see Limitations).
for (const product of products) {
const {
id, // Dasenter's own internal id — not the same as sku, don't show it to shoppers
sku, // your real, stable identifier — use this to link to a Checkout order
name,
price, // integer, smallest currency unit (e.g. kobo, cents)
currency, // e.g. "NGN", "USD" — always the store's real currency, never assume one
imageUrl, // may be null if the product has no image yet
quantity, // real stock count, as of the moment you called getProducts()
} = product;
const card = document.createElement('div');
card.className = 'dasenter-product-card';
card.innerHTML = `
<img src="${imageUrl ?? '/placeholder.png'}" alt="${name}" />
<h3>${name}</h3>
<p>${currency} ${price}</p>
${quantity > 0 ? `<span>${quantity} in stock</span>` : '<span>Out of stock</span>'}
<a href="/checkout/your_store_id?sku=${encodeURIComponent(sku)}">Buy now</a>
`;
document.getElementById('catalog').appendChild(card);
}
});What success looks like
The integration card moves from Pending to Connected once a real page with the script on it loads and runs init(). Separately, a product you called trackProduct() on shows up under "Detected from your website" on the Products page, ready to approve.
Common mistake
Expecting trackProduct() to immediately create a real, orderable product — it doesn't. Every sighting waits in the review queue until a real person on the dashboard clicks Add to catalog; that's what makes it safe for this connector's key to sit in your page source.
Making Product Push/Pull supported
Push doesn't exist for this connector — there's no backend on the other end for Dasenter to push to. Pull is what's actually supported: Dasenter.getProducts() fetches your real catalog on demand, as soon as at least one product has been approved from the review queue. Nothing needs separate configuration to turn Pull "on" — it works the moment you call it.
What data actually comes through
trackProduct() only ever carries sku, name, price, currency, and imageUrl — no variants, categories, or custom attributes, even after a real person approves it into the catalog. There's no order data at all: this connector never creates or updates an order, so order status doesn't apply — that's what Dasenter Checkout is for.