Coder Social home page Coder Social logo

stacksjs / tlsx Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 920 KB

A TLS library with automation & HTTPS by default.

Home Page: https://tlsx.sh

License: MIT License

TypeScript 83.09% JavaScript 16.91%
best-practice https local-development ssl-certificates tls

tlsx's Introduction

Social Card of this repo

npm version GitHub Actions Commitizen friendly

Zero-Config & Zero-Setup HTTPS

Features

  • SSL Support (HTTPS by default)
  • Configurable

Install

bun install -d sslx

# or, invoke immediately
bunx sslx
npx sslx

Please note, we are looking to publish this package to npm under the name tlsx. Hoping npm will release the name for us.

Alternatively, you can install:

brew install tlsx # wip
pkgx install tlsx # wip

Get Started

There are two ways of using this reverse proxy: as a library or as a CLI.

Library

Given the npm package is installed:

import { config, generateCert, addCertToSystemTrustStore, storeCert, tls, pki, forge } from 'sslx'
import type { AddCertOptions, GenerateCertOptions, TlsConfig, TlsOptions } from 'sslx'

// ...

CLI

# more docs incoming
tlsx --help
tlsx version

Configuration

The Reverse Proxy can be configured using a tls.config.ts (or tls.config.js) file and it will be automatically loaded when running the tlsx command.

// tlsx.config.ts (or tlsx.config.js)
import type { TlsConfig } from './src/types'

export default {
  ssl: {
    altNameIPs: ['127.0.0.1'],
    altNameURIs: ['localhost'],
    organizationName: 'tlsx stacks.localhost',
    countryName: 'US',
    stateName: 'California',
    localityName: 'Playa Vista',
    commonName: 'stacks.localhost',
    validityDays: 1,
  },
} satisfies TlsConfig

Then run:

tlsx

To learn more, head over to the documentation.

Testing

bun test

Changelog

Please see our releases page for more information on what has changed recently.

Contributing

Please review the Contributing Guide for details.

Community

For help, discussion about best practices, or any other conversation that would benefit from being searchable:

Discussions on GitHub

For casual chit-chat with others using this package:

Join the Stacks Discord Server

Postcardware

Two things are true: Stacks OSS will always stay open-source, and we do love to receive postcards from wherever Stacks is used! ๐ŸŒ We also publish them on our website.

Our address: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA.

Sponsors

We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.

Credits

License

The MIT License (MIT). Please see LICENSE for more information.

Made with ๐Ÿ’™

tlsx's People

Contributors

chrisbbreuer avatar mohameedsherif avatar renovate[bot] avatar

Stargazers

Mohamed Sherif avatar  avatar

Watchers

Dorell James avatar  avatar  avatar

tlsx's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

bun
package.json
  • @stacksjs/cli ^0.59.11
  • @stacksjs/storage ^0.59.11
  • c12 ^1.10.0
  • node-forge ^1.3.1
  • @biomejs/biome 1.7.3
  • @stacksjs/development ^0.59.11
  • @types/bun ^1.1.2
  • @types/node-forge ^1.3.11
  • bun-plugin-dts-auto ^0.11.1
  • sslx ^0.0.4
  • vitepress ^1.1.4
github-actions
.github/workflows/ci.yml
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
  • actions/checkout v4
  • oven-sh/setup-bun v1
  • actions/cache v4
.github/workflows/release.yml
  • actions/checkout v4
  • actions/setup-node v4
  • oven-sh/setup-bun v1
  • actions/cache v4

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.