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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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