4.0.4 • Published 12 months ago

@satoshibits/data-segmenter v4.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

About

data-segmenter is a tool that allows package consumers to define segments from their data regardless of data source like MongoDB or SQL in the backend and provide those segments to a client consumer or user in the frontend.

Demo

This package has 3 main APIs:

1. Segment Builder API

Allows you to define your segments and their corresponding query builders. A segment should be represented by a query e.g. "I want the segment of my profiles with a {field} containing {value}" could be represented as a MongoDb or SQL query returned by your buildQuery methods.

You would consume this in your backend.

2. Segment Composer API

Allow for the composition and manipulation of segments.

You would consume this in your client. It should not know anything of your implementation of the Definition API.

This API should provide only a representation of composed segments without being coupled with the backend implementation.

3. Query Composer API

Parses the composed segments from the Composer, and builds composed queries from it. Implementation is done by consumer.

You would consume this in the backend.

How to use:

See examples folder.

4.0.4

12 months ago

4.0.1

12 months ago

4.0.0

12 months ago

4.0.3

12 months ago

4.0.2

12 months ago

3.0.10

1 year ago

3.0.9

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.6

1 year ago

3.0.0

1 year ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.0

2 years ago

2.0.5

2 years ago

2.0.6

2 years ago

2.0.4

2 years ago

2.0.3

2 years ago

2.0.2

2 years ago

2.0.1

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago