Skip to content

Example

This example is ported from akumatus/FilterBuilder.

This style is used in scenarios where nested filters are not required. This can be particularly useful in situations where the data structure is simple.

Active Filters: {"status":"PENDING"}
API Payload: /api/data?status=PENDING

This example adapts Filter Sphere into a workflow-builder condition panel with nested groups, operator rails, and compact chip inputs.

Filter expense records with interactive prose. Edit the highlighted words and combine nested lists with “all” or “at least one.” Inspired by Doma.

Filters as prose

Filter expenses

Show expenses where the ,
of the following is true:
  • the
  • the
  • the
senioritydepartmentexpenseTypemerchantcurrencyamount
ManagerSalesFood & drinkDin Tai FungSGD86.5
ManagerEngineeringTravelUberEUR42
ManagerMarketingSoftwareFigmaUSD540
ManagerSalesTravelEurostarEUR185
ManagerEngineeringFood & drinkBlue BottleUSD24
ManagerMarketingEntertainmentTicketmasterUSD500

The adjacent modules define the expense schema, prose theme, and inline editors. The conditions use Filter Sphere’s standard rule model.

Filter Sphere is easy to integrate with backend systems. This example demonstrates converting filter rules into SQL WHERE clauses and Meilisearch queries in real time.

SQL query:
WHERE (title LIKE '%Filter Sphere%')
Meilisearch query:
(title CONTAINS "Filter Sphere" AND (author NOT CONTAINS "Author Name"))