Commit 9aeae5be by PLN (Algolia)

blog: end-of-post project card for devname (new ::projet directive)

A quiet aside card after the sign-off on both languages: license line,
GitLab repo and project page links. ::projet joins the directive map
(aside.directive-project, accent left edge, same family as the gallery
cards); the title renders from the directive label.
parent 64f35c2a
......@@ -417,6 +417,27 @@
margin-bottom: 0;
}
/* ::projet[...] — the end-of-post project card: a quiet raise with an
accent edge, same family as the gallery's ProjectCard. */
.article .prose :global(.directive-project) {
margin: 2rem 0;
padding: 0.9rem 1.1rem;
border: 1px solid var(--border);
border-left: 3px solid var(--project-accent, var(--link));
border-radius: 10px;
background: var(--surface-raised);
font-size: 0.95rem;
}
.article .prose :global(.directive-project :first-child) {
margin-top: 0;
font-weight: 600;
}
.article .prose :global(.directive-project p:last-child) {
margin-bottom: 0;
}
/* ::audio[...] directives (lib/markdown.ts directiveComponents) — native
player, full column width, no client JS. */
.article .prose :global(.directive-audio) {
......
......@@ -2,26 +2,34 @@
title: Devname
---
I'm tired boss of localhost:1234.
I'm tired boss of localhost:1234.
Of memorizing, for each local runnign project, yet another sequence of digits like a 2fa code.
And damn I've been running a lot of local webservers these days : the fun art project at 127.0.0.1:1234 and my blog rebuild draft at localhost:8888 and random test servers and hot-reloading game-of-life and databases and... a beautiful mess :')
So i made _devname_ : a little daemon, and a CLI, that allow each project, each agent, to book a local domain.
So i made _devname_ : a little daemon, and a CLI,
that allow each project, each agent, to book a local domain.
![The devname.localhost index (synthetic data: 5 projects, 3 up, 2 down)](/images/blog/devname/devname-index.png)
![devname.localhost: main page, listing all others)](/images/blog/devname/devname-index.png)
The CLI is quite minimalist:
```bash
devname ensure myapp # books monapp.localhost
devname ls # current state
# ... ->
# bench.sre.localhost 8895 down bench dashboard
# decisions.localhost 8017 up decision gateway (d3-nano), key required
# lmstudio.localhost 1234 up LM Studio OpenAI-compatible server
# www.localhost 17005 up personal site static export preview
devname ensure myapp # books monapp.localhost
devname ls
# ->
# bench.sre.localhost 8895 down bench dashboard
# decisions.localhost 8017 up decision gateway (d3-nano), key required
# lmstudio.localhost 1234 up LM Studio OpenAI-compatible server
# www.localhost 17005 up personal site static export preview
# ...
```
Let me know what you make of it :)
---
:::projet[devname — free, GPL-3.0]
One Python file, one launchd agent. Code and project page:
[git.nech.pl/pln/devname](https://git.nech.pl/pln/devname) · [me.nech.pl/projects/devname](/projects/devname)
:::
......@@ -2,24 +2,33 @@
title: Devname
---
J'en avais marre de me battre avec localhost.
C'est cool d'avoir plein de projets en local ! Des 127.0.0.1:1234 et des localhost:8888 et des tas de serveurs de tests et des hot-reloads et des bases de données et... un sacré fouillis :')
J'en ai marre des localhosts:1234 cryptiques dans tous les sens.
Alors j'ai fait devname : un petit daemon et un CLI qui permettent à chaque projet, ou agent, de réserver un domaine en local.
C'est cool d'avoir plein de projets en local !
Des 127.0.0.1:1234, et des localhost:8888, et des tas de serveurs de tests et des hot-reloads et des bases de données et... un sacré fouillis :')
![L'index devname.localhost (données synthétiques : 5 projets, 3 up, 2 down)](/images/blog/devname/devname-index.png)
Alors j'ai fait `devname` : un petit daemon et un CLI qui permettent à chaque projet, ou agent, de réserver un domaine en local.
![Page devname.localhost principale, listant toutes les autres)](/images/blog/devname/devname-index.png)
Le CLI est assez minimaliste :
```bash
devname ensure monapp # réserve monapp.localhost, imprime l'URL
devname ls # l'état actuel
devname ensure monapp # réserve monapp.localhost, imprime l'URL
devname ls # l'état actuel
# ... ->
# bench.sre.localhost 8895 down bench dashboard
# decisions.localhost 8017 up decision gateway (d3-nano), key required
# lmstudio.localhost 1234 up LM Studio OpenAI-compatible server
# www.localhost 17005 up personal site static export preview
# bench.sre.localhost 8895 down bench dashboard
# decisions.localhost 8017 up decision gateway (d3-nano), key required
# lmstudio.localhost 1234 up LM Studio OpenAI-compatible server
# www.localhost 17005 up personal site static export preview
# ...
```
Dites-m'en des nouvelles ;)
---
:::projet[devname — libre, GPL-3.0]
Un fichier Python, un agent launchd. Le code et la fiche projet :
[git.nech.pl/pln/devname](https://git.nech.pl/pln/devname) · [me.nech.pl/projects/devname](/projects/devname)
:::
......@@ -2,7 +2,6 @@
title: Devname
date: '2026-11-06'
description: 'Marre de retenir 127.0.0.1:1234? devname réserve un domaine.localhost à chaque projet local.'
description_en: """Tired of memorizing 127.0.0.1:1234?
devname books a domain.localhost for each of your local projects."""
description_en: 'Tired of memorizing 127.0.0.1:1234? devname books a domain.localhost for each of your local projects.'
tags: [cli, agent, dx, oss, web, meta, devname, localhost]
---
......@@ -31,6 +31,7 @@ export const directiveComponents: Record<
{ tag: string; className: string; embed?: boolean }
> = {
note: { tag: 'div', className: 'directive-note' },
projet: { tag: 'aside', className: 'directive-project' },
audio: { tag: 'audio', className: 'directive-audio' },
youtube: { tag: 'div', className: 'embed-youtube', embed: true },
soundcloud: { tag: 'div', className: 'embed-soundcloud', embed: true },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment