Use create-tw-apps to create your new tiddlywiki application fastly

Tested, and it works fine. But I’m curious as to how it works. I’ve always thought of npm create xyz as an alias for npx create-xyz. But create-tw-app seems to be something unrelated. Where is the source? How is it connected to the npm repo?

it is create-tw-apps

Well, I feel :sheep: sheepish! :sheep: Sorry about that!

Is there any need to install extra packages (in addition to npm) to be abole to use npm create tw-apps?

1 Like

npm is the default package manager for node, so you only need to install nodejs

Without any dependencies (except npm), create-tw-app is an executable single file of about 270kb

2 Likes

Now supports selecting tiddlywiki version

1 Like

Wonderful!

A minor suggestion: It would be nice to create from selected edition.

1 Like

Different editions, mainly different plugins, I plan to add a language selection on cli

ps: Which edition do you use often ?

1 Like

I have some in house editions but for official ones
I use server, empty, tw5.com-doc, and introduction most often.

Sidenote:
Hi @jeremyruston,
Why there is no more useful enduser editions in official TiddlyWIki release?
Most current editions are demo or developer related editions, not end user one!

Everyone uses tiddlywiki differently. For me, I use create-neotw-app to quickly create a tiddlywiki project. Later, I want to add some editions for users to choose. I find that there are not many well-maintained ones. edition, there is no standardization between editions of different people.

ps: Yes, before create-tw-app, I wrote creatw-neotw-app

1 Like

Now the default is the server version, except for the built-in three official plugins, it is very clean

IMO by default you should only show: v5.2.7 and v5.3.1 because v5.3.0 needed a fast update to v5.3.1 because of some issues.

4 Likes

Hi, now that bun is supported on windows, could you add it to the list of package manager please ? :slight_smile: It should be 30x faster than npm (according to their website)

1 Like

sure, I’ve used it since bun 1.0, and it’s really fast.

1 Like

Already supported, you can also run it directly using ·bun create tw-apps@latest·

1 Like

Sorry to bother you but I think I’m missing something, I can select npm, yarn or pnpm but not bun :

image

I’m on windows 11, maybe this is not compatible ?

I think this is a bun bug. Even if latest is specified, bun will tend to look for older versions from the cache. You may need to reinstall the latest create-tw-apps package.

1 Like


The latest cli version is 0.9.1


I tested the bun and it seems to work well.

1 Like

Migration from single HTML file to Node.js After seeing this post, it suddenly occurred to me that supporting single file import to create Node.js projects would be a good idea. I might add this in the future if I need it, or if others want to add this feature.