vans163

vans163

Photon - PeekABoo 👻 + Web Request/Response/Server Library

I would like to introduce Photon, I have been using it in private for about 6 months and I feel its ready for its first release now. If fixes my current problems of having so many different webserver/webrequest/websocket/etc specs, implementations and libraries.

Photon is not meant for speed of execution, Photon is meant for speed of iteration.

Photon is not an application but instead a library to make it very easy to build/parse HTTP request/response, use websockets, make connections and more.

You need to implement your own server (or client) but an example server is provided. Example is a little chunky but provides nearly full control for everything going on, no magic no problems.

A shipped utility model covers uses like chunk_download_body_to_file, path_sanitization, cors, and more.

PeekABoo :ghost: (lmao) allows you to peek at the data on a socket using the sockets module before deciding how to proceed. Its very useful for DDOS mitigation or multiplexing protocols over 1 port.

Let me know if this is useful to you or what you think, thanks.

https://github.com/vans163/photon

Where Next?

Popular in Announcing Top

Hal9000
Here is my first stab at this. README pasted below. https://github.com/Hal9000/elixir_random Comments and critiques are welcome. Thank...
New
danschultzer
In short Plug n’ play OAuth 2.0 provider library. Just set up a resource owner schema with Ecto (your user schema), install the dependen...
New
Crowdhailer
Raxx is an alternative to Plug and is inspired by projects such as Rack(Ruby) and Ring(Clojure). 1.0-rc.1 is now available. To use it re...
New
kip
ex_cldr provides localisation and internationalisation support based upon the data from the Unicode CLDR project. Unicode released CLDR ...
407 13366 120
New
sasajuric
I’d like to announce a small library called boundaries. This is an experimental project which explores the idea of enforcing boundaries ...
New
trisolaran
Hi! :waving_hand: I would like to present LiveSelect, a little library that I wrote to easily add a dynamic selection input to your LV f...
198 11283 107
New
zachdaniel
Ash Framework What is Ash? Ash Framework is a declarative, resource-oriented application development framework for Elixir. A resource can...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 31586 112
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

We're in Beta

About us Mission Statement