npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@giesf/se_19

v0.0.14

Published

A minimal blogging system written in typescript, powered by bun.

Downloads

2

Readme

blog19

A minimal blogging system written in typescript, powered by bun.

! This software was developed to pass assessments at the CODE University of Applied Sciences in Berlin and is currently not used in any production environments. You might want to proceed with caution. !

Usage

The best way to use blog19 is through the bun package runner.

First install bun

curl -fsSL https://bun.sh/install | bash

Create a directory to run your blog in

mkdir my-blog && cd my-blog

Run blog19

bunx blog19 serve

blog19 will automatically generate a sqlite database and a static directory.

The default admin credentials are admin:admin

Configuration

Blog 19 can be configured through command arguments, environment variables and configuration files.

To easily create a configuration file you can run the configuration wizard

bunx blog19 config

The names of the command arguments are the same as the names of the keys in the config.toml.

blog19 prioritises configuration based on where it is set. Command arguments overwrite everything, ENV varaibles overwrite the config file, and the config file overwrites defaults.

Configuration variables

| argument/toml key | ENV_KEY | description | default | |--------|-------|------------------|------| |configFile|B19_SQLITE_FILE|Path of sqlite file to use for storing blog posts etc.|EMPTY| |port|B19_PORT|port to listen for http requests on|3000| |pageTitle|B19_PAGE_TITLE|title of the blog|Blog| |adminUser|B19_ADMIN_USER|username for admin account|admin| |adminPasswordHash|B19_ADMIN_PASSWORD_HASH|argon2 hash of password for admin account|admin| |sqliteFile|B19_SQLITE_FILE|Path of sqlite file to use for storing blog posts etc.|data.sqlite| |avatarUrl|B19_AVATAR_URL|Url or path to a profile image to be displayed on the blog (optional)|/static/default-avatar.jpg| |githubUrl|B19_GITHUB_URL|Url of your github profile (optional)|EMPTY|

Advanced usage

Styles

You can edit static/base.css to change the style of blog19.

If you fuck up you can alwas revoke your changes by running bunx blog19 overwrite-css

HTTPS

blog19 is designed to run behind some kind of proxy that terminates HTTPS. Check out Caddy or soemthing similar.

Version safety

It might make sense to explicitly define what version of blog19 you want to use by running blog19 like bunx blog10@<verion> ...