This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@tinybirdco/data-generator
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

Tinybird data generator

Features

  • Type defenitions
  • 8 preset schemas
  • Custom random schemas

Installing

$ npm install @tinybirdco/data-generator

Usage

import { initializeGenerator, generate } from "tinybird-generator";

initializeGenerator({
  schema: z
    .object({})
    .optional()
    .default(presetSchemas["Web Analytics Starter Kit"])
    .refine(validateSchema), // Javascript object containing valid generator schema
  endpoint: z.string(), // Tinybird endpoint (eu_gcp, us_gcp or custom one)
  datasource: z.string(), // Name of the Tinybird datasource
  token: z.string(), // Tinybird admin token
  eps: z.number().optional().default(1), // Events per second
  limit: z.number().optional().default(-1), // Event limit
});

await generate();

Preset schemas

import { presetSchemas } from "tinybird-generator";

const schema = presetSchemas["Web Analytics Starter Kit"];

initializeGenerator({
  schema,
  ...
})

Readme

Keywords

Package Sidebar

Install

npm i @tinybirdco/data-generator

Weekly Downloads

0

Version

1.0.0

License

none

Unpacked Size

183 kB

Total Files

7

Last publish

Collaborators

  • alejandromav
  • dmytro-tinybird
  • ivanmalagon
  • jamedina
  • sdairs
  • xavijam