- v0.0.291-integrationLatest
- v0.0.290
- v0.0.290-integration
- v0.0.290-new-fluent
- v0.0.288
- v0.0.288-integration
- v0.0.284-integration
- v0.0.284-new-fluent
- v0.0.283
- v0.0.283-integration
- v0.0.282
- v0.0.282-integration
- v0.0.281
- v0.0.281-integration
- v0.0.280-integration
- v0.0.279
- v0.0.279-integration
- v0.0.278
- v0.0.278-integration
- v0.0.277
- v0.0.277-integration
- v0.0.276
- v0.0.276-integration
- v0.0.273
- v0.0.273-integration
- v0.0.272
- v0.0.272-integration
- v0.0.271
- v0.0.271-integration
- v0.0.270
- v0.0.270-integration
- v0.0.269
- v0.0.269-integration
- v0.0.268
- v0.0.268-integration
- v0.0.267-integration
- v0.0.267-new-fluent
- v0.0.265-new-fluent
- v0.0.225
- v0.0.225-integration
- v0.0.263-new-fluent
- v0.0.262-new-fluent
- v0.0.224-create-builder-classes-for-aiac-resources
- v0.0.224-new-fluent
- v0.0.224-integration
- v0.0.224
- v0.0.223
- v0.0.223-integration
- v0.0.222
- v0.0.222-integration
- v0.0.220
- v0.0.220-integration
- v0.0.219
- v0.0.219-integration
- v0.0.218
- v0.0.218-integration
- v0.0.211
- v0.0.211-integration
- v0.0.210
- v0.0.210-integration
- v0.0.209
- v0.0.209-integration
- v0.0.208
- v0.0.208-integration
- v0.0.207
- v0.0.207-integration
- v0.0.206
- v0.0.206-integration
- v0.0.205
- v0.0.205-integration
- v0.0.204
- v0.0.204-integration
- v0.0.203
- v0.0.203-integration
- v0.0.202
- v0.0.202-integration
- v0.0.203-rework
- v0.0.201-rework
- v0.0.201-integration
- v0.0.200
- v0.0.200-integration
- v0.0.199
- v0.0.199-integration
- v0.0.198
- v0.0.198-integration
- v0.0.197
- v0.0.197-integration
- v0.0.196
- v0.0.196-integration
- v0.0.195
- v0.0.195-integration
- v0.0.194
- v0.0.194-integration
- v0.0.193-integration
- v0.0.193
- v0.0.192
- v0.0.192-integration
- v0.0.191
- v0.0.191-integration
- v0.0.190
- v0.0.190-integration
- v0.0.189-integration
- v0.0.189
- v0.0.188
- v0.0.188-integration
- v0.0.187-integration
- v0.0.188-work-back
- v0.0.187
- v0.0.187-work-back
- v0.0.186
- v0.0.186-work-back
- v0.0.185
- v0.0.185-work-back
- v0.0.184
- v0.0.184-work-back
- v0.0.183
- v0.0.183-work-back
- v0.0.182
- v0.0.182-work-back
- v0.0.181
- v0.0.181-work-back
- v0.0.180
- v0.0.180-work-back
- v0.0.179
- v0.0.179-work-back
- v0.0.177-work-back
- v0.0.177
- v0.0.176
- v0.0.176-work-back
- v0.0.175
- v0.0.175-work-back
- v0.0.174
- v0.0.174-work-back
- v0.0.173
- v0.0.173-work-back
- v0.0.172-integration
- v0.0.172
- v0.0.172-work-back
- v0.0.171
- v0.0.171-work-back
- v0.0.170
- v0.0.170-work-back
- v0.0.169
- v0.0.169-work-back
- v0.0.164-integration
- v0.0.164
- v0.0.164-work-back
- v0.0.163-work-back
- v0.0.162-work-back
- v0.0.162
- v0.0.161-work-back
- v0.0.160
- v0.0.160-work-back
- v0.0.159
- v0.0.159-work-back
- v0.0.158
- v0.0.158-work-back
- v0.0.147-work-back
- v0.0.147
- v0.0.145-hold
- v0.0.145
- v0.0.145-integration
- v0.0.144-integration
- v0.0.144
- v0.0.143
- v0.0.143-integration
- v0.0.142
- v0.0.142-integration
- v0.0.141
- v0.0.141-integration
- v0.0.140
- v0.0.140-integration
- v0.0.139
- v0.0.139-integration
- v0.0.138
- v0.0.138-integration
- v0.0.137
- v0.0.137-integration
- v0.0.136
- v0.0.136-integration
- v0.0.135
- v0.0.135-integration
- v0.0.134
- v0.0.134-integration
- v0.0.132
- v0.0.132-integration
- v0.0.131
- v0.0.131-integration
- v0.0.130-integration
- v0.0.129
- v0.0.129-integration
- v0.0.128-integration
- v0.0.127
- v0.0.127-integration
- v0.0.126
- v0.0.126-integration
- v0.0.125
- v0.0.125-integration
- v0.0.124
- v0.0.124-integration
- v0.0.123
- v0.0.123-integration
- v0.0.122
- v0.0.122-integration
- v0.0.121
- v0.0.121-integration
- v0.0.120
- v0.0.120-integration
- v0.0.119
- v0.0.119-integration
- v0.0.117
- v0.0.117-integration
- v0.0.116
- v0.0.116-integration
- v0.0.115-integration
- v0.0.114
- v0.0.114-integration
- v0.0.113
- v0.0.113-integration
- v0.0.112
- v0.0.112-integration
- v0.0.111
- v0.0.111-integration
- v0.0.110
- v0.0.110-integration
- v0.0.109-integration
- v0.0.106
- v0.0.106-integration
- v0.0.104
- v0.0.104-integration
- v0.0.102
- v0.0.102-integration
- v0.0.99
- v0.0.99-integration
- v0.0.98-integration
- v0.0.94
- v0.0.94-integration
- v0.0.93
- v0.0.93-integration
- v0.0.92
- v0.0.92-integration
- v0.0.90
- v0.0.90-integration
- v0.0.89
- v0.0.89-integration
- v0.0.88
- v0.0.88-integration
- v0.0.87
- v0.0.87-integration
- v0.0.86
- v0.0.86-integration
- v0.0.85
- v0.0.85-integration
- v0.0.84
- v0.0.84-integration
- v0.0.83
- v0.0.83-integration
- v0.0.82
- v0.0.82-integration
- v0.0.81
- v0.0.80
- v0.0.80-integration
- v0.0.77
- v0.0.77-integration
- v0.0.76
- v0.0.76-integration
- v0.0.74
- v0.0.74-integration
- v0.0.73-integration
- v0.0.73
- v0.0.72
- v0.0.72-integration
- v0.0.71
- v0.0.71-integration
- v0.0.70
- v0.0.70-integration
- v0.0.68
- v0.0.68-integration
- v0.0.67
- v0.0.67-integration
- v0.0.66
- v0.0.66-integration
- v0.0.65
- v0.0.65-integration
- v0.0.64
- v0.0.64-integration
- v0.0.63-integration
- v0.0.62
- v0.0.62-integration
- v0.0.61
- v0.0.61-integration
- v0.0.58
- v0.0.58-integration
- v0.0.57-integration
- v0.0.56
- v0.0.56-integration
- v0.0.42
- v0.0.42-integration
- v0.0.40-integration
- v0.0.39-integration
- v0.0.38-integration
- v0.0.37-integration
- v0.0.36-integration
- v0.0.35-integration
- v0.0.34-integration
- v0.0.33-integration
- v0.0.32-integration
- v0.0.31-integration
- v0.0.30-integration
- v0.0.29-integration
- v0.0.28-integration
- v0.0.28
- v0.0.27-integration
- v0.0.26-integration
- v0.0.25-integration
- v0.0.24-integration
- v0.0.23-integration
- v0.0.22-integration
- v0.0.21-integration
- v0.0.20-integration
- v0.0.19-integration
- v0.0.18-integration
Synaptic
A Deno-first framework for building AI agents as composable circuits with strong typing, Everything-as-Code (EaC), and a fluent builder API.
Synaptic helps you go beyond “just chat” by wiring prompt-driven neurons, tools, memory, and state into repeatable circuits you can run across runtimes.
Status: early preview – APIs may change.
Why Synaptic
- Strong typing: author circuits, state, and resources in TypeScript.
- Fluent builders: compose neurons and circuits without brittle JSON.
- Everything-as-Code (EaC): produce portable artifacts you can run anywhere.
- Deno-first: clean imports, npm interop, and zero build steps.
- Extensible: add tools, personalities, retrievers, vector stores, and more.
Quick Start (Fluent API)
Define a minimal linear circuit with two prompt neurons:
// deno run -A quick-start.ts
import { LinearCircuitBuilder, ChatPromptNeuronBuilder } from "jsr:@fathym/synaptic/fluent";
// A prep step that summarizes input
const prep = new ChatPromptNeuronBuilder("prep", {
Instructions: ["Summarize the user input in one short sentence."],
Messages: [{ role: "user", content: "{input}" }],
});
// The final agent step with a distinct style
const agent = new ChatPromptNeuronBuilder("agent", {
Instructions: ["Answer like a pirate. Keep it concise."],
});
// Chain prep -> agent into a Linear circuit
const circuit = new LinearCircuitBuilder()
.Neuron(prep)
.Neuron(agent)
.Chain(prep, agent)
.Build();
// Export as an EaC fragment you can load into a runtime
export const eac = {
Circuits: {
"quick-start": { Details: circuit },
},
};
Next steps:
- Read the Fluent Quick Start for concepts and patterns.
- See the Migration Guide to convert JSON circuits.
Features
- Fluent circuit builders:
LinearCircuitBuilder
,GraphCircuitBuilder
. - Prompt neurons:
ChatPromptNeuronBuilder
, tool integration, and more. - Resource builders: personalities, embeddings, retrievers, vector stores, etc.
- Typed state: build, validate, and evolve circuit state safely.
- Portable EaC output: commit and deploy circuits as code.
Install
Use Synaptic directly from JSR in Deno:
import { fluent } from "jsr:@fathym/synaptic";
// or import specific builders
import { LinearCircuitBuilder } from "jsr:@fathym/synaptic/fluent";
Project uses npm interop internally (e.g., LangGraph, Preact), which Deno resolves transparently.
Runtimes
This package focuses on modeling and building circuits. To execute circuits, use a compatible runtime. See runtime/README.md
for notes and pointers.
Development
- Format:
deno fmt
- Lint:
deno lint
- Type check:
deno check **/*.ts
- Full build:
deno task build
- Tests:
deno task test
Project Structure
src/fluent/
: fluent builders for circuits, neurons, state, and resources.src/eac/
: Everything-as-Code types and validators.src/circuits/
,src/runnables/
,src/memory/
: building blocks and utilities.docs/fluent/
: quick start and migration guides.runtime/
: notes for runtime packages that consume Synaptic.
We welcome feedback and issues as the API stabilizes. If you’d like a deeper tour or have a feature request, please open an issue.