@olwiba/dx
v0.0.16
Published
Developer experience tooling for the Olwiba ecosystem
Downloads
1,055
Maintainers
Readme
What This Is
@olwiba/dx is a collection of tools focused on delivering the best developer experience when building projects.
A lot of what's in here reflects personal preference.
This package grows as the ecosystem grows, so expect new features over time.
Feel free to request additions or leverage what's already added as you see fit.
Installation
bun add -d @olwiba/dxFeatures
Dev Banners
Coloured ASCII banners printed on Vite dev server start and tsup build success. Makes it instantly obvious which project is running in your terminal.
// vite.config.ts
import { createDevBannerPlugin } from "@olwiba/dx";
export default defineConfig({
plugins: [
createDevBannerPlugin({
segments: [
{ text: "my" },
{ text: "App", colorHex: "#22D3EE" },
],
}),
],
});For tsup, swap createDevBannerPlugin for createTsupBannerHook and pass it to onSuccess. For a one-shot print, call printBanner directly.
ASCII Text
Figlet renderer with a bundled DOS Rebel font. Powers the <AsciiText> component in @olwiba/cn.
import { renderAscii } from "@olwiba/dx/ascii";
const art = renderAscii("hello", { font: "dosrebel" });ASCII GIF Generator
Render an animated ASCII GIF from any text. This is what produced the README banner you see at the top of this file.
bunx @olwiba/dx ascii-gif \
--text "olwibaDX" \
--accent "DX" \
--out ./public/olwibaDX.gifPreview Generator
Puppeteer-based screenshot tool used to pre-render the isometric preview tiles on docs sites.
import { generatePreviews } from "@olwiba/dx";
await generatePreviews({
url: "http://localhost:3000/preview",
outputDir: "./public/previews",
});ESLint Config
Opinionated lint rules shared across the ecosystem.
// eslint.config.js
import olwibaConfig from "@olwiba/dx/eslint";
export default [...olwibaConfig];Skills
Installable Claude/Amp skills manifest for working in Olwiba projects.
bunx @olwiba/dx skills installTech Stack
Ecosystem
@olwiba/cn— shadcn-style component primitives- More coming soon!
Contributing
Bug reports, pull requests & feature requests are welcome. Open an issue first for anything beyond a small fix.
