
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@auto-engineer/flowlang
Advanced tools
Domain-specific language for building event-driven applications with type-safe schemas and GraphQL API generation. Plugin for the Auto Engineer CLI that enables defining business flows, data transformations, and integrations using TypeScript-based syntax.
Domain-specific language for building event-driven applications with type-safe schemas and GraphQL API generation. Plugin for the Auto Engineer CLI that enables defining business flows, data transformations, and integrations using TypeScript-based syntax.
This is a plugin for the Auto Engineer CLI. Install both the CLI and this plugin:
npm install -g @auto-engineer/cli
npm install @auto-engineer/flowlang
Add this plugin to your auto.config.ts
:
export default {
plugins: [
'@auto-engineer/flowlang',
// ... other plugins
],
};
This plugin provides the following commands:
create:example
- Create an example project with FlowLangexport:schema
- Export flow schema to JSONFlowLang is a declarative language for describing business processes, data flows, and system integrations. It combines:
Define business flows using chainable API:
import { flow } from '@auto-engineer/flowlang';
const orderFlow = flow('place-order')
.input<PlaceOrderCommand>()
.validate(command => /* validation logic */)
.process(async (command, ctx) => {
// Business logic here
return { orderId: generateId(), status: 'confirmed' };
})
.emit<OrderPlaced>()
.build();
Generate GraphQL schemas from flow definitions:
// Flows are converted to GraphQL mutations and queries
// Input types become GraphQL input types
// Output events become GraphQL object types
Support for external service integrations:
const flow = flow('payment-processing')
.integration('stripe', StripePaymentGateway)
.integration('email', EmailService)
.process(async (command, ctx) => {
const payment = await ctx.integrations.stripe.charge(command.amount);
await ctx.integrations.email.sendReceipt(command.email, payment);
return payment;
});
Testing utilities for flow validation:
import { testFlow } from '@auto-engineer/flowlang/testing';
describe('order flow', () => {
it('should process valid orders', async () => {
const result = await testFlow(orderFlow)
.withInput({ productId: '123', quantity: 2 })
.expectEvent<OrderPlaced>()
.run();
expect(result.orderId).toBeDefined();
});
});
FlowLang builds on several core concepts:
auto create:example
flows/
directoryauto export:schema
FlowLang works with other Auto Engineer plugins:
This plugin-based approach allows building applications from high-level flow definitions to production code.
FAQs
Domain-specific language for building event-driven applications with type-safe schemas and GraphQL API generation. Plugin for the Auto Engineer CLI that enables defining business flows, data transformations, and integrations using TypeScript-based syntax.
The npm package @auto-engineer/flowlang receives a total of 0 weekly downloads. As such, @auto-engineer/flowlang popularity was classified as not popular.
We found that @auto-engineer/flowlang demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.