Kore

Kore是一个易于使用的Web应用程序框架,用于在C中编写可扩展的Web API。(Kore is an easy to use web application framework for writing scalable web APIs in C. )

Github星跟踪图

Kore是一个易于使用的Web应用程序框架,用于在C中编写可扩展的Web API。其主要目标是安全性,可扩展性,并允许快速开发和部署这些API。

Kore是建立强大、可扩展和安全的网络事物的理想候选人。
特性:
  • Supports SNI
  • Supports HTTP/1.1
  • Websocket support
  • Privsep by default
  • Lightweight background tasks
  • Built-in parameter validation
  • Only HTTPS connections allowed
  • Built-in asynchronous PostgreSQL support
  • Private keys isolated in separate process (RSA and ECDSA)
  • Default sane TLS ciphersuites (PFS in all major browsers)
  • Modules can be reloaded on-the-fly, even while serving content
  • Event driven (epoll/kqueue) architecture with per CPU core workers
  • Build your web application as a precompiled dynamic library or single binary
支持的平台
  • Linux
  • OpenBSD
  • FreeBSD
  • OSX

主要指标

概览
名称与所有者jorisvink/kore
主编程语言C
编程语言C (语言数: 3)
平台
许可证ISC License
所有者活动
创建于2013-06-05 14:37:22
推送于2025-04-30 14:21:16
最后一次提交2025-04-30 16:14:58
发布数46
最新版本名称4.3.0-rc4 (发布于 2024-11-08 20:27:43)
第一版名称1.1-release (发布于 2014-03-01 19:20:38)
用户参与
星数3.8k
关注者数177
派生数320
提交数2k
已启用问题?
问题数0
打开的问题数0
拉请求数56
打开的拉请求数0
关闭的拉请求数42
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

About

Kore (https://kore.io) is an easy to use web application platform for
writing scalable web APIs in C. Its main goals are security, scalability
and allowing rapid development and deployment of such APIs.

Because of this Kore is an ideal candidate for building robust, scalable and secure web things.

Key Features

  • Supports SNI
  • Supports HTTP/1.1
  • Websocket support
  • Privseps by default
  • TLS enabled by default
  • Optional background tasks
  • Built-in parameter validation
  • Optional asynchronous PostgreSQL support
  • Optional support for page handlers in Python
  • Reload private keys and certificates on-the-fly
  • Automatic X509 certificates via ACME (with privsep)
  • Private keys isolated in separate process (RSA and ECDSA)
  • Default sane TLS ciphersuites (PFS in all major browsers)
  • Modules can be reloaded on-the-fly, even while serving content
  • Worker processes sandboxed on OpenBSD (pledge) and Linux (seccomp)
  • Event driven (epoll/kqueue) architecture with per CPU worker processes
  • Build your web application as a precompiled dynamic library or single binary

And lots more.

License

  • Kore is licensed under the ISC license

Documentation

Read the documentation

Performance

Read the benchmarks blog post.

Platforms supported

  • Linux
  • OpenBSD
  • FreeBSD
  • MacOS

Building Kore

Clone this repository or get the latest release at https://kore.io/releases/3.2.0.

Requirements

  • openssl (1.0.2, 1.1.0 or 1.1.1)
    (note: libressl 3.0.0+ works as a replacement)

Requirement for asynchronous curl (optional)

  • libcurl

Requirements for background tasks (optional)

  • pthreads

Requirements for pgsql (optional)

  • libpq

Requirements for python (optional)

  • Python 3.6+

Normal compilation and installation:

$ cd kore
$ make
# make install

If you would like to build a specific flavor, you can enable
those by setting a shell environment variable before running make.

  • ACME=1 (compiles in ACME support)
  • CURL=1 (compiles in asynchronous curl support)
  • TASKS=1 (compiles in task support)
  • PGSQL=1 (compiles in pgsql support)
  • DEBUG=1 (enables use of -d for debug)
  • NOHTTP=1 (compiles Kore without HTTP support)
  • NOOPT=1 (disable compiler optimizations)
  • JSONRPC=1 (compiles in JSONRPC support)
  • PYTHON=1 (compiles in the Python support)

Note that certain build flavors cannot be mixed together and you will just
be met with compilation errors.

Example applications

You can find example applications under examples/.

The examples contain a README file with instructions on how
to build or use them.

Mailing lists

patches@kore.io - Send patches here, preferably inline.

users@kore.io - Questions regarding kore.

If you want to signup to those mailing lists send an empty email to
listname+subscribe@kore.io

Other mailboxes (these are not mailing lists):

security@kore.io - Mail this email if you think you found a security problem.

sponsor@kore.io - If your company would like to sponsor part of Kore development.

More information can be found on https://kore.io/