DBindly Docs
Getting Started

Overview

DBindly is a lightweight JavaScript library that enables dynamic content loading on any website. It works by reading data attributes from your HTML elements and replacing them with data from your collections.

How It Works

  1. Create Collections - Use the dashboard to create collections and add data
  2. Generate API Keys - Create an API key to access your data
  3. Add the Script - Include DBindly on your website
  4. Use Data Attributes - Add attributes like dbind_data, dbind_src to your HTML

Core Concepts

Collections

Collections are like database tables that store your content. Each collection has:

  • Columns - Define the structure (name, type)
  • Rows - Individual data items with unique IDs

Data IDs

Each row in a collection has a unique dataId. You can load data by:

  • URL parameter: ?did=your-data-id
  • JavaScript: DBindly.load('your-data-id')

API Keys

API keys authenticate your requests and enable:

  • Domain whitelisting
  • Rate limiting
  • Usage tracking

Data Attributes

DBindly uses HTML data attributes to define what content to display:

AttributeDescriptionExample
dbind_dataText content<span dbind_data="title"></span>
dbind_hrefLink URL<a dbind_href="url">Link</a>
dbind_srcImage source<img dbind_src="image">
dbind_repeatRepeat for arrays<div dbind_repeat="items">
dbind_ifConditional display<span dbind_if="active==true">

Supported Platforms

DBindly works with any platform that allows custom HTML and JavaScript:

  • Website Builders - Webflow, Wix, Squarespace, Framer
  • CMS Platforms - WordPress, Ghost, Contentful
  • E-commerce - Shopify, WooCommerce
  • Custom Sites - Any HTML/JavaScript website

Next Steps