This is a standalone data-table demo that we will be using within the OpenStatus dashboard.
Visit data-table.openstatus.dev to learn more.
To make it not only more accessible for you to use, but also work on PoC/MVP with data-tables, we have started this repository. We will maintain it and add new examples over time.
It currently includes two main concepts:
- data-table with simple pagination (client-side filtering with zustand client state)
- data-table with infinite scroll and click details (server-side with URL state via nuqs)
The UI is heavily inspired by datadog and vercel log tables.
Note
We are working on a Guide to help you get started and not wild guess anymore.
More Examples:
- OpenStatus Light Viewer (UI for
vercel-edge-ping)
We support a flexible adapter pattern for state management called BYOS (Bring Your Own Store). This allows you to:
- Use URL-based state with
nuqs(default for/infiniteand/lightroutes) - Use client-side state with Zustand or React state (default for
/defaultroute) - Create custom adapters for any state management solution
import { createSchema, field } from "@/lib/store/schema";
// Define your filter schema
const filterSchema = createSchema({
regions: field
.array(field.stringLiteral(["ams", "gru", "syd"]))
.delimiter(","),
latency: field.array(field.number()).delimiter("-"),
active: field.array(field.boolean()).delimiter(","),
});
// Use with DataTableFilterCommand
<DataTableFilterCommand schema={filterSchema.definition} />;See the Guide for detailed documentation on BYOS, creating custom adapters, and more.
Our stack is:
We will consider making an example with vitejs for all our raw react lovers. Contributions are welcome!
No environment variable required. Run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
If you are looking for specific use-cases or like what we are building and want to hire us, feel free write us to [email protected] or book a call via cal.com.
- sadmann17 for the dope
<Sortable />component around@dnd-kit(see sortable.sadmn.com) - shelwin_ for the draggable chart inspiration (see zoom-chart-demo.vercel.app)
