Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. ClojureScript
  3. Precept

Precept

MITClojure

A declarative framework for building reactive web applications using a rules engine and relational data modeling.

GitHubGitHub
663 stars33 forks0 contributors

What is Precept?

Precept is a declarative programming framework for building reactive web applications. It uses a rules engine and relational data modeling to express application logic as declarative statements, aiming to reduce complexity by focusing on what the application should do rather than how it should do it.

Target Audience

Clojure and ClojureScript developers building complex, reactive web applications who want a declarative approach to state management and UI logic.

Value Proposition

Developers choose Precept for its declarative paradigm, efficient rule-based reactivity via the Rete algorithm, and relational data model that simplifies handling complex state and derived computations.

Overview

A declarative programming framework

Use Cases

Best For

  • Building complex reactive web applications with declarative logic
  • Managing state in ClojureScript apps using a relational data model
  • Implementing rule-based UI behavior and subscriptions
  • Developing applications where graph-based data modeling is beneficial
  • Creating pluggable rulesets for reusable UI behaviors
  • Debugging application state with immutable sessions and inspection tools

Not Ideal For

  • Projects built exclusively with JavaScript/TypeScript without Clojure expertise
  • Simple CRUD applications where traditional state management (e.g., React hooks) suffices
  • Teams needing a large ecosystem of pre-built UI components or third-party integrations
  • Applications requiring full historical data tracking or audit trails, as Precept doesn't maintain fact history

Pros & Cons

Pros

Declarative Logic Simplicity

Allows expressing application logic as rules with conditions and consequences, directly reducing incidental complexity by focusing on what is required rather than how, as inspired by 'Out of the Tar Pit'.

Efficient Subscription System

Uses the Rete algorithm via Clara for efficient re-rendering, where subscriptions only update when relevant facts change, avoiding unnecessary computations for performance-critical updates.

Flexible Data Modeling

Models state as a graph of facts with a relational data model (entity-attribute-value tuples), enabling flexible queries, joins, and derived computations similar to Datomic.

Schema Enforcement

Supports Datomic-style schemas for cardinality and uniqueness constraints, with separate client and database schemas, ensuring data integrity and easy access to persisted facts.

Immutable Debugging Tools

Provides immutable sessions through Clara, enabling advanced debugging and state inspection tools, such as tracking rule firings and fact changes, with devtools in alpha preview.

Cons

Limited Fact History

Unlike Datomic, Precept does not maintain a full history of facts to conserve browser memory, which can be a drawback for applications needing audit trails or undo/redo functionality.

Clojure Ecosystem Dependency

Requires familiarity with Clojure/ClojureScript and tooling like Leiningen, posing a barrier for teams not already invested in this stack or preferring JavaScript/TypeScript.

Early-Stage Features

Key features like advanced dev tools, general-purpose algorithms, and a ruleset API are still in development or alpha, indicating the framework is maturing and may lack polish for production use.

Performance Trade-Offs

The Rete algorithm trades space for time by indexing nodes and storing fact memories, which could lead to higher memory usage in applications with many rules or complex state graphs.

Frequently Asked Questions

Quick Stats

Stars663
Forks33
Contributors0
Open Issues32
Last commit4 years ago
CreatedSince 2017

Tags

#rete-algorithm#declarative-programming#clojurescript#rules-engine#rules#reactive-ui#clojure#frontend-framework#logic-programming#functional-reactive-programming#state-management#relational-data

Built With

C
Clojure
C
ClojureScript
L
Leiningen
F
Figwheel

Included in

ClojureScript1.1k
Auto-fetched 13 hours ago

Related Projects

re-framere-frame

A ClojureScript framework for building user interfaces, leveraging React

Stars5,544
Forks711
Last commit6 months ago
ChestnutChestnut

Application template for Clojure + ClojureScript web apps

Stars1,299
Forks94
Last commit4 years ago
descjopdescjop

A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).

Stars392
Forks16
Last commit9 years ago
MacchiatoMacchiato

Ring style HTTP server abstraction for Node.js

Stars385
Forks33
Last commit10 months ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub