Lädt...

🔧 new web framework


Nachrichtenbereich: 🔧 Programmierung
🔗 Quelle: dev.to

Hey everyone!

I'm still developing Gland, and after a lot of refactoring and R&D, I've reached some interesting results. Gland is getting closer to its final syntax, and I decided to make it fully EDS-based, inspired by NestJS and Angular.

It means:

  • It has a DI system similar to NestJS
  • It uses Controller, Import, Export like NestJS
  • But instead of Providers, it uses Channels to handle logic
  • It might include features like Pipes, Reactors, and Wildcards
  • Its middleware system is similar to Guards in NestJS (though Wildcards might change that a bit)

Why EDS? (Event-Driven System)

Instead of returning data directly in the controller, I emit an event, and a Channel handles it.

Example:

@Controller('users')
class UserController {
  @Get('/:id')
  getUser(ctx: Context) {
    const result = ctx.emit('read:server', ctx);
    try {
      throw Error('Hello world');
    } catch (error) {
      return ctx.emit('read:server:error', { error, result });
    }
  }
}

Here, ctx.emit('read:server', ctx) sends an event called users:read:server, and a Channel handles it like this:

@Channel('users')
class UserChannel {
  @On('read:server')
  get(ctx: Context) {
    return 10;
  }
}

Now the entire data flow is event-driven

Gland vs NestJS: What's the difference?

  • Gland is fully event-driven, while NestJS is still more request-response based
  • Gland is Channel-based, grouping events, while in NestJS, you manually manage providers
  • Gland supports middleware on events, which NestJS doesn't have
  • I'm adding a Reactor System that can process event results after execution

Now the question

What do you think about this system?

Does it feel more flexible and logical than NestJS? Or do you see any potential weaknesses?

code

...

🐧 Framework announce the Framework Desktop, Framework Laptop 12 and upgraded Framework Laptop 13


📈 23.5 Punkte
🐧 Linux Tipps

🕵️ Tishna: An Automated Pentest Framework for Web Servers, Web Applications to Web Security


📈 15.3 Punkte
🕵️ Hacking

🎥 TIDoS Framework | Offensive Manual Web Application Penetration Testing Framework | Kali Linux 2019.1


📈 14.89 Punkte
🎥 IT Security Video

💾 TIDoS Framework- The Offensive Manual Web Application Penetration Testing Framework


📈 14.89 Punkte
💾 IT Security Tools

💾 TIDoS Framework- The Offensive Manual Web Application Penetration Testing Framework


📈 14.89 Punkte
💾 IT Security Tools

📰 TIDoS-Framework v1.7 - The Offensive Manual Web Application Penetration Testing Framework


📈 14.89 Punkte
📰 IT Security Nachrichten

📰 TIDoS Framework - The Offensive Web Application Penetration Testing Framework


📈 14.89 Punkte
📰 IT Security Nachrichten

🔧 Building a Full Stack Web Application using Flask (Python Web Framework) - Part One


📈 12.16 Punkte
🔧 Programmierung

🔧 Django: The High-Level Python Web Framework for Effortless and Secure Web Development


📈 12.16 Punkte
🔧 Programmierung

🕵️ Cisco Web Security Appliance 7.1/7.5.7.7 Web Framework URL code injection


📈 12.16 Punkte
🕵️ Sicherheitslücken

🕵️ Cisco Web/Mail Security Appliance up to 7.7/8.1 Web Framework URL code injection


📈 12.16 Punkte
🕵️ Sicherheitslücken

🔧 Build Web Apps With RUST (aka Intro Into Web Framework ‘Rocket’)


📈 12.16 Punkte
🔧 Programmierung

🔧 Break the limits of Web with Nue.Js, a standards first web framework.


📈 12.16 Punkte
🔧 Programmierung

🔧 Launched a Web version of my Project using Java Spring Framework, Spring Boot Web


📈 12.16 Punkte
🔧 Programmierung

🔧 Launched a web version Java Spring Framework, Spring Boot Web


📈 12.16 Punkte
🔧 Programmierung

🔧 Actix Web - The Rust Framework for Web Development - Hello World


📈 12.16 Punkte
🔧 Programmierung

🔧 I created a simple app by very fast Rust web framework Actix web. Please use this as a sample code.


📈 12.16 Punkte
🔧 Programmierung

🔧 AWS SAM vs. Serverless Framework: Choosing the Right Framework for Serverless Development


📈 11.75 Punkte
🔧 Programmierung

🔧 (Part 7)Golang Framework Hands-on - KisFlow Stream Computing Framework-KisFlow Action


📈 11.75 Punkte
🔧 Programmierung

📰 AIL Framework - Framework for Analysis of Information Leaks


📈 11.75 Punkte
📰 IT Security Nachrichten

🔧 Remix Framework Overview: The Next-Generation Full-Stack React Framework


📈 11.75 Punkte
🔧 Programmierung

🎥 Overview of Cloud Adoption Framework for Azure | Cloud Adoption Framework Series


📈 11.75 Punkte
🎥 Video | Youtube

📰 Ars0N-Framework - A Modern Framework For Bug Bounty Hunting


📈 11.75 Punkte
📰 IT Security Nachrichten

🔧 Announcing Entity Framework Core 3.0 Preview 8 and Entity Framework 6.3 Preview 8


📈 11.75 Punkte
🔧 Programmierung

📰 Framework Laptop 16: Neues Modul erweitert Framework Laptop um zwei SSD-Slots


📈 11.75 Punkte
📰 IT Nachrichten

matomo