Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 28 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "Sophia"
name = "sofie"
version = "0.1.0"
edition = "2021"
authors = ["Rogerio Araújo <rogerio.araujo@gmail.com>"]
repository = "https://github.com/ararog/sophia"
homepage = "https://github.com/ararog/sophia"
repository = "https://github.com/ararog/sofie"
homepage = "https://github.com/ararog/sofie"
description = "Very Tiny Server"
readme = "README.md"
license = "MIT"
Expand All @@ -17,7 +17,9 @@ bytes = "1.11.0"
clap = { version = "4.5.54", features = ["derive"] }
http = "1.4.0"
http-body-util = "0.1.3"
hyper = { version = "1.8.1", features = ["server"] }
hyper-util = "0.1.19"
log = "0.4.29"
thiserror = "2.0.18"
vetis = "0.1.1"
tokio = { version = "1.0", features = ["macros", "rt-multi-thread"] }
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Sophia
# Sofie

🌟 **The elegant full-stack web framework that makes Rust web development effortless**

**Sophia** is a comprehensive, production-ready web framework for Rust that combines simplicity with power. Built on top of VeTiS, it provides everything you need to build modern web applications - from REST APIs to full-featured web services - with a clean, intuitive API that makes development a joy.
**Sofie** is a comprehensive, production-ready web framework for Rust that combines simplicity with power. Built on top of VeTiS, it provides everything you need to build modern web applications - from REST APIs to full-featured web services - with a clean, intuitive API that makes development a joy.

## ✨ Why Sophia?
## ✨ Why Sofie?

- **🎯 Developer Experience**: Ergonomic API design that feels natural and intuitive
- **⚡ High Performance**: Powered by VeTiS for blazing-fast request handling
Expand All @@ -15,18 +15,18 @@

## 🛠️ Quick Start

Add Sophia to your `Cargo.toml`:
Add Sofie to your `Cargo.toml`:

```rust
sophia = { version = "0.1.0", features = ["vetis"] }
sofie = { version = "0.1.0", features = ["vetis"] }
```

## 💡 Usage Example

Here's how simple it is to create a web application with Sophia:
Here's how simple it is to create a web application with Sofie:

```rust
use sophia::Sophia;
use sofie::Sofie;
use http_body_util::{Full};
use bytes::Bytes;
use hyper::Response;
Expand Down
4 changes: 2 additions & 2 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
title: Sophia
baseurl: "/sophia" # the subpath of your site, e.g. /blog
title: Sofie
baseurl: "/sofie" # the subpath of your site, e.g. /blog
url: "https://ararog.github.io" # the base hostname & protocol for your site

theme: jekyll-theme-cayman
Expand Down
21 changes: 10 additions & 11 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
layout: default
title: Sophia - The elegant full-stack web framework
title: Sofie - The elegant full-stack web framework
nav_order: 1
description: "🌟 The elegant full-stack web framework that makes Rust web development effortless"
permalink: /
---
<div align="center">
<h1><b>Sophia</b></h1>
<h1><b>Sofie</b></h1>
</div>

[![crates.io](https://img.shields.io/crates/v/sophia?style=flat-square)](https://crates.io/crates/sophia)
[![Build Status](https://github.com/ararog/sophia/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/ararog/sophia/actions/workflows/rust.yml)
[![crates.io](https://img.shields.io/crates/v/sofie?style=flat-square)](https://crates.io/crates/sofie)
[![Build Status](https://github.com/ararog/sofie/actions/workflows/rust.yml/badge.svg?event=push)](https://github.com/ararog/sofie/actions/workflows/rust.yml)
[![Documentation](https://docs.rs/deboa/badge.svg)](https://docs.rs/deboa/latest/deboa)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Expand Down Expand Up @@ -53,13 +53,13 @@ Add to your `Cargo.toml`:

```toml
[dependencies]
sophia = { version = "0.0.9", features = ["http1", "tokio-rt"] }
sofie = { version = "0.0.9", features = ["http1", "tokio-rt"] }
```

Basic usage:

```rust
use sophia::Sophia;
use sofie::App;
use http_body_util::{Full};
use bytes::Bytes;
use hyper::Response;
Expand All @@ -68,9 +68,9 @@ use hyper::Response;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
std_logger::Config::logfmt().init();

let mut sophia = Sophia::new(config);
let mut app = App::new();

sophia.serve(|_| async move {
app.serve(|_| async move {
Ok(Response::new(Full::new(Bytes::from("Hello World"))))
}).await?;

Expand All @@ -86,12 +86,11 @@ Check out the [examples](./examples.md) for complete examples of how to use Soph

You can create a new project from the template using `cargo generate`:

`cargo generate ararog/sophia-templates`
`cargo generate ararog/sofie-templates`

## Documentation

- [API Reference](https://docs.rs/sophia)
- [Migration Guide](./MIGRATION_GUIDE.md)
- [API Reference](https://docs.rs/sofie)
- [Contributing Guide](./CONTRIBUTING.md)

## License
Expand Down
14 changes: 7 additions & 7 deletions docs/llms.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# sophia
# sofie

**Sophia** is a comprehensive, production-ready web framework for Rust that combines simplicity with power. Built on top of VeTiS, it provides everything you need to build modern web applications - from REST APIs to full-featured web services - with a clean, intuitive API that makes development a joy.
**Sofie** is a comprehensive, production-ready web framework for Rust that combines simplicity with power. Built on top of VeTiS, it provides everything you need to build modern web applications - from REST APIs to full-featured web services - with a clean, intuitive API that makes development a joy.

## Installation

```toml
[dependencies]
sophia = { version = "0.0.9", features = ["http1", "tokio-rt"] }
sofie = { version = "0.0.9", features = ["http1", "tokio-rt"] }
```

## quickstart

```rust
use sophia::Sophia;
use sofie::App;
use http_body_util::{Full};
use bytes::Bytes;
use hyper::Response;
Expand All @@ -21,9 +21,9 @@ use hyper::Response;
async fn main() -> Result<(), Box<dyn std::error::Error>> {
std_logger::Config::logfmt().init();

let mut sophia = Sophia::new(config);
let mut app = App::new();

sophia.serve(|_| async move {
app.serve(|_| async move {
Ok(Response::new(Full::new(Bytes::from("Hello World"))))
}).await?;

Expand All @@ -33,7 +33,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

## 🗺️ Roadmap

Sophia is continuously evolving! Here's what we're working on:
Sofie is continuously evolving! Here's what we're working on:

### Security & Authentication

Expand Down
Loading