Silicon is a C++ abstraction built on top of high-performance networking libraries. Its goal is to ease the writing of web APIs without compromising on performance. A simple mono-procedure API serving a static string under the route /hello/world. mhd_json_serve is a Silicon backend. It takes an API and serves it with the microhttpd C library. It relies on the JSON format whenever it has to encode or decode objects (procedures parameters and return values). Silicon relies on static objects (i.e. not hashmaps) to model objects. They embed static introspection in their type such that the JSON serializer knows about their members' names and types. In Silicon, parameters are strongly typed and declared next to the procession route. If any error occurs during the decoding (i.e. a missing or ill-formated parameter), the framework does not call the procedure and send an error to the client.

Features

  • Procedures can take any number of middlewares in any order
  • Silicon does not call the procedure and send an error to the client
  • When a procedure cannot complete because of an error, it throws an exception describing the cause of the error
  • The framework also provides session middlewares
  • Enables an API to store information about the current user in a database, or in an in-memory hashtable
  • In Silicon, parameters are strongly typed and declared next to the procedure route

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow The Silicon Web Framework

The Silicon Web Framework Web Site

You Might Also Like
Propelling Payments for Software Platforms Icon
Propelling Payments for Software Platforms

For SaaS businesses to monetize payments through its turnkey PayFac-as-a-Service solution.

Exact Payments delivers easy-to-integrate embedded payment solutions enabling you to rapidly onboard merchants, instantly activate a variety of payment methods and accelerate your revenue — delivering an end-to-end payment processing platform for SaaS businesses.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of The Silicon Web Framework!

Additional Project Details

Programming Language

C++

Related Categories

C++ Database Software, C++ Frameworks, C++ Web Development Frameworks

Registered

2022-07-20