
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@goatlab/fluent-firebase
Advanced tools
Firebase/Firestore connector for the Goat Fluent query interface. Provides a type-safe, schema-validated query builder for Firebase Firestore with support for complex queries, batch operations, and relations.
npm install @goatlab/fluent-firebase
# or
yarn add @goatlab/fluent-firebase
# or
pnpm add @goatlab/fluent-firebase
import { FirebaseInit, FirebaseConnector } from '@goatlab/fluent-firebase'
import { Entity, ObjectType, f } from '@goatlab/fluent'
import { z } from 'zod'
// Initialize Firebase
FirebaseInit({
databaseName: 'your-project-id',
serviceAccount: './path/to/service-account.json', // optional
emulator: false // set to true for local development
})
// Define your entity
@Entity('users')
@ObjectType()
export class UserEntity {
@f.Column()
id: string
@f.Column()
name: string
@f.Column()
email: string
@f.Column()
created: Date
}
// Define your schema
const UserSchema = z.object({
id: z.string().optional(),
name: z.string(),
email: z.string().email(),
created: z.date().optional()
})
// Create a repository
class UserRepository extends FirebaseConnector<UserEntity> {
constructor() {
super({
entity: UserEntity,
inputSchema: UserSchema,
outputSchema: UserSchema // optional, defaults to inputSchema
})
}
}
// Use the repository
const userRepo = new UserRepository()
// Insert
const user = await userRepo.insert({
name: 'John Doe',
email: 'john@example.com'
})
// Query
const users = await userRepo.findMany({
where: { email: 'john@example.com' },
limit: 10,
orderBy: [{ created: 'desc' }]
})
// Update
await userRepo.updateById(user.id, { name: 'Jane Doe' })
// Delete
await userRepo.deleteById(user.id)
MIT
FAQs
Readable query Interface & API generator for TS and Node
The npm package @goatlab/fluent-firebase receives a total of 12 weekly downloads. As such, @goatlab/fluent-firebase popularity was classified as not popular.
We found that @goatlab/fluent-firebase demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.