New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

clean-architecture

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-architecture

Utilities for implementing clean architecture using Redux

  • 4.3.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

📐 TypeScript Clean Architecture Framework 📐

This is a Framework for building web application. It helps you decouple your UI component and the core logic of your App.
It can be used both on the frontend and the backend and integrate well with any UI framework but it's primary use case is for building SPAs (Vite Projects) with React.

Benefits

  • Clean architecture without the object-orientedness.
  • No need to explicitly call dispatch() on the UI side.
    As a matter of fact, Redux being used under the hood is an implementation detail that can as well be ignored by the dev working on the UI.
  • Strict isolation between the Core and the UI. Port your web app to React Native or switch to another UI framework without having to re-write a single line of the core logic.
  • It's not specifically a React framework, it's not even specifically a frontend framework, it can and is be used on the backend.
  • Names things once, it propagate through all the codebase via TypeScript's template literal types. No more hard to maintain stuttering.
    Name things once then let intellisense guide you.
  • The core can tell the UI to do thing imperatively. Like "Play a sound now" which is something that is impossible to do cleanly with just states. (isSoundShouldBePlayedNow: boolean ?)

Install / Import

$ yarn add clean-architecture evt

Examples setups

Example project

image

This is a very basic snake game implemented with Vite/TypeScript/React/Clean-Architecture.

👉 garronej/snake-clean-architecture👈

Canonical setup

A canonical setup can be found here: 👉 src/test/demo-app👈 .

Enterprise grade app

You can consult the source code of onyxia-web to see how clean-architecture is used in a real world application.

Onyxia: A data science-oriented container launcher.

Starting the demo app

git clone https://github.com/garronej/clean-architecture
cd clean-architecture
yarn
yarn build
yarn start-demo-app

Keywords

FAQs

Package last updated on 18 Nov 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc