🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@goatlab/fluentjs

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@goatlab/fluentjs

Readable query Interface & API generator for TS and Node

latest
npmnpm
Version
0.7.0
Version published
Weekly downloads
0
-100%
Maintainers
0
Weekly downloads
 
Created
Source

@goatlab/fluentjs

A JavaScript implementation of the Goat Fluent query interface, providing a readable and composable way to work with multiple database types including LokiJS, Firebase, and remote APIs.

Installation

npm install @goatlab/fluentjs

Basic Usage

import Fluent from '@goatlab/fluentjs'

// Configure connectors
Fluent.config({
  LOCAL_CONNECTORS: [
    {
      name: 'loki',
      connector: LokiConnector,
      default: true
    }
  ],
  REMOTE_CONNECTORS: [
    {
      name: 'api',
      connector: ApiConnector
    }
  ]
})

// Create a model
const User = Fluent.model({
  properties: {
    name: 'User'
  }
})

// Query data
const users = await User.local()
  .where('age', '>', 18)
  .orderBy('name')
  .get()

Key Features

  • Multiple Database Support - Works with LokiJS (in-memory), Firebase, Form.io, and custom APIs
  • Fluent Query Interface - Chainable methods for intuitive query building
  • Composable Models - Built with stampit for flexible model composition
  • Local/Remote/Merge Modes - Query local cache, remote API, or merge both
  • Browser & Node.js - Works in both environments
  • Collection Utilities - Built-in collection manipulation tools
  • Form.io Integration - Special support for Form.io forms and submissions

Keywords

goat

FAQs

Package last updated on 26 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts